ojasookert / CVE-2017-0781

Blueborne CVE-2017-0781 Android heap overflow vulnerability
137 stars 50 forks source link

invalid stuff #4

Closed slouchycouch closed 3 years ago

slouchycouch commented 3 years ago

hi so when i execute the python program it comes back with Traceback (most recent call last): File "/home/kalilinux/Downloads/CVE-2017-0781.py", line 36, in bad_packet = packet('AAABBBB') File "/home/kalilinux/Downloads/CVE-2017-0781.py", line 32, in packet pkt += p8(set_bnep_header_extension_bit(BNEP_FRAME_CONTROL)) TypeError: can only concatenate str (not "bytes") to str what am i doing wrong and how can i fix this?

ojasookert commented 3 years ago

Use Python 2, otherwise feel free to open a PR to get it working with Python 3.

johndpope commented 3 years ago

FYI you can use the terminal command 2to3 2to3 oldpython2z.py

and it will automatically upgrade / preview to v3 code.

-w will write it out / changes.

slouchycouch commented 3 years ago

FYI you can use the terminal command 2to3 2to3 oldpython2z.py

and it will automatically upgrade / preview to v3 code.

-w will write it out / changes.

so ive been trying to do it and it either says im doing it in the wrong order or it just doesnt change anything.....