Web Hacking & War Games Discuss f.ex. SQL injection and legal hacking here.

InterN0T Affiliates:
EvilZonepy1337

SirCapsAlot.NET

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 4th July 2008, 18:25
Dragon[Sky]'s Avatar
Anti-Social Engineer
 
Join Date: Jun 2008
Location: Psychedelic Skies
Posts: 286
Rep Power: 12
Reputation: 77
Dragon[Sky] will become a Token soon
Webhacking Basics

Hello, this is just a short article about webhacking and the basics (mostly tips).
There's not much to say, so here I'll start...

1. Check for robots.txt
Usually the directory is hxxp://www.targetsite.com/robots.txt
This can contain plenty of information. Even though not all sites have it.
robots.txt is used to restrict the Google bot's access in certain parts of a forum or a website.
It looks like this:

User-agent: *

Disallow: /forum/admin.php
Disallow: /forum/moderator.php
Disallow: /forum/include.php

etc.

2. Check if site is vulnerable to SQL injections
This can be checked with a simple apostrophe at the end.
For example, hxxp://www.targetsite.com/news.php?id=1'
If the page displays an error, then the site is vulnerable.
You may now proceed on injecting more queries and drawing various information.

3. Check for common directories
Sometimes site administrators forget to rename the dirs and leave them as default.
It's good to check for these directories as they can contain version info and other stuff that helps you determine if the site is vulnerable.
Common diretories are:

admin
admincp
mod
modcp
moderator
include
includes
logs
tmp
install

4. Port scanning
Gathering information about the server can also be useful.
Ping the site in cmd (you MUST know how to do this, if you don't, then just leave) and scan the IP (and no, don't limit the scan to 6000 as usual, f.ex 8080 is a common web port).
Don't forget to check the site with nslookup, MaXe's DNS guides cover this.
With this information you can figure out if the site has vulnerabilities and stuff.
Now you can connect with the open port threw telnet. The syntax is telnet IP(or hostname) port. For example, telnet google.com 25.
For example, if the site has port 25 open, which is the SMTP (Simple mail transfer protocol) we can send emails threw the server.
Or even better, imagine there's port 3306 open. That's the SQL port. Threw this you can access the site's SQL database.
Download MySQL or something and try to clear your way in. You can try various combinations, like:

admin admin
admin root
root root
root admin

And so on. Though it's quite possible that you won't get anywhere guessing, so your best bet would be bruteforcing, dictionary attacks, rainbow tables or whatever can you afford.

5. Cookie poisoning
Even though most sites nowadays filter this, it wouldn't hurt to try.
We will do this...with javascript.
It's quite simple. Try this in the address bar.
javascript:alert(document.cookie);
In some cases this may spit out your username and password.
This is the part where you try the famous line...
javascript:void(document.cookie="username='OR'1'=' 1"); void(document.cookie="password='OR'1'='1");
Similar to SQL injection, you guessed it.

6. Check if site is vulnerable to XSS
XSS and javascript together open up a huge horizon of possibilities and a whole lot of new places to discover.
Check if the site is vulnerable by typing this in a webform or something.
<script>alert("awdwdadwd")</script>
If site is vulnerable, then you will get a popup box saying awdwdadwd (yes this was random).
I won't say more about this since I suck at XSS.

Hope you enjoyed my article and have fun.
Keep in mind this is for purely educational purposes and I do NOT encourage anyone to go hack or try random websites. I'm strongly against that.
~Dragon[Sky] ;)
__________________

Reply With Quote
  #2  
Old 5th July 2008, 00:12
MaXe's Avatar
Studying shellcode..
 
Join Date: Jun 2008
Location: Sweden - Ljusdal
Posts: 3,433
Blog Entries: 36
Rep Power: 10
Reputation: 204
MaXe has made his way up the systemMaXe has made his way up the systemMaXe has made his way up the system
Re: Webhacking Basics

I think it's a nice introduction to webhacking and pentesting websites : )
Don't forget to use the Whois system as well ;)
__________________

Quote:
Originally Posted by Norph
MaXe, I really doubt that you are able to browse ANY site more than 2 minutes before you start pwning it xD
Reply With Quote
  #3  
Old 5th July 2008, 05:11
hestas's Avatar
InterN0T Crew
 
Join Date: Jun 2008
Posts: 650
Blog Entries: 2
Rep Power: 13
Reputation: 159
hestas has made his way up the systemhestas has made his way up the system
Re: Webhacking Basics

thx for the guild i enjoy the stuff u write :)
__________________
"Intern0t, fight crime with crime, preventing internet security risks since 2009!"
Reply With Quote
  #4  
Old 27th September 2008, 20:49
darkoneagain's Avatar
 
Join Date: Sep 2008
Posts: 82
Rep Power: 8
Reputation: 11
darkoneagain is on the way to become something
Re: Webhacking Basics

woha, actually didn't know about the /robot.txt one.. o.o nifty..
Reply With Quote
  #5  
Old 5th December 2009, 01:21
 
Join Date: Dec 2009
Posts: 4
Rep Power: 4
Reputation: 1
ervin74 is an unknown memory address at this point
Re: Webhacking Basics

Thank you for basic tutor, usefull for me, good job
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethical Hacking Basics Class Part 2 Drathnar General Hacking Discussions 2 27th July 2010 02:43
Ethical Hacking Basics Class Drathnar General Hacking Discussions 12 30th March 2010 18:14
learn Python basics in 43 videos! LeXeL Perl // Python 1 2nd February 2010 15:45
[Article] Basics of Cryptography Dragon[Sky] Network Security & Cryptography 9 27th January 2010 19:43
Cocoa Touch basics Tsukasa Other Programming Languages 3 27th November 2009 10:33


All times are GMT +2. The time now is 10:27.
Copyright ©2007 - Forever, InterN0T & Teh Unkwon

Hosted by 1and1