File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
modules/auxiliary/scanner/ftp Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ def run_host(target_host)
78
78
# read the file data from the socket that we opened
79
79
# dont assume theres still a sock to read from. Per #7582
80
80
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)
81
84
return
82
85
else
83
86
# read the file data from the socket that we opened
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ def run_host(ip)
81
81
82
82
# dont assume theres still a sock to read from. Per #7582
83
83
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)
84
87
return
85
88
else
86
89
# read the file data from the socket that we opened
Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ def run_host(target_host)
77
77
# read the file data from the socket that we opened
78
78
# dont assume theres still a sock to read from. Per #7582
79
79
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)
80
83
return
81
84
else
82
85
# read the file data from the socket that we opened
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ def run_host(target_host)
75
75
# read the file data from the socket that we opened
76
76
# dont assume theres still a sock to read from. Per #7582
77
77
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)
78
81
return
79
82
else
80
83
# read the file data from the socket that we opened
You can’t perform that action at this time.
0 commit comments