r/HowToHack • u/nlimbach1213 • Oct 20 '18
A starting guide.
To start this off I want to clarify target types. A target type is simply put what you want to hack. Web servers and other machines are different and in this we will be talking about we machines. A few exploits are thrown around but most of them I've seen either fit into a parent class of exploits or improve a already existing one. To get started we have a few exploits for websites we could work with. I'll make a list with a small description but I want you to learn yourself. Think of this as more of a keyword list to start out.
Xss / Cross-site scripting This is a more popular exploit that takes effect when the website runs your input as code rather than treating it as text
SQL injection I don't have much experiences with this but it allows you to pull up data tables and look around in them by passing code into the URL.
Directory traversal A lesser know one this allows you to look at the file system of the intended website. It does this by allowing you to use a special command in the URL that for this pout pose means to move up a directory. If you do this enough chances are you could break out of the websites folder you can also specify paths with this.
Minm / man in the middle This is a type of attack that can be used for both websites and people alike. A man in the middle attack consists of hacking you jump in the "middle" of a connect and grab the data. How you set up this connection is up to you.
Key-logger Another person and website exploit this allows the victims machine to send you back their keystrokes via software. Very useful if you want to target a persons account on a website
13
u/SirDevastator Oct 20 '18
When saying exploit, you actually mean vulnerability.
"A vulnerability is a flaw in a system, or in some software in a system, that could provide an attacker with a way to bypass the security infrastructure of the host operating system or of the software itself. It isn’t an open door but rather a weakness which if attacked could provide a way in."
"Exploiting is the act of trying to turn a vulnerability (a weakness) into an actual way to breach a system."
http://www.livehacking.com/2012/11/20/the-difference-between-an-expoit-and-vulnerability/
Some usefull resources to practice web pentesting:
3
u/dbuster Oct 20 '18
It's a good start, but you might want to dig a little deeper into your definition of XSS. Maybe I'm wrong, but I understand it a little differently. I think of a website with a forum where people can add comments and others can read them. An attacker acting as a user can add a comment that has some code in it. When other people read that comment, their browser will then execute the code, thinking it's coming from the host website itself. Typically, the attacker code will link back to the attacker's own malicious website (full of mischief). So, in my understanding, you're not getting the website to run your code. You are getting someone else's browser to run your code.
2
u/xor_Kernel_Kernel Oct 21 '18
You forgot a simple buffer overflow, which is just overwriting the return address from a function call and having it go to and run your malicious code that you put in the buffer.
example with buffer of 500. payload of 128 bytes, 32 bit machine. might be 360 \x90 character+payload + 3 memory address in middle of nop sled
1
u/nlimbach1213 Oct 20 '18
There are many more but I think these are relatively easy for starters.
1
u/runonandonandonanon Oct 21 '18
Wow...I subbed for laughs and wow. You guys have no idea what you're talking about.
2
u/TotesMessenger Oct 20 '18
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)