worawit / MS17-010

MS17-010
2.13k stars 1.1k forks source link

TypeError on mysmb.py. #13

Open OffSecMan opened 7 years ago

OffSecMan commented 7 years ago

Hello,

When i run the checker.py, I get an error from mysmb.py:

root@kali:~/Documents/Eternalblue# python checker.py 10.0.0.9
Target OS: 
Traceback (most recent call last):
  File "checker.py", line 42, in <module>
    conn.login(USERNAME, PASSWORD)
  File "/root/Documents/EternalBlue/10.0.0.9/mysmb.py", line 152, in login
    smb.SMB.login(self, user, password, domain, lmhash, nthash, ntlm_fallback)
TypeError: login() takes at most 6 arguments (7 given)

Is this an error? Or do I have to give checker.py more/less input?

fupinglee commented 7 years ago

i think you should change mysmb.py .

line 137 old self.smbConn = smbconnection.SMBConnection(self.get_remote_host(), self.get_remote_host(), existingConnection=self, manualNegotiate=True) after change self.smbConn = smbconnection.SMBConnection(self.get_remote_host(), self.get_remote_host(), existingConnection=self)

line 152 old smb.SMB.login(self, user, password, domain, lmhash, nthash, ntlm_fallback)

after change smb.SMB.login(self, user, password, domain, lmhash, nthash)

good luck,-)

f0r34chb3t4 commented 6 years ago

tanks!!