mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-20 13:23:38 -07:00
WPAD now disabled by default, use -w On to enable it
This commit is contained in:
parent
914352fc00
commit
3a311915bb
1 changed files with 18 additions and 12 deletions
10
Responder.py
10
Responder.py
|
@ -49,7 +49,7 @@ parser.add_option('-L','--ldap', action="store", dest="LDAP_On_Off", help = "Set
|
|||
|
||||
parser.add_option('-D','--dns', action="store", dest="DNS_On_Off", help = "Set this to On or Off to start/stop the DNS server. Default value is On", metavar="On", choices=['On','Off'], default="On")
|
||||
|
||||
parser.add_option('-w','--wpad', action="store", dest="WPAD_On_Off", help = "Set this to On or Off to start/stop the WPAD rogue proxy server. Default value is On", metavar="On", choices=['On','Off'], default="On")
|
||||
parser.add_option('-w','--wpad', action="store", dest="WPAD_On_Off", help = "Set this to On or Off to start/stop the WPAD rogue proxy server. Default value is Off", metavar="Off", choices=['On','Off'], default="Off")
|
||||
|
||||
parser.add_option('--lm',action="store", help="Set this to 1 if you want to force LM hashing downgrade for Windows <= 5.2. Default value is False (0)", metavar="0",dest="LM_On_Off", choices=['0','1'], default="0")
|
||||
|
||||
|
@ -85,7 +85,6 @@ LM_On_Off = options.LM_On_Off.upper()
|
|||
Wredirect = options.Wredirect
|
||||
NumChal = options.optChal
|
||||
|
||||
|
||||
def Show_Help(ExtraHelpData):
|
||||
help = "NBT Name Service/LLMNR Answerer 1.0.\nPlease send bugs/comments to: lgaffie@trustwave.com\nTo kill this script hit CRTL-C\n\n"
|
||||
help+= ExtraHelpData
|
||||
|
@ -851,7 +850,14 @@ def GrabCookie(data,host):
|
|||
logging.warning(NoCookies)
|
||||
return NoCookies
|
||||
|
||||
def ServeWPADOrNot(on_off):
|
||||
if on_off == "ON":
|
||||
return True
|
||||
if on_off == "OFF":
|
||||
return False
|
||||
|
||||
def WpadCustom(data,client):
|
||||
if ServeWPADOrNot(WPAD_On_Off):
|
||||
b = re.search('(/wpad.dat)', data)
|
||||
if b:
|
||||
Message = "[+]WPAD file sent to: %s"%(client)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue