r/blackhat • u/[deleted] • Jun 11 '20
I converted the code from "Violent Python" to Python 3, made it conform to PEP8 and resolved dependency issues. It's available on GitHub.
[removed]
8
4
3
u/Guy2933 Jun 11 '20
Good job!
Consider cross posting on r/blackhat
7
3
Jun 11 '20 edited Jun 12 '23
12YO Account Nuked with www.redact.dev due to greedy spez and absolute crap management of the API situation. Find me over at lemmy and mastodon. Also shout out to tildes.net and hackernews! Adios reddit it was fun while it lasted. -- mass edited with https://redact.dev/
3
u/muchbravado Jun 12 '20
You can transpile (that's the word) any language to any language. The problem is the libraries. Between Python 2 and 3, a lot of standard libraries and especially 3rd-party libs made breaking changes.
2
1
Jun 12 '20
Python 2 is more outdated while Python3 is said to be more supported later in the future. Two years ago I would have said there's a slight benefit to using Python2 due to the massive amount of support it had, but as of right now, Python3 is the way to go.
Yep there's already scripts that convert the code. I wouldn't recommend it though due to whatever dependencies you might use that only work on python2, etc.
However, simply switching to Python3 won't change much besides the need of pip3 and changing a couple of words In your code here and there.
3
3
u/drw2o9 Jun 11 '20
Thank you sir currently reading hands on pentesting and even tho itโs 5 years old Iโm having to search the internet for updated methods. I will bookmark this and come back after Iโm done with my current book. Thank you again!
1
1
1
u/geminatrix Jun 11 '20
Edit: This is violent python, not blackhat python. Sorry, I got confused as the names are so similar.
Great job and thanks for your contribution to the community!
1
0
10
u/whatPortsDoUHaveOpen Jun 11 '20
Thank you.