Skip to content

Commit b5beb2e

Browse files
committed
throw errors
1 parent 2dca7c8 commit b5beb2e

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

modules/auxiliary/scanner/ftp/bison_ftp_traversal.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def run_host(target_host)
7878
# read the file data from the socket that we opened
7979
# dont assume theres still a sock to read from. Per #7582
8080
if sock.nil?
81+
error_msg = __FILE__ <<'::'<< __method__.to_s << ':' << 'data_connect failed; posssible invalid response'
82+
print_status(error_msg)
83+
elog(error_msg)
8184
return
8285
else
8386
# read the file data from the socket that we opened

modules/auxiliary/scanner/ftp/colorado_ftp_traversal.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def run_host(ip)
8181
8282
# dont assume theres still a sock to read from. Per #7582
8383
if sock.nil?
84+
error_msg = __FILE__ <<'::'<< __method__.to_s << ':' << 'data_connect failed; posssible invalid response'
85+
print_status(error_msg)
86+
elog(error_msg)
8487
return
8588
else
8689
# read the file data from the socket that we opened

modules/auxiliary/scanner/ftp/konica_ftp_traversal.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def run_host(target_host)
7777
# read the file data from the socket that we opened
7878
# dont assume theres still a sock to read from. Per #7582
7979
if sock.nil?
80+
error_msg = __FILE__ <<'::'<< __method__.to_s << ':' << 'data_connect failed; posssible invalid response'
81+
print_status(error_msg)
82+
elog(error_msg)
8083
return
8184
else
8285
# read the file data from the socket that we opened

modules/auxiliary/scanner/ftp/pcman_ftp_traversal.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def run_host(target_host)
7575
# read the file data from the socket that we opened
7676
# dont assume theres still a sock to read from. Per #7582
7777
if sock.nil?
78+
error_msg = __FILE__ <<'::'<< __method__.to_s << ':' << 'data_connect failed; posssible invalid response'
79+
print_status(error_msg)
80+
elog(error_msg)
7881
return
7982
else
8083
# read the file data from the socket that we opened

0 commit comments

Comments
 (0)