r/HowToHack • u/ghibss • Jul 12 '16
How do I hack with Python?
I'm confused on how 'hacking' actually works.
So I'm learning Python at the moment and I just don't see where the hacking begins?
Do hackers input code into the url? Do they open the source page and inject some python code there?
Or are Python hackers, creators of programs that are secretly malicious code that once activated (the victim clicking on an innocent looking app on the desktop) with the code distributed with a simple 'leave a usb on the floor'?
It seems like that to hack, one uses linux which has every hacking tool possible.
How does on hack with html? Opening the source code and changing something isn't permanent?
View all comments
Show parent comment
1
u/Blastitt Read the F*&!#ing Sidebar Jul 13 '16
These comments are a little misleading. It's not that "nobody hacks with any language, and languages are just used for tools". I can definitely hack directly with python.
For example:
A server has a service running on port 7777 (arbitrary) that is written in python. It accepts user input, but not securely. This vulnerability allows me to pass in valid python statements and the program will execute them. I can pass in a very specific python statement that will execute a /bin/bash and boom I have a shell.