Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUTORIAL] Scan for vulnerabilities in a webserver

Hello Again HF!,

Welcome to another Hacking Tutorial by MeshCollider.

If you are interested, here are links to my other hacking tutorials:Spoiler (Click to View)

Hacking a website: a brief introduction.
Websites are hosted on a webserver - which is just a computer. if we can gain access to the webserver, we can steal or change the files (e.g. defacing), or move from there to attack an entire network.
To gain access, we can either guess/crack passwords for the FTP server on the computer, etc, or we could exploit vulnerabilities in the server or programs running there to gain access quickly and easily.

This tutorial will demonstrate a simple tool to find potential vulnerabilities in a web server, in order to exploit them. This tool is called Nikto. It is one of the most widely used website vulnerabilities tools for security (penetration) testing and black hat hacking.
WARNING: Although the tool is effective, it is very "noisy" - it is not stealthy and can easily be detected if the webserver being scanned has some sort of detection software installed or has a proactive administrator.

1) Run Nikto on Kali Linux
As usual, we will use Kali because it already has Nikto installed. Choose "Kali Linux -> Vulnerability Analysis -> Misc Scanners -> nikto" and run it.

2) Scan the target server
To simple scan for vulnerabilities, we will use this command:
Code
nikto -h example.com
Where example.com is the target's URL. We can also use an IP address, for example 192.168.1.8 which is the IP address of a server on my own network. To find the IP of a server, simple type this command into a terminal window:
Code
ping example.com
And it will tell you the IP address.

3) Analyse the detected vulnerabilities.
Nikto will give us a nice little report of potential vulnerabilities in the target server. For example, my scan tells us the server is Apache 2.2.14, probably on Ubuntu, and gives a list of potential weaknesses we could try to exploit. Some vulnerabilities will be given with a OSVDB prefix, which stands for Open Source Vulnerability Database - a database of known vulnerabilities at www.osvdb.org. You can read more about the vulnerabilities there, by searching the vulnerability ID.

WATCH OUT FOR FALSE POSITIVES! Nikto merely scans to see if the server responds without error to known exploitable URLs, it does not attempt to execute the exploits itself. Some of the "vulnerabilities" nikto returns may not be vulnerable - this is called a false positive.

In future tutorials, I will demonstrate other ways to scan for vulnerabilities, and ways to exploit these vulnerabilities after you have found them.

Thanks for reading, please reply with your thanks if you enjoyed this and/or found it useful.

Watch out for future hacking tutorials from me - further wireless cracking, metasploit and other common hacking topics!

Written by MeshCollider 🤝
Thanks for this, might be useful one day!
(Mar 24, 2014 01:10 AM)Ch1m4zz Wrote:  Thanks for this, might be useful one day!

Congratz, first reply! Haha, it's not hard, none of my tutorials have been receiving much interest. I appreciate the fact that you have bothered replying, thank you 🙂
This is actually a great tutorial. I think one of the reasons these tutorials don't get the credit they deserve is people want to just download magical software that does everything for them with little work from them.
(Aug 19, 2014 05:51 PM)0dаy Wrote:  This is actually a great tutorial. I think one of the reasons these tutorials don't get the credit they deserve is people want to just download magical software that does everything for them with little work from them.

Thanks man, yeah, there are a lot of LQ people around here. I appreciate your reply though!
Looks good, Can't wait to try it mate. Just have to get all my protection in place, VPN, VM With Kali ect first lol. Pretty new to the scene =/ but not new to computing or programming.
Nice tutorial man ! will definitely help people.
Nikto is one of the best tools to scan vulnerabilities, Linux distros have lots of stuff like this. But this is Vulnscanner #1 🤝
nice tut man. great work. keep it up.
Thanks man, yeah i will try this
Could you make a TUT on stealthy scanners? thanks
[Image: TL-468X60-EN.gif]
nice work done
thanks for sharing....
MeshCollider your tutorials are great never stop them coming!
Nice tutorial man, giving the command to use on Kali, going to try this out now
HQ tutorial, thank you very much!


Possibly Related Threads...
Thread / Author Replies Views Last Post
by pahapoika91Jul 1, 2023 12:19 PM 17 1,261 Jul 1, 2023 12:19 PM
Last Post: terminatorkkkk
by Cyber ConnectionJun 7, 2023 09:29 AM 5 569 Jun 7, 2023 09:29 AM
Last Post: borealfoil409
by spideyFeb 2, 2022 08:46 AM 1 179 Feb 2, 2022 08:46 AM
Last Post: devloop