mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-22 14:23:39 -07:00
Fix socket
Unhandled exception in thread started by <function RunInloop at 0x7f333307c398> Traceback (most recent call last): File "SMBRelay.py", line 406, in RunInloop worker = RunRelay(Target,Command,Domain) File "SMBRelay.py", line 223, in RunRelay s = socket(AF_INET, SOCK_STREAM) TypeError: 'module' object is not callable ^CTraceback (most recent call last): File "SMBRelay.py", line 422, in <module>
This commit is contained in:
parent
a814d0de81
commit
0471ba4165
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ def Parse_Nego_Dialect(data):
|
||||||
return "\x0a\x00"
|
return "\x0a\x00"
|
||||||
|
|
||||||
def SmbRogueSrv139(key,Target,DomainMachineName):
|
def SmbRogueSrv139(key,Target,DomainMachineName):
|
||||||
s = socket(AF_INET,SOCK_STREAM)
|
s = socket.socket(AF_INET,SOCK_STREAM)
|
||||||
s.setsockopt(SOL_SOCKET,SO_REUSEADDR, 1)
|
s.setsockopt(SOL_SOCKET,SO_REUSEADDR, 1)
|
||||||
s.settimeout(30)
|
s.settimeout(30)
|
||||||
try:
|
try:
|
||||||
|
@ -220,7 +220,7 @@ def RunRelay(host, Command,Domain):
|
||||||
Target = host
|
Target = host
|
||||||
CMD = Command
|
CMD = Command
|
||||||
print "Target is running: ", RunSmbFinger((host, 445))
|
print "Target is running: ", RunSmbFinger((host, 445))
|
||||||
s = socket(AF_INET, SOCK_STREAM)
|
s = socket.socket(AF_INET, SOCK_STREAM)
|
||||||
s.connect((host, 445))
|
s.connect((host, 445))
|
||||||
h = SMBHeader(cmd="\x72",flag1="\x18",flag2="\x03\xc7",pid="\xff\xfe", tid="\xff\xff")
|
h = SMBHeader(cmd="\x72",flag1="\x18",flag2="\x03\xc7",pid="\xff\xfe", tid="\xff\xff")
|
||||||
n = SMBNego(Data = SMBNegoData())
|
n = SMBNego(Data = SMBNegoData())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue