Hostile 100% ruby 3,689 installs Download

et_phone_home 0.1.0

“part of a library security project. Please see http://raesene.github.io/blog/2015/03/01/software-library-repositories-and-security/ for mo…”

Gem native extension sends HTTP GET to raw external IPv4 URLRubyGem extension hook phones home to raw external IPv4 URL
SHA-2560e90e72cae0a8b095b215bb324990ea5b21f5eddfa621b21b07b5df6e303f2cb

Also flagged by https://www.aikido.dev/blog/rss.xml (Even gem list can run someone else's code) +2 more.

Evidence

Ruby code fetches remote resource Rakefile · lines 1–14
1require "bundler/gem_tasks"
2
3task :default => :prepare
4
5task :prepare do
6end
7
8begin
9 require 'net/http'
10 require 'uri'
11 uri = URI.parse("http://176.31.142.25/ruby_no_way_you_got_here_randomly")
12 response = Net::HTTP.get_response(uri)
13end
14
RubyGems specification or build reference et_phone_home.gemspec · lines 1–25
1# coding: utf-8
2lib = File.expand_path('../lib', __FILE__)
3$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4require 'et_phone_home/version'
5
6Gem::Specification.new do |spec|
7 spec.name = "et_phone_home"
8 spec.version = EtPhoneHome::VERSION
9 spec.authors = ["Rory McCune"]
10 spec.email = ["[email protected]"]
11
12 spec.summary = %q{A gem that just phone home by going a GET on a specific URL}
13 spec.description = %q{part of a library security project. Please see http://raesene.github.io/blog/2015/03/01/software-library-repositories-and-security/ for more information}
14 spec.homepage = "https://github.com/raesene/test_libs"
15 spec.license = "MIT"
16
17 spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18 spec.bindir = "exe"
19 spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20 spec.require_paths = ["lib"]
21 spec.extensions = ["Rakefile"]
22
23 spec.add_development_dependency "bundler", "~> 1.8"
24 spec.add_development_dependency "rake", "~> 10.0"
25end
Non-empty YAML extensions list in gem spec metadata · lines 1–48
1--- !ruby/object:Gem::Specification
2name: et_phone_home
3version: !ruby/object:Gem::Version
⋯40 lines
45executables: []
46extensions:
47- Rakefile
48extra_rdoc_files: []
HTTP URL string literal Gemfile · lines 1–4
1source 'https://rubygems.org'
2
3# Specify your gem's dependencies in et_phone_home.gemspec
4gemspec
At least four Markdown-style heading lines README.md · lines 1–39
1# EtPhoneHome
2
3Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/et_phone_home`. To experiment with that code, run `bin/console` for an interactive prompt.
4
5TODO: Delete this and the text above, and describe your gem
6
7## Installation
8
9Add this line to your application's Gemfile:
⋯11 lines
21 $ gem install et_phone_home
22
23## Usage
24
25TODO: Write usage instructions here
26
27## Development
28
29After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
30
31To install this gem onto your local machine, run `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, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
33## Contributing
34
351. Fork it ( https://github.com/[my-github-username]/et_phone_home/fork )
362. Create your feature branch (`git checkout -b my-new-feature`)
373. Commit your changes (`git commit -am 'Add some feature'`)
384. Push to the branch (`git push origin my-new-feature`)
395. Create a new Pull Request

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.