OSCP Notes
  • Introduction
  • Port Scanning
  • Nmap Port Scanning
  • Nmap Scripts
  • Services Enumeration
    • SMB Enumeration (Port 139, 445)
    • SNMP Enumeraion (Port 161)
    • NFS Enumeration (Port 111, 2049)
    • SMTP Enumeration (Port 25)
    • DNS Enumeration (Port 53)
    • POP3 (Port 110, 25*)
    • MySQL (Port 3306)
    • Oracle (Port 1521)
    • MsSQL (Port 1433)
  • Web / HTTP
    • Web Scanning
    • CMS
    • Directory Fuzzing
    • File Upload
      • Bypass file upload filtering
      • Bruteforcing extensions
      • WebDAV
    • Bruteforce Authentication
    • LFI and RFI
      • Interesting Files for LFI
      • Null Byte Injection
      • PHP Wrappers
    • ShellShock
    • Post Requests
  • password attacks
    • Brute-force service password
    • Cracking Password
    • Custom Worldlist
  • Exploitaion
    • Searchsploit
    • Compiling the Exploit
  • shell
    • Bind and Reverse shell
    • Upgrading shell
    • msfvenom
  • Linux Post Exploitation
    • Linux Manual Exploitation
    • Linux post exploitation scripts
    • Kernel Exploitation
  • windows post exploitation
    • General
    • Manual Exploitaion
    • Dumping the sam file
    • SUDO SU
    • Automated enumeration script
    • Windows Exploit Suggester
  • file transfer
    • General
    • Linux
    • Windows
  • cheatsheets
    • Command injection Cheatsheet
    • Find Command Cheatsheet
    • Netcat
    • SQL Injection Bypass
    • CheckList
    • XSS Payload
Powered by GitBook
On this page
  • Find things by name
  • Find things by name (case-insensitive)
  • Find only files by name
  • Find only directories by name
  • Find file with insecure permission
  • Find all symlinks
  • Find things by it's owner
  • Find executable files
  • Find SUID files
  • Find things changed in the last 24 hours
  • Find files bigger than X Size
  1. cheatsheets

Find Command Cheatsheet

Find things by name

find /path/to/search -name filename

Find things by name (case-insensitive)

find /path/to/search -iname filename

Find only files by name

find /path/to/search -name filename -type f

must notice that " " quotes, you must use it if you want to use wildcards otherwise it will not find , and also f in type stand for file

Find only directories by name

find /path/to/search -name dirname -type d

Find file with insecure permission

find / -writable -type d 2>/dev/null

Find all symlinks

find /path/to/search -type l

Find things by it's owner

find /path/to/search -user owner

Find executable files

find /path/to/search -type f -executable

Find SUID files

find /path/to/search -perm -4000

Find things changed in the last 24 hours

find /path/to/search -ctime -1

Find files bigger than X Size

find /path/to/search -size +<size>

$ find ~ -size +5000M
PreviousCommand injection CheatsheetNextNetcat

Last updated 3 years ago