metasploit intermediate -...

14
Intermediate Metasploit d4rkm4tter

Upload: others

Post on 08-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

Intermediate Metasploit

d4rkm4tter

Page 2: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

BS in Computer Science from SUU

I hack stuff and sometimes get paid for it

I hang out with #dc801

Long history with *nix systems

Regularly compete in CTF competitions

(Defcon’s Qualifier starts May 16th @ 6:00 pm)

whoami

Page 3: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evilYes these tools can do real damage, don’t be dumbDon’t blame me because you are giving up your rights by listening to meAny names or things referenced in this presentation are fiction and not any real person or thing

Disclaimer

Page 4: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

Most exploits works by crashing threads or processes.Bad things will happen so expect this behavior, or don’t exploit.

More Warnings

Page 5: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

How to get help? msf> help [command]More help? msf> [command] -hAutocomplete is your friend! <TAB> everything!MSF Directory on Kali - /usr/share/metasploit-framework

Some MSF Basics

Page 6: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

msf> db_statusKali doesn’t start MSF nor Postgresql on boot# service postgresql start && service metasploit startmsf> db_rebuild_cache

More Basics

Page 7: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

Directory Structure: auxiliary/[type]/[application]/[name]encoder/[architecture]/[name]exploits/[OS]/[type]/[exploit_name]payload/[OS]/[architecture]/[meterpreter||shell_name]nop/[architecture]/[name]post/[OS]/[type]/[name]

More More Basics

Page 8: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

Example usage: msf> use auxiliary/scanner/discovery/udp_probe msf> use encoder/x86/alpha_uppermsf> use exploit/windows/smb/ms08_067_netapimsf> set PAYLOAD windows/meterpreter/reverse_tcp

Less More Basics

Page 9: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

msf> workspacemsf> search [keywords]msf> use [module]msf> set [variable/option] [value]msf> show [all/options/modules/exploits]msf> session -lmsf> session -i 1

Less Basics

Page 10: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

ReconReconRecon

ReconRecon

Recon

Methodology

Recon Send Exploits Pivot Persistence

Internal Network

PWN’d

Page 11: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

You are a hackerTarget: lulzsec Motive: They are suspected of taking a copy of your bosses’ “special video”Objective: Gain access to their internal servers and find evidence they accessed your servers and took the data.

Setting the Scene

Page 12: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

msf>

TO THE CONSOLE!

Page 13: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

OMG IT CRASHED!!

Page 14: Metasploit Intermediate - PalShackpalshack.org/wp-content/uploads/2014/05/OpenWest-2014-Intermedi… · Don’t do stuff you’re not supposta Don’t be chaotic evil, be lawful evil

Questions?

Follow me: @d4rkm4tterBlog: palshack.orgIRC: #DC801Some Vidz: http://bit.ly/QhWNL2

Finally, its over!