Take more parameters from a config file

This commit is contained in:
Ashley Donaldson
2022-03-11 15:10:08 +11:00
parent 1c84c1a314
commit b34189e24c
2 changed files with 12 additions and 3 deletions
+6 -2
View File
@@ -1,8 +1,12 @@
spoof_regex: .*
ntlm_challenge: "1122334455667788"
ntlm_domain: anonymous
http_basic: no
ssl_cert: null
logfile: null
hashdir: null
services:
DRDA: off
DRDA: on
FTP: on
HTTP: on
HTTPS: on
@@ -11,7 +15,7 @@ services:
MySQL: on
POP3: on
Postgres: on
PrintJob: off
PrintJob: on
SIP: on
SMB: on
SMTP: on
+6 -1
View File
@@ -410,7 +410,12 @@ class Plugin::HashCapture < Msf::Plugin
options = {
:ntlm_challenge => yamlconf['ntlm_challenge'],
:ntlm_domain => yamlconf['ntlm_domain'],
:services => yamlconf['services']
:services => yamlconf['services'],
:spoof_regex => yamlconf['spoof_regex'],
:http_basic => yamlconf['http_basic'],
:ssl_cert => yamlconf['ssl_cert'],
:logfile => yamlconf['logfile'],
:hashdir => yamlconf['hashdir']
}
end
end