Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Welcome to my new gem!
It is intended to easy get all images paths from HTML page.
gem install image_paths-0.1.0.gem in your Gemfile
gem 'image_paths'
And then execute:
$ bundle
Or install it yourself in your project folder as:
$ gem install image_paths
require 'image_paths'
ImagePaths.at('https://moikrug.ru/vacancies/1000031431')
where 'https://moikrug.ru/vacancies/1000031431' - is HTML page url where images paths are to collected.
A Ruby array:
=> ["https://www.facebook.com/tr?id=203653866652939&ev=PageView&noscript=1",
"https://habrastorage.org/getpro/moikrug/uploads/company/100/005/255/1/logo/medium_f19113ec4c4fdac7af49f748ba45fedc.png",
"https://habracdn.net/mk/assets/no_content.icon.access_denied-999f611531008ac991f274b594fa49d5.png",
"https://mc.yandex.ru/watch/38498795",
"//stats.tmtm.ru/piwik.php?idsite=7"]
In case there are no images on the page - output array will be empty: [].
install dependencies:
`bin/setup`
run the tests:
`rake spec`
or
'bundle exec rspec'
To install this gem onto your local machine:
`bundle exec rake install`
To release a new version, update the version number in version.rb
,
and then run bundle exec rake release
to create a git tag for the version.
Then push git commits and tags,
push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/[BlookHo]/image_paths. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that image_paths 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.