Metasploit Cheat Sheet
Metasploit Cheat Sheet
InstallRubyandRubyGemsonyoursystem. DownloadMetasploitSourceCodeinatarballformatorfromgithub Turnoffyourfirewalltolistenforreverseshellconnections(sudoserviceiptablesstop). MSFConsoleCommands ./msfconsole search[keyword] search20030716 info[/foo/bar/exploit/name] use[/foo/bar/exploit/name] showoptions set[option][value] setRHOST192.168.122.75 exploit opensthemetasploitterminal searchesforexploitsusingakeyword displaysinformationaboutanexploit opensanexploitforusage displaystheparametersthatneedtobeset foracurrentlyselectedexploit setsaparameterfortheexploit executesthecurrentlyselectedexploit
MSFMeterpreterCommands executefcmd.exeiHt getprivs uictlenablekeyboard/mouse reboot Executecmd.exewithallavailabletokensand makeitahiddenprocess. Getasmanyprivilegesaspossibleonthe target Takecontrolofthekeyboardand/ormouse rebootthetargetmachine