windows

1.busybox

  • 功能
    • 在windows下执行linux命令
  • 资料
  • 直接执行busybox会看到所有支持的命令
  • 支持的命令
    • ash #shell环境
    • awk
    • sed
    • vi
    • find
    • grep
  • busybox wget
    • HTTP Basic认证(用户名/密码)
    #方式一
    busybox wget --user=用户名 --password=密码 http://example.com/path/to/file
    #方式二
    busybox wget http://用户名:密码@example.com/path/to/file
    
    • 其他认证方式
    #cookie
    busybox wget --header="Cookie: name=value" http://example.com/file
    #token
    busybox wget --header="toke:token1" http://example.com/file
    #Authorization
    busybox wget --header="Authorization:Bearer XXX" http://example.com/file
    
    • HTTP 操作
    #get
    busybox wget "http://example.com/api?key1=value1&key2=value2" -O output.txt
    #post
    busybox wget --post-data="username=admin&password=123456" https://httpbin.org/post -O post_result.txt
    
本页目录