
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem takes a list of URLs, gets the title of each page at those URLs, then builds an HTML string that can be copied-pasted in a blog article to present those web pages. It assumes screenshots of those pages would have been uploaded on the blog.
Add this line to your application's Gemfile:
gem 'screenshots'
And then execute:
$ bundle
Or install it yourself as:
$ gem install screenshots
# config/initializers/screenshots.rb
Screenshots.configure do |config|
config.blog_assets_url = 'http://www.codeur.com/blog/wp-content/uploads/2014/07'
config.image_extension = 'jpg'
end
$ screenshots my-input-file.txt my_output_dir
Screenshots::Processor.generate('http://www.google.com')
It returns a string containing the HTML code to be copied in the blog post:
<h2><a href="http://www.google.com">Google</a></h2>
<img src="http://www.codeur.com/blog/wp-content/uploads/2014/07/http_www.google.com.jpg" />
Screenshots::Processor.generate_list(['http://www.google.com', 'http://www.lemonde.fr'])
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that screenshots 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.