You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adding IPv6 support to SMBServer
* Adding IPv6 support to NTLMRelayX (should update after #2023 - utils.get_address() -)
* Reusing utils.get_address to resolve the address on which each relay server will listen
* Update smbserver.py
Added a comment explaining why repeated code in SMBSERVER constructor
* Setting right address family for relay servers (ipv6)
* Fixing scope_id resolution in SMBSERVER class for IPv6
Copy file name to clipboardExpand all lines: examples/ntlmrelayx.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ def stop_servers(threads):
290
290
291
291
# Interface address specification
292
292
parser.add_argument('-ip','--interface-ip', action='store', metavar='INTERFACE_IP', help='IP address of interface to '
293
-
'bind SMB and HTTP servers',default='')
293
+
'bind relay servers ("0.0.0.0" or "::" if omitted)',default=argparse.SUPPRESS)
294
294
295
295
serversoptions=parser.add_argument_group()
296
296
serversoptions.add_argument('--no-smb-server', action='store_true', help='Disables the SMB server')
@@ -332,7 +332,7 @@ def stop_servers(threads):
332
332
'setting the proxy host to the one supplied.')
333
333
parser.add_argument('-wa','--wpad-auth-num', action='store', type=int, default=1, help='Prompt for authentication N times for clients without MS16-077 installed '
334
334
'before serving a WPAD file. (default=1)')
335
-
parser.add_argument('-6','--ipv6', action='store_true',help='Listen on both IPv6 and IPv4')
335
+
parser.add_argument('-6','--ipv6', action='store_true',help='Listen on IPv6')
336
336
parser.add_argument('--remove-mic', action='store_true',help='Remove MIC (exploit CVE-2019-1040)')
337
337
parser.add_argument('--serve-image', action='store',help='local path of the image that will we returned to clients')
338
338
parser.add_argument('-c', action='store', type=str, required=False, metavar='COMMAND', help='Command to execute on '
parser.add_argument('-ip', '--interface-address', action='store', default='0.0.0.0', help='ip address of listening interface')
45
+
parser.add_argument('-ip', '--interface-address', action='store', default=argparse.SUPPRESS, help='ip address of listening interface ("0.0.0.0" or "::" if omitted)')
46
46
parser.add_argument('-port', action='store', default='445', help='TCP port for listening incoming connections (default 445)')
47
47
parser.add_argument('-dropssp', action='store_true', default=False, help='Disable NTLM ESS/SSP during negotiation')
48
+
parser.add_argument('-6','--ipv6', action='store_true',help='Listen on IPv6')
48
49
parser.add_argument('-smb2support', action='store_true', default=False, help='SMB2 Support (experimental!)')
49
50
parser.add_argument('-outputfile', action='store', default=None, help='Output file to log smbserver output messages')
:param string configFile: a file with all the servers' configuration. If no file specified, this class will create the basic parameters needed to run. You will need to add your shares manually tho. See addShare() method
0 commit comments