Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wapik opened this issue Nov 1, 2017 · 1 comment
Open

Comments

@wapik
Copy link

wapik commented Nov 1, 2017

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants