interactsh 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/interactsh.rb +6 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b34b1f28ac601af7b3d0e6f6fbe9cc952f8ac86aa4b56f4b58eac7403a46fad1
|
4
|
+
data.tar.gz: 78d1933787518e693380db20df67b3049a9e948a5d2cd1348be294ecbbf5d670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8490d216a0037495457c5f170dbea3ca77330fad9d311de87d97ad89c36594e22c10ec9e79b4a7af9eef3cf12e01482541be7621a392e39fa6c9f6654ffedf8d
|
7
|
+
data.tar.gz: b62e3f53d773bb04f771064a6b1502454b11f3bf494661d27c7afde90aa41f3a43996f0c30518569cb79a38efffbcf3ef0ad1f817be848c85f72fe96bea63179
|
data/lib/interactsh.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'openssl'
|
2
|
+
require 'stringio'
|
2
3
|
require 'jose'
|
3
4
|
require 'securerandom'
|
4
5
|
require 'base64'
|
@@ -32,16 +33,14 @@ class Interactsh
|
|
32
33
|
headers = { }
|
33
34
|
headers['Authorization'] = token if token
|
34
35
|
|
35
|
-
|
36
|
+
response = Typhoeus.get(
|
36
37
|
File.join(server, "/poll?id=#{correlation_id}&secret=#{secret}"),
|
37
38
|
headers: headers
|
38
39
|
)
|
39
|
-
request.run
|
40
|
-
|
41
40
|
decoded_datas = []
|
42
41
|
|
43
|
-
if
|
44
|
-
datas = JSON.parse(
|
42
|
+
if response&.code == 200
|
43
|
+
datas = JSON.parse(response.body)
|
45
44
|
unless datas.empty?
|
46
45
|
datas["data"].each do |enc_data|
|
47
46
|
decoded_datas << decrypt_data(datas["aes_key"], enc_data)
|
@@ -67,15 +66,13 @@ class Interactsh
|
|
67
66
|
headers = { 'Content-Type' => 'application/json' }
|
68
67
|
headers['Authorization'] = token if token
|
69
68
|
|
70
|
-
|
69
|
+
response = Typhoeus.post(
|
71
70
|
File.join(server, '/register'),
|
72
|
-
method: :post,
|
73
71
|
body: data,
|
74
72
|
headers: headers
|
75
73
|
)
|
76
|
-
request.run
|
77
74
|
|
78
|
-
unless
|
75
|
+
unless response.code == 200
|
79
76
|
puts "[!] Interactsh - Problem with domain registration"
|
80
77
|
end
|
81
78
|
end
|