worawit / MS17-010

MS17-010
2.13k stars 1.1k forks source link

TypeError: send_trans() got an unexpected keyword argument 'noAnswer' #17

Open wapik opened 6 years ago

wapik commented 6 years ago

Traceback (most recent call last): File "/home/user/ms/zzz_exploit.py", line 1002, in exploit(target, pipe_name) File "/home/user/ms/zzz_exploit.py", line 895, in exploit service_exec(conn, r'cmd /c copy c:\pwned.txt c:\pwned_exec.txt') File "/home/user/ms/zzz_exploit.py", line 948, in service_exec rpcsvc.bind(scmr.MSRPC_UUID_SCMR) File "/usr/lib/python2.7/dist-packages/impacket/dcerpc/v5/rpcrt.py", line 964, in bind self._transport.send(packet.get_packet()) File "/usr/lib/python2.7/dist-packages/impacket/dcerpc/v5/transport.py", line 389, in send self.__smb_connection.transactNamedPipe(self.tid,self.handle,data, waitAnswer = False) File "/usr/lib/python2.7/dist-packages/impacket/smbconnection.py", line 410, in transactNamedPipe return self._SMBConnection.TransactNamedPipe(treeId, fileId, data, waitAnswer = waitAnswer) File "/usr/lib/python2.7/dist-packages/impacket/smb.py", line 3555, in TransactNamedPipe self.send_trans(tid,pack('<HH', 0x26, fid),'\PIPE\\x00','',data, noAnswer = noAnswer) TypeError: send_trans() got an unexpected keyword argument 'noAnswer'

Targunitoth commented 5 years ago

I know that one year passed, but I got the same error. I fixed it somehow, maybe by upgrading some packages like: pip install --upgrade --force-reinstall impacket