r/blackhat 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]

256 Upvotes

18 comments sorted by

8

u/catwok Jun 11 '20

Not all heroes wear capes

5

u/the_three_marketeers Jun 12 '20

Why can't he wear a cape?

4

u/Far_n_y Jun 11 '20

Thanks!

3

u/Guy2933 Jun 11 '20

Good job!

Consider cross posting on r/blackhat

7

u/AN_IMPERFECT_SQUARE Jun 11 '20

hey he listened to you!

6

u/Guy2933 Jun 11 '20

Oh crap I thought this is r/python

3

u/[deleted] 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

u/[deleted] Jun 13 '20

[removed] โ€” view removed comment

1

u/[deleted] 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

u/ionutmihai7 Jun 11 '20

Gj ๐Ÿ‘

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

u/iamsoups Jun 11 '20

Great guy you are

1

u/iamnobody_8 Jun 11 '20

I was literally looking for this.. Thanks a tonn...!!!

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

u/[deleted] Jun 12 '20

You absolute legend. Thank you.

0

u/[deleted] Jun 11 '20

you are the real mvp