Skip to content

Instantly share code, notes, and snippets.

@0xbug
Last active August 9, 2020 15:55
Show Gist options
  • Select an option

  • Save 0xbug/26e162f9ff266958ac59efec9f7dbe7c to your computer and use it in GitHub Desktop.

Select an option

Save 0xbug/26e162f9ff266958ac59efec9f7dbe7c to your computer and use it in GitHub Desktop.

Revisions

  1. 0xbug revised this gist Apr 22, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion docker-awvs.md
    Original file line number Diff line number Diff line change
    @@ -46,4 +46,5 @@ docker build -t awvs:latest -f Dockerfile .
    ```
    docker run -ti -p 443:13443 -d awvs
    ```

    打开浏览器访问
    [https://127.0.0.1](https://127.0.0.1)
  2. 0xbug revised this gist Apr 22, 2019. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion docker-awvs.md
    Original file line number Diff line number Diff line change
    @@ -37,9 +37,13 @@ USER acunetix
    CMD ["/bin/bash", "start.sh"]
    ```


    创建镜像
    ```
    docker build -t awvs:latest -f Dockerfile .
    ```
    启动镜像

    ```
    docker run -ti -p 443:13443 -d awvs
    ```

  3. 0xbug revised this gist Apr 22, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion docker-awvs.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    宿主机
    ```
    docker pull ubuntu
    docker run -ti --name=awvs -v /tmp/awvs:/tmp/awvs ubuntu
    ```

    `acunetix_trial.sh``patch_awvs` 放到宿主机 `/tmp/awvs` 目录下

    进入容器内
    ```
    apt-get install sudo libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 libx11-xcb-dev -y
    @@ -40,3 +41,5 @@ CMD ["/bin/bash", "start.sh"]
    ```
    docker build -t awvs:latest -f Dockerfile .
    ```


  4. 0xbug renamed this gist Apr 22, 2019. 1 changed file with 28 additions and 1 deletion.
    29 changes: 28 additions & 1 deletion docker-awvs.sh → docker-awvs.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,11 @@
    宿主机
    ```
    docker pull ubuntu
    docker run -ti --name=awvs -v /tmp/awvs:/tmp/awvs ubuntu
    ```

    进入容器内
    ```
    apt-get install sudo libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 libx11-xcb-dev -y
    bash /tmp/awvs/acunetix_trial.sh
    cp /tmp/awvs/patch_awvs /home/acunetix/.acunetix_trial/v_190325161/scanner/
    @@ -12,4 +17,26 @@ exit
    exit
    cd /home/acunetix/.acunetix_trial/v_190325161/scanner/
    chmod +x patch_awvs
    ./patch_awvs
    ./patch_awvs
    ```
    回到宿主机
    ```
    docker commit awvs awvs
    touch Dockerfile
    ```
    Dockerfile 内容

    ```
    FROM awvs
    LABEL MAINTAINER=0xbug
    ENV TZ=Asia/Shanghai
    EXPOSE 13443
    WORKDIR /home/acunetix/.acunetix_trial
    USER acunetix
    CMD ["/bin/bash", "start.sh"]
    ```


    ```
    docker build -t awvs:latest -f Dockerfile .
    ```
  5. 0xbug revised this gist Apr 22, 2019. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion docker-awvs.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,15 @@
    docker pull ubuntu
    docker run -ti --name=awvs -v /tmp/awvs:/tmp/awvs ubuntu

    apt-get install sudo libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 libx11-xcb-dev -y
    bash /tmp/awvs/acunetix_trial.sh
    bash /tmp/awvs/acunetix_trial.sh
    cp /tmp/awvs/patch_awvs /home/acunetix/.acunetix_trial/v_190325161/scanner/
    su -l acunetix
    bash
    cd /home/acunetix/.acunetix_trial
    sh start.sh
    exit
    exit
    cd /home/acunetix/.acunetix_trial/v_190325161/scanner/
    chmod +x patch_awvs
    ./patch_awvs
  6. 0xbug created this gist Apr 22, 2019.
    4 changes: 4 additions & 0 deletions docker-awvs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    docker pull ubuntu
    docker run -ti --name=awvs -v /tmp/awvs:/tmp/awvs ubuntu
    apt-get install sudo libxdamage1 libgtk-3-0 libasound2 libnss3 libxss1 libx11-xcb-dev -y
    bash /tmp/awvs/acunetix_trial.sh