📕
The Red Book
  • 📕The Red Book
  • 🦳Stages of Ethical Hacking
    • 1️⃣Information Gathering
      • Active Information Gathering
        • DNS Zone Transfers
        • NMAP
        • netdiscover
        • sqlMap
        • Nikto
        • Shodan
        • RustScan
        • Amass
        • fping
      • Passive Information Gathering
        • Website Recon & Footprinting
        • Whois Enumeration
        • Netcraft
        • ⭐DNS
        • Identify if site is protected by firewall or proxy - wafw00f
        • Subdomain Enumeration - Sublist3r
        • ❌theHarvester (borked)
        • Email gathering
        • Leaked Password Databases
        • Certificates
    • 2️⃣Enumeration
      • SMB
        • Windows discover & Mount
        • NMAP Scripts
        • SMBMap
        • Samba with Linux
        • Dictionary Attack
      • FTP
      • SSH
      • HTTP
        • Subdomain
        • IIS
        • Apache
      • SQL
    • 3️⃣Vulnerability Assessment
      • Nessus
  • 💾System/Host Based Attacks
    • 🪟Windows
      • Frequently exploited Windows Services
    • 🐧Linux
  • 🥽Dorks
    • Google
      • Cheatsheet
      • Examples
    • Extra
  • 🎣Phishing
    • Gophish
    • evilgophish
    • King Phisher
    • EvilURL
  • 🔎OSINT
    • Temporary links
  • 👾Data exfiltration
    • Temporary links
  • 🐝OWASP
    • Top10
  • 📙Cheat Sheet
    • Curl
Powered by GitBook
On this page
  • Basic sintax
  • Remote commands
Edit on GitHub
  1. Stages of Ethical Hacking
  2. Enumeration
  3. SMB

SMBMap

Basic sintax

smbmap -u guest -p "" -d . -H $IP

smbmap -u administrator -p "$password_123" -d . -H $IP

Remote commands

Run any command

smbmap  -H $IP -u administrator -p "$password_123" -x 'ipconfig'

Read SMB volume

smbmap  -H $IP -u administrator -p "$password_123" -r 'C$'

Upload file

smbmap  -H $IP -u administrator -p "$password_123" --upload '/tmp/trojan' 'C$\trojan'

Download file

smbmap  -H $IP -u administrator -p "$password_123" --download 'C$\download_file.txt'
PreviousNMAP ScriptsNextSamba with Linux

Last updated 2 years ago

🦳
2️⃣