3ndG4me / AutoBlue-MS17-010

This is just an semi-automated fully working, no-bs, non-metasploit version of the public exploit code for MS17-010
MIT License
1.15k stars 305 forks source link

Fixup Python 3 compat and workaround TCP over NetBIOS being disabled #40

Closed ljrk0 closed 1 year ago

ljrk0 commented 1 year ago

For the non-default "SERVER" mode imports are missing and some Python 3 compatibility tweaks weren't caught yet (fd.read() returns String and the commandparser seems to have changed).

Also, if TCP over NetBIOS isn't enabled, resolution of network shares in UNC paths through IP won't work: https://superuser.com/a/1241871

This will then trigger commands for creating files not being executed properly, resulting in object not found errors. This PR fixes https://github.com/3ndG4me/AutoBlue-MS17-010/issues/38

3ndG4me commented 1 year ago

Awesome contribution, thank you for digging into this!