worawit / MS17-010

MS17-010
2.13k stars 1.1k forks source link

zzz_exploit.py : can only concatenate str (not "bytes") to str #48

Open jbdu94 opened 3 years ago

jbdu94 commented 3 years ago

Hello

When I try to run zzz_exploit.py (which I renamed 42315.py here), I get the following error: can only concatenate str (not "byte") I am running python3.

Thanks for your help

python3 42315.py 192.168.1.2 netlogon 1 ⨯ Target OS: Windows Server 2012 R2 Standard 9600 Traceback (most recent call last): File "/root/42315.py", line 998, in exploit(target, pipe_name) File "/root/42315.py", line 834, in exploit if not info['method'](conn, pipe_name, info): File "/root/42315.py", line 489, in exploit_matched_pairs info.update(leak_frag_size(conn, tid, fid)) File "/root/42315.py", line 333, in leak_frag_size req1 = conn.create_nt_trans_packet(5, param=pack('<HH', fid, 0), mid=mid, data='A'0x10d0, maxParameterCount=GROOM_TRANS_SIZE-0x10d0-TRANS_NAME_LEN) File "/root/mysmb.py", line 349, in create_nt_trans_packet _put_trans_data(transCmd, param, data, noPad) File "/root/mysmb.py", line 73, in _put_trans_data transData = ('\x00' padLen) + parameters TypeError: can only concatenate str (not "bytes") to str

LeKSuS-04 commented 3 years ago

@jbdu94 same here. Have you fixed it?

Sab0tag3d commented 3 years ago

Python 3 cannot concatenate bytes and strings, so use python2 and it should work.

A1vinSmith commented 2 years ago

Use this one https://github.com/3ndG4me/AutoBlue-MS17-010

It supports python3. I tested on my Kali python3.9.9

rosemgo commented 1 year ago

Is there a version of zzz_exploit.py that works with Python 3? Thank you