Code Monkey home page Code Monkey logo

ctf-flag-in-pcap's Introduction

CTF: Find Flag in Pcap

用於搜尋 Flag 出現在Pcap 當中的哪個 TCP Stream 與 Pkt

Readme

這個工具主要是因為我在打 CTF 的 A&D, 挨打的時候用來快速定位攻擊封包用的

Install

這個工具使用 pyshark 來讀取 pcap, 因此必須先安裝 pyshark

pip install pyshark

Usage

python find.py "attack.pcap" "flag 的 格式(re)"

Example

專案內有一個 xctf_2016_19.pcap 是我們在打 XCTF 2016 Final 時的被攻擊封包

比賽的 Flag 格式如下

"[0-9A-Za-z]+-[0-9A-Za-z]+-[0-9A-Za-z]+-[0-9A-Za-z]+-[0-9A-Za-z]+"

使用以下指令執行範例

python find.py "xctf_2016_19.pcap" "[0-9A-Za-z]+-[0-9A-Za-z]+-[0-9A-Za-z]+-[0-9A-Za-z]+-[0-9A-Za-z]+"

ctf-flag-in-pcap's People

Contributors

imdedr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.