GithubHelp home page GithubHelp logo

0xaww / awd-submit-flag Goto Github PK

View Code? Open in Web Editor NEW
58.0 1.0 13.0 3.35 MB

该模块主要是用来ctf AWD比赛时批量提交flag时使用的

Python 81.68% PHP 4.96% Dockerfile 2.56% Shell 1.68% HTML 9.13%
ctf-awd-flag pwn web awd

awd-submit-flag's Introduction

awd-submit-flag

更新内容:

因为在实际比赛时争分夺秒,原版的功能太多,太过于笨重,所以在原有的版本上,添加了一个快速版

原版本移至standward文件夹中

快速版

说明

该项目主要是用来在AWD比赛中批量自动提交flag时使用的。

依赖

  • python2或python3均可
  • requests(web题依赖,pip安装即可)
  • pwntools(pwn题依赖,pip安装即可)

建议大家pwn和web的环境都安装上,不然py过来的脚本可能跑不起来,想象一下四个web手拿到pwn脚本束手无策的情况。。。。

使用方法

修改好quick_exp.py,之后直接python quick_exp.py即可。

修改内容

1根据pwn或web题目类型取消开头import注释
2main函数中的range范围ipport
3attack函数中payload内容
4submit函数中curl链接token格式flag格式

运行效果

➜  awd-submit-flag git:(master) ✗ p3 quick_exp.py
[ROUND] 2021-06-22 13:02:59 begin to attack
[FLAGS] 192.168.101.101:9999 flag is : flag{123123123}
[SUCCE] 192.168.101.101:9999 attack success
[ERROR] 192.168.101.101:9999 submit failed, because: name 'hs' is not defined
[FLAGS] 192.168.102.101:9999 flag is : flag{123123123}
[SUCCE] 192.168.102.101:9999 attack success
[ERROR] 192.168.102.101:9999 submit failed, because: name 'hs' is not defined
[FLAGS] 192.168.103.101:9999 flag is : flag{123123123}
[SUCCE] 192.168.103.101:9999 attack success
[ERROR] 192.168.103.101:9999 submit failed, because: name 'hs' is not defined
[ROUND] 2021-06-22 13:03:02 round attack end, waitting for next round

image-20210622210314311

注意事项:

  • attack中的remote或request必须设置timeout

  • flag一定要print测试,看flag的内容是否存在问题

  • 正式运行时将pwntools的debug关闭,减少回显

  • 仔细看attack中demo的注释

  • 提前使用env_test环境来提前进行测试,防止比赛现场出现问题。

标准版

标准版的README已转移到

README-standward.md

awd-submit-flag's People

Contributors

0xaww avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

awd-submit-flag's Issues

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.