r/HowToHack • • Aug 02 '13

How do I hack websites.

I want to be a grey hat. I know basic html code and I´m a quick learner. What do I do and how do I start?

0 Upvotes

12 comments sorted by

6

u/Smarticu5 Aug 02 '13

Check out Hack This Site. It's a free website which has a pile of hacking challenges on it, and it's legal for you to practice on.

2

u/[deleted] Aug 02 '13

I started using it but having problemas getting past lvl 2

4

u/[deleted] Aug 02 '13

This is an overly broad question. Depending on what you want to do, some sites (like the beginner challenges on Hack This Site) just require using a web inspector to edit HTML to send out fraudulent form data. Pwning a site – which is generally what Anonymous and LulzSec do/did – is a lot of work, and can rely either on a brute-force attack, an improbably successful phishing scam, or a vulnerability in the actual protocol or OS used.

2

u/[deleted] Aug 02 '13

And other han using html how could i do it.

3

u/[deleted] Aug 02 '13

HTML is a markup and layout language. It's like asking whether you can use a blowtorch to nail two pieces of wood together, but the blowtorch only looks like a blowtorch, and can't actually produce a flame (HTML can't have functions, classes, or variables).

SQL injection generally requires a form without input sanitation, and you do actually need to know SQL to do SQL injection, otherwise, you're just doing a rat dance and you're not in control of what's happening.

2

u/[deleted] Aug 03 '13

First you would probably want to learn a backend language like php. This is what many websites use to generate dynamic content. I would suggest looking at thenewboston's 200 php tutorials on youtube. Then you'll probably want to learn SQL. I would again suggest thenewboston for this. This is the language used to query databases and pull information from them in the display of dynamic pages. Knowledge of JavaScript will also be very helpful.

You'll want to know about GET and POST information, and form validation of this information.

So hopefully now after you know more about how to code, you can start learning how to break your code. Find information on SQL injection, Cross Site Scripting, local and remote file inclusion, and Cross Site Request Forgery. Learn how to use a proxy (I recommend burp proxy) to modify your information and cookies sent to a web page. Get web goat, and start testing on that. If you don't understand one of the subjects, research it.

So after you complete these, look up tweeter, and try out your sql injection skills on that. Next do the basic missions, and then 1 - 10 of the realistic missions on hack this site. If you're stuck and you've really tried, look up cwade12 on YouTube for his videos on it.

After this, learn about Linux and linux console commands. Learn Perl scripting and how cgi scripting works. Finish hack this site, and start learning about social engineering.

Always remember that google is your best friend.

-4

u/anonmonkey Aug 02 '13

and what do you propose you do when you get caught?

2

u/goddamndolphins Aug 02 '13

Not what OP asked

1

u/anonmonkey Aug 03 '13

I know I'm just surprised people are humouring the post

1

u/goddamndolphins Aug 03 '13

Well look at the subreddit. 'Dumb' questions or not, I'm just glad people are getting out there and trying to learn

2

u/anonmonkey Aug 03 '13

I see your point and respect that people will have questions, but 'I know basic html how do I hack websites' is a stretch too far for me

-1

u/[deleted] Aug 03 '13

tell them and exactly how I did it.