File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/auxiliary/dos/http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def run_host(ip)
60
60
if check_host ( ip ) == Exploit ::CheckCode ::Vulnerable
61
61
dos_host ( ip )
62
62
else
63
- print_status ( "#{ ip } : #{ rport } - Probably not vulnerable, will not dos it." )
63
+ print_status ( "#{ peer } - Probably not vulnerable, will not dos it." )
64
64
end
65
65
end
66
66
@@ -76,17 +76,17 @@ def get_file_size(ip)
76
76
res = send_request_raw ( 'uri' => uri )
77
77
78
78
unless res
79
- vprint_error ( "#{ ip } : #{ rport } - Connection timed out" )
79
+ vprint_error ( "#{ peer } - Connection timed out" )
80
80
return file_size
81
81
end
82
82
83
83
if res . code == 404
84
- vprint_error ( "#{ ip } : #{ rport } - You got a 404. URI must be a valid resource." )
84
+ vprint_error ( "#{ peer } - You got a 404. URI must be a valid resource." )
85
85
return file_size
86
86
end
87
87
88
88
file_size = res . body . length
89
- vprint_status ( "#{ ip } : #{ rport } - File length: #{ file_size } bytes" )
89
+ vprint_status ( "#{ peer } - File length: #{ file_size } bytes" )
90
90
91
91
return file_size
92
92
} . call
@@ -112,7 +112,7 @@ def dos_host(ip)
112
112
rescue ::Errno ::EPIPE , ::Timeout ::Error
113
113
# Same exceptions the HttpClient mixin catches
114
114
end
115
- print_status ( "#{ ip } : #{ rport } - DOS request sent" )
115
+ print_status ( "#{ peer } - DOS request sent" )
116
116
end
117
117
118
118
def potential_static_files_uris
You can’t perform that action at this time.
0 commit comments