httpdump

package module
v0.0.0-...-4cf33b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

httpdump

introduction

a simple tool for dump http packets, you may use it to detect and protect your sensitive data in a production environment especially read flow from switch.

it supports simple http network flow in http1.0/http1.1.

it does not support https/http2/chunked http response , maybe i will support them in a few days but who knows ...

this is a first go project for me, so maybe it's not such graceful, if you have better way to code please tell me.

document

the way to use it :

httpChan := httpdump.DumpIf(ifName)

you may like to have an example in test_dump.go

hello

if you have any good idea just let me know

email: 78407033@qq.com

I do will check them at least once a year

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpIf

func DumpIf(path string) chan HttpPacket

support : simple network flow in http 1.0 / http 1.1 not support : http 2 (ignore), https (ignore), Transfer-Encoding: chunked (response is replaced by text 'error')

func IsTxtContent

func IsTxtContent(contentType string) bool

func TestDump

func TestDump(t *testing.T)

Types

type HttpCache

type HttpCache struct {
	// contains filtered or unexported fields
}

type HttpPacket

type HttpPacket struct {
	Ch  TcpChannel
	Req *http.Request
	Res *http.Response
}

type TcpChannel

type TcpChannel struct {
	SrcIP   string
	DstIP   string
	SrcPort layers.TCPPort
	DstPort layers.TCPPort
}

type TcpTask

type TcpTask struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址