
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Command line interface to Flash Media Server Administration API:
$ gem install fms-admin-api
$ fmsapi <method_name> --host=<fms host> [other params]
Just pick a method from the documentation and replace convention from camelCase to underscore_case (same for the parameters)
Example:
$ fmsapi reload_app --host=fms.example.com --auser=fms --apswd=secret --app_inst=live
You can use the ruby client directly on you code:
require 'fms'
client = FMS::Client.new(:host => 'fms.example.com',
:auser => 'fms',
:apswd => 'secret') # you can use :port here, 1111 is default
now just call any method defined in the FMS Admin API:
client.reload_app(:app_inst => 'live/cam1')
client.get_apps(:force => true, :verbose => true)
just note that the methods name and parameters are used with ruby_default_notation instead of camelCase as documented.
The return value from all api method calls is a FMS::Response
, on which you may want to call .to_xml
to get a REXML::Document
instance:
require 'rexml/xpath'
xml_resp = client.get_live_stream_stats(:app_inst => 'live', :stream => 'cam1').to_xml
puts REXML::XPath.first(xml_resp, '/result/data/publisher/name').text
there is also a to_s
method on FMS::Response
.
Take a look in the tests/ folder for more detailed specification.
FAQs
Unknown package
We found that fms-admin-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.