Giter VIP home page Giter VIP logo

httpflow's Introduction

httpflow

A copy from httpflow-annotation-cyh

Origin repos in httpflow

Installation

You can build this project by

## On Ubuntu / Debian
apt-get update
apt-get install libpcap-dev zlib1g-dev libpcre3 libpcre3-dev
./run.sh -b
# or make

Usage

when success, a httpflow executable file generate in your project root. run

sudo ./httpflow

to execute it. Or you can use

./run.sh -s httpflow # change permission
./httpflow # execute without sudo. It will be convienced for debugging

to change the file's permission and run without sudo.

By default, it output to your terminal. You can use -w option to specify the output directory.

./httpflow -w ./html/

Please refer to httpflow for more information/help.

You can run the following command for more information:

> ./httpflow -h
libpcap version libpcap version 1.10.1 (with TPACKET_V3)
httpflow version 0.0.5

Usage: httpflow [-i interface | -r pcap-file] [-f packet-filter] [-u url-filter] [-w output-path]

  -i interface      Listen on interface
  -r pcap-file      Read packets from file (which was created by tcpdump with the -w option)
                    Standard input is used if file is '-'
  -f packet-filter  Selects which packets will be dumped
                    If filter expression is given, only packets for which expression is 'true' will be dumped
                    For the expression syntax, see pcap-filter(7)
  -u url-filter     Matches which urls will be dumped
  -w output-path    Write the http request and response to a specific directory

  For more information, see https://github.com/six-ddc/httpflow


> ./run.sh -h
Usage: ./run.sh [option]
  b - build this project. you will got a 'httpflow' in your project directory.
  s - [httpflow_pos] change ‘httpflow’ permissions to root.(Execute without sudo).
  m - [output_pos] change the owner of 'output directory' to you.
  h - print this message.

Example

When you have installed httpflow. You can try it to capture a html file as the example shown below

> ./httpflow ./html

# Another terminal
> curl www.baidu.com
> curl www.baidu.com/home

# there will generate a new folder named 'html' whose directory struct looks like this 
> tree html
html
└── www.baidu.com
    ├── home
    │   └── index.html
    └── index.html

httpflow's People

Contributors

cherry-cheng avatar ksd11 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.