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

[TUTORIAL] Metasploit Tutorial Part 1 - INSTALLATION

Hello Hf,

Welcome to my first hacking tutorial. Hopefully this will not be my last though 🙂

When you start out in hacking, you will soon run across the word "exploit". An exploit is an attack on a computer system, especially one that takes advantage of a particular vulnerability that the system offers to intruders. It can take advantage of both weaknesses in an operating system or vended application programs.

What Is Metasploit?
Metasploit is one of the best, most widely used exploitation tools in both white hat and black hat hacking. It can be used by both beginning n00bs and more advanced hax0rs 🙂.

Metasploit was developed in 2003 as an open source project by H.D. Moore. Originally developed in PERL, the developer team rewrote Metasploit in Ruby in 2007. This is critical, because you need to have Ruby on your system in order to run Metasploit and to develop your own exploits. Metasploit was then purchased by rapid7 in 2009, which still offers "metasploit community edition" as a free, open source download for anyone to use.

Metasploit is an "exploitation framework". As a framework, it eases the effort to exploit known vulnerabilities in networks, operating systems and applications, and to develop new exploits for new or unknown vulnerabilities. The metasploit framework contains hundreds of exploits and "payloads" and makes it easy to use them. My current version of metasploit contains 1161 exploits and 310 payloads!

In this tutorial, i will be using linux. There are numerous advantages to using linux when hacking. Linux is free, and open source. There is a Windows version of Metasploit, but many of the features such as raw IP packet injection, wireless driver exploitation, SMB relaying attacks, etc. are unavailable on windows. There is also a GUI developed for metasploit by independent developers, but we will be using the command line. All hackers should be familiar and comfortable using the command line.

Download and Installation
First we need to download and install Metasploit (obviously 🙂).
One of the best distros for hacking is Kali Linux. this distro comes with metasploit framework pre-installed, so if you want to use kali, skip the next few steps. Here, I'll walk you through downloading and installing on one of the most popular Linux distros: Ubuntu.
Spoiler (Click to View)

After you have metasploit installed, you are ready to run it! To start up the metasploit framework console, type this into terminal:

Code
msfconsole

NOTE: On kali, you first need to start the metasploit framework service using:
Code
service metasploit start

You should see the beautiful text art "Metasploit" if it runs correctly, and be prompted for a command. Feel free to experiment and research, or wait loyally for my next tutorial on some basic usage of metasploit.

Now that you have successfully installed Metasploit you can start doing some l33t hacks!

Manual Updates:
Spoiler (Click to View)

LIST OF BASIC COMMANDS:Spoiler (Click to View)

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

I am hoping to make another tutorial soon that will teach you how to use Metasploit for a real hack!

Written by MeshCollider 🤝
Pretty neat tutorial 👍 You might want to change the title to "[TUTORIAL] Metasploit Intallation Tutorial", but other than that it was great.
(Mar 19, 2014 11:07 PM)The Wizard of Dos Wrote:  Pretty neat tutorial 👍 You might want to change the title to "[TUTORIAL] Metasploit Intallation Tutorial", but other than that it was great.

Thanks for your quick reply!
I will change the title now, thanks for that 🙂
hello! thanks for the tut. its awsome ! I just installed kali linux, im trying to run some comands listed up here and every single one says " command not found " ( on kali terminal ), even ipconfig. should I reinstal it?
(Mar 29, 2014 12:25 PM)pikachu123 Wrote:  hello! thanks for the tut. its awsome ! I just installed kali linux, im trying to run some comands listed up here and every single one says " command not found " ( on kali terminal ), even ipconfig. should I reinstal it?

You should be using ifconfig not ipconfig on Linux. Try running SET from the menu at the top, not from terminal. That will fix it 🤝
sorry but, what you mean by SET? :P
(Mar 29, 2014 03:06 PM)pikachu123 Wrote:  sorry but, what you mean by SET? :P

Social engineering toolkit 😝
i wanna use backtrack. Will be that Good One. And i heard a lot's a exploit. as you said in your thread but i also heard exploit about web. what is that..
Thank You for this thread. waiting for the next one.
Nice TuT man...... i have been waiting for such tutorial since a long time which is noob -friendly like me......

Cant wait for ur next thread......
Hey guys, I have already made a lot more tutorials! check them out, and I'd appreciate it if you could reply to those too 🙂. Thanks for the great feedback 🙂.
"An exploit is a piece of software, a chunk of data, or a sequence of commands that takes advantage of a bug, glitch or vulnerability in order to cause unintended or unanticipated behavior to occur on computer software, hardware, or something electronic (usually computerized). "
Basically, it is something we use to get control of their computer.
(Mar 19, 2014 11:02 PM)SIM-2015410 Wrote:  
Code
chmode +x metasploit-latest-linux-x*-installer.run

And now execute the installer (using superuser or root via the sudo command. You will need to enter your root password in order to use this command):

Should probably fix that typo on chmod to be
Code
chmod +x metasploit-latest-linux-x*-installer.run
🤝

Otherwise, nice tutorial.

(Mar 30, 2014 08:15 PM)if not true then false Wrote:  Should probably fix that typo on chmod to be
Code
chmod +x metasploit-latest-linux-x*-installer.run
🤝

Otherwise, nice tutorial.

Thanks but what is the typo? I can't see anything wrong with it....
(Mar 30, 2014 08:35 PM)SIM-2015410 Wrote:  Thanks but what is the typo? I can't see anything wrong with it....

It didn't put it in the quote for some reason.
[Image: 7Qngi.png]

Oh I see, but i cant edit the thread anymore...
man ... wheres the rest of the tutorial...i was all excited because i thaught i was gonna be able to use the exploits...damn😵😵😵


Possibly Related Threads...
Thread / Author Replies Views Last Post
by TheCyb3rAlphaFeb 27, 2025 05:13 AM 6 903 Feb 27, 2025 05:13 AM
Last Post: RoundLettuce
by Raymond ReddingtonApr 9, 2024 09:25 PM 7 530 Apr 9, 2024 09:25 PM
Last Post: jm0524895
by h†mlJul 5, 2023 12:49 PM 3 441 Jul 5, 2023 12:49 PM
Last Post: Roli0810