m4dh4v45b1n 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/bin/fuzz-web-dir.rb +3 -2
- data/lib/m4dh4v45b1n/fuzz-web-dir.rb +29 -4
- data/lib/m4dh4v45b1n/rand-util.rb +12 -3
- data/lib/m4dh4v45b1n/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a311f2f19f9aa575fa0da5fbe7c8ab5eb64a6c5128ea7eed0fb6d83edf0debcf
|
|
4
|
+
data.tar.gz: 4fe7c0102645607b4b31d80513f5488e4bf7cf8d0545a06e66abbc6290553519
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e0694d301c360544bf16c67cdafe4e0a7f39c63603a672065d733bbe66940ef84b2f3fa0a2e94ec058f96193bf7ae6df0e3d93954647b4dc13169a83bdaa93d
|
|
7
|
+
data.tar.gz: 36effe3160a517ce94f3a425e71cdac494f5e1fd7c1817dab70842072fd18a66edfcb50a6f536bf825abdf5b089c6d6e7fbc1609e68ca3c9d66bfb4da790c7fe
|
data/bin/fuzz-web-dir.rb
CHANGED
|
@@ -10,7 +10,8 @@ def main
|
|
|
10
10
|
optp.banner = "\nUsage: fuzz-web-dir.rb [-h] [-w DICT] [-t MAXTHREAD] [..] URL
|
|
11
11
|
des: Directory fuzzer. (#{VERSION})
|
|
12
12
|
recomended: ruby-3.x.x otherwise it won't work properly.
|
|
13
|
-
Eg: fuzz-web-dir.rb -e php,txt --hc 303,404 https://example.com
|
|
13
|
+
Eg: fuzz-web-dir.rb -e php,txt --hc 303,404 https://example.com
|
|
14
|
+
fuzz-web-dir.rb -u http://example.com/api/v2/ -D proxy/list.txt -H '{\"foo\":\"bar\"}'\n\n"
|
|
14
15
|
optp.program_name = "fuzz-web-dir"
|
|
15
16
|
optp.summary_width = 15
|
|
16
17
|
optp.program_name = "fuzz-web-dir"
|
|
@@ -79,7 +80,7 @@ Eg: fuzz-web-dir.rb -e php,txt --hc 303,404 https://example.com\n\n"
|
|
|
79
80
|
if !init.url.nil?
|
|
80
81
|
init.fuzz
|
|
81
82
|
else
|
|
82
|
-
puts "fuzz-web-dir.rb
|
|
83
|
+
puts "Usage: fuzz-web-dir.rb [ARG] URL \nuse -h or --help For more info."
|
|
83
84
|
end
|
|
84
85
|
end
|
|
85
86
|
|
|
@@ -51,7 +51,7 @@ class Fuzz_web_dir
|
|
|
51
51
|
@last_decoy = ''
|
|
52
52
|
@pfile = FUZZ_WEB_DIR_PROXY_FILE
|
|
53
53
|
end
|
|
54
|
-
def show_result(url_)
|
|
54
|
+
def show_result(url_, try_ = 5)
|
|
55
55
|
begin
|
|
56
56
|
@header['User-Agent'] = rand_user_agent
|
|
57
57
|
if @decoy
|
|
@@ -105,13 +105,38 @@ class Fuzz_web_dir
|
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
107
|
rescue (Errno::ECONNREFUSED) => e
|
|
108
|
-
print "\
|
|
108
|
+
print "\r#{' '*50}\r> retrying#{'.'* try_}\r"
|
|
109
|
+
if (try_ != 0)
|
|
110
|
+
show_result(url_, try_ -1)
|
|
111
|
+
end
|
|
112
|
+
rescue (Errno::ECONNRESET) => e
|
|
113
|
+
print "\r#{' '*50}\r> retrying#{'.'* try_}\r"
|
|
114
|
+
if (try_ != 0)
|
|
115
|
+
show_result(url_, try_ -1)
|
|
116
|
+
end
|
|
117
|
+
rescue (Net::HTTPRetriableError) => e
|
|
118
|
+
rescue (Net::HTTPFatalError) => e
|
|
119
|
+
print "\r#{' '*50}\r> retrying#{'.'* try_}\r"
|
|
120
|
+
if (try_ != 0)
|
|
121
|
+
show_result(url_, try_ -1)
|
|
122
|
+
end
|
|
123
|
+
rescue (OpenSSL::SSL::SSLError) => e
|
|
124
|
+
print "#{' '*50}\r> Openssl error. use http\r"
|
|
125
|
+
rescue (SocketError) => e
|
|
126
|
+
print "#{' '*50}\r> Socket error. Invalide url.\r"
|
|
127
|
+
rescue (Net::HTTPServerException) => e
|
|
128
|
+
print "\r#{' '*50}\r> retrying#{'.'* try_}\r"
|
|
129
|
+
if (try_ != 0)
|
|
130
|
+
show_result(url_, try_ -1)
|
|
131
|
+
end
|
|
132
|
+
rescue (LocalJumpError) => e
|
|
133
|
+
rescue (EOFError) => e
|
|
109
134
|
rescue Interrupt => e
|
|
110
135
|
Thread::list::map do |t|
|
|
111
136
|
Thread::kill t
|
|
112
137
|
end
|
|
113
138
|
rescue => e
|
|
114
|
-
print "\r#{e}"
|
|
139
|
+
print "\r#{e}\r"
|
|
115
140
|
#print "\rInvalideURL: #{@url} "
|
|
116
141
|
end
|
|
117
142
|
end
|
|
@@ -180,7 +205,7 @@ class Fuzz_web_dir
|
|
|
180
205
|
sleep(0.01 + @wait)
|
|
181
206
|
end
|
|
182
207
|
if string_line.length < 20
|
|
183
|
-
print "\r#{' '*55}\r> #{string_line.chomp}"
|
|
208
|
+
print "\r#{' '*55}\r> #{string_line.chomp}\r"
|
|
184
209
|
end
|
|
185
210
|
end
|
|
186
211
|
end
|
|
@@ -3,9 +3,7 @@ require 'net/http'
|
|
|
3
3
|
PROXY_CACHE = ENV["HOME"] + "/.cache/m4dh4v45b1n/http-proxy.x7"
|
|
4
4
|
|
|
5
5
|
USER_AGENTS = [
|
|
6
|
-
"Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0",
|
|
7
6
|
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)",
|
|
8
|
-
"Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36",
|
|
9
7
|
"Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1",
|
|
10
8
|
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15",
|
|
11
9
|
"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
|
@@ -15,7 +13,18 @@ USER_AGENTS = [
|
|
|
15
13
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.59",
|
|
16
14
|
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Vivaldi/4.0",
|
|
17
15
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Vivaldi/4.0",
|
|
18
|
-
"Mozilla/5.0 (
|
|
16
|
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246",
|
|
17
|
+
"Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.64 Safari/537.36",
|
|
18
|
+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9",
|
|
19
|
+
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36",
|
|
20
|
+
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1",
|
|
21
|
+
"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
|
|
22
|
+
|
|
23
|
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36",
|
|
24
|
+
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36",
|
|
25
|
+
"Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36",
|
|
26
|
+
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Vivaldi/4.0",
|
|
27
|
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36 Vivaldi/4.0"
|
|
19
28
|
]
|
|
20
29
|
|
|
21
30
|
def rand_user_agent
|
data/lib/m4dh4v45b1n/version.rb
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
-
VERSION = "0.1.
|
|
2
|
+
VERSION = "0.1.7"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: m4dh4v45b1n
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Madhava-mng
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-07-
|
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: ''
|
|
14
14
|
email:
|