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

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

Open
jbdu94 opened this issue Apr 22, 2021 · 4 comments
Open

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

jbdu94 opened this issue Apr 22, 2021 · 4 comments

Comments

@jbdu94
Copy link

jbdu94 commented Apr 22, 2021

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

@jbdu94 same here. Have you fixed it?

@Sab0tag3d
Copy link

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

@A1vinSmith
Copy link

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

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

@rosemgo
Copy link

rosemgo commented Mar 28, 2023

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

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

5 participants