Hello! So I rooted my first 14 boxes last week and now I'm going back to do them again without metasploit. I first did lame which took me forever to realize I just needed to change the shebang to python3 and run it with python3. I tired that same thing again on legacy, but I get the error:
File "ms17-010-exploit.py", line 83, in
ntfea10000 = pack('<BBH', 0, 0, 0xffdd) + 'A'*0xffde
TypeError: can't concat str to bytes"
I assume I got lucky with Lame and can't simply change the shebang and expect it to work without changing the syntax that was removed/added during the transition to python 3?
When I try running the original (../bin/python) exploit (https://www.exploit-db.com/exploits/4203) I get:
ImportError: No module named impacket
I did 'apt search impacket' and the only relevant option was python3-impacket which was already installed. I was kind of expecting an option for python-impacket...I'm pretty confused about the whole eol thing with python 1 & 2.
Maybe manual exploit are just too advanced for me at this point but it seems like making minor changes to the exploit code is the real trick to exploiting unpatched boxes so I really want to get this. Any help would be greatly appreciated!!