Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/david415/HoneyBadger
/ functions
Functions
265 in github.com/david415/HoneyBadger
⨍
Functions
265
◇
Types & classes
58
↓ 1 callers
Method
SetPacketLogger
(types.PacketLogger)
connection.go:87
↓ 1 callers
Method
SetSupervisor
(Supervisor)
types/packet_source.go:62
↓ 1 callers
Function
SetupAttackDetectionPcapInquisitor
(pcapPath string, attackLogger *TestLogger)
pcap_integration_test.go:64
↓ 1 callers
Method
SpraySequenceRangePackets
(start uint32, count int)
attack/injector.go:67
↓ 1 callers
Method
Start
()
logging/pcap_logger.go:107
↓ 1 callers
Method
Stop
()
sniffer.go:73
↓ 1 callers
Method
Stop
()
connection.go:96
↓ 1 callers
Method
Stop
()
logging/pcap_logger.go:111
↓ 1 callers
Method
String
String returns the string representation of a TcpIpFlow
types/flow.go:63
↓ 1 callers
Method
WritePacket
(rawPacket []byte, timestamp time.Time)
logging/pcap_logger.go:146
↓ 1 callers
Method
WritePacketToFile
(rawPacket []byte, timestamp time.Time)
logging/pcap_logger.go:153
↓ 1 callers
Function
byteSpan
(expected, received types.Sequence, bytes []byte)
ordered_coalesce.go:108
↓ 1 callers
Method
capturePackets
()
sniffer.go:115
↓ 1 callers
Function
colorLineDiff
(a, b string)
cmd/honeybadgerReportToolColor/main.go:36
↓ 1 callers
Method
decodePackets
()
sniffer.go:142
↓ 1 callers
Method
dispatchPackets
()
dispatcher.go:209
↓ 1 callers
Function
expandReport
(reportPath string)
cmd/honeybadgerReportTool/main.go:59
↓ 1 callers
Function
expandReport
(reportPath string)
cmd/honeybadgerReportToolColor/main.go:60
↓ 1 callers
Method
flushUntilThreshold
flushUntilThreshold will flush our cache until either we are within the threshold OR our cache is empty.
ordered_coalesce.go:193
↓ 1 callers
Function
lineDiff
(a, b string)
cmd/honeybadgerReportTool/main.go:35
↓ 1 callers
Method
logPackets
()
logging/pcap_logger.go:124
↓ 1 callers
Function
main
()
cmd/honeybadgerReportTool/tcp_port_distribution.py:32
↓ 1 callers
Function
makeTestPacket
()
logging/pcap_logger_test.go:15
↓ 1 callers
Function
min
(a, b int)
ordered_coalesce.go:101
↓ 1 callers
Method
pagesFromTcp
pagesFromTcp creates a page (or set of pages) from a TCP packet. Note that it should NEVER receive a SYN packet, as it doesn't handle sequences corre
ordered_coalesce.go:212
↓ 1 callers
Method
pushBetween
pushBetween inserts the doubly-linked list first-...-last in between the nodes prev-next in another doubly-linked list. If prev is nil, makes first t
ordered_coalesce.go:255
↓ 1 callers
Method
receiveReports
()
logging/attack_logger.go:72
↓ 1 callers
Method
receiveReports
()
logging/metadata_attack_logger.go:58
↓ 1 callers
Method
rotate
()
logging/rotating_writer.go:102
↓ 1 callers
Method
setupHandle
()
sniffer.go:89
↓ 1 callers
Method
shiftLog
(logNum int)
logging/rotating_writer.go:121
↓ 1 callers
Method
stateCloseWait
stateCloseWait represents the TCP FSM's CLOSE-WAIT state
connection.go:517
↓ 1 callers
Method
stateClosed
(p *types.PacketManifest)
connection.go:598
↓ 1 callers
Method
stateClosing
stateClosing represents the TCP FSM's CLOSING state
connection.go:541
↓ 1 callers
Method
stateConnectionClosing
stateConnectionClosing handles all the closing states until the closed state has been reached.
connection.go:611
↓ 1 callers
Method
stateConnectionEstablished
stateConnectionEstablished is called by our TCP FSM runtime and changes our state to TCP_DATA_TRANSFER if we receive a valid final handshake ACK packe
connection.go:321
↓ 1 callers
Method
stateConnectionRequest
stateConnectionRequest gets called by our TCP finite state machine runtime and moves us into the TCP_CONNECTION_ESTABLISHED state if we receive a SYN/
connection.go:300
↓ 1 callers
Method
stateDataTransfer
stateDataTransfer is called by our TCP FSM and processes packets once we are in the TCP_DATA_TRANSFER state
connection.go:352
↓ 1 callers
Method
stateFinWait1
stateFinWait1 handles packets for the FIN-WAIT-1 state func (c *Connection) stateFinWait1(p *types.PacketManifest) {
connection.go:447
↓ 1 callers
Method
stateFinWait2
stateFinWait2 handles packets for the FIN-WAIT-2 state
connection.go:500
↓ 1 callers
Method
stateLastAck
stateLastAck represents the TCP FSM's LAST-ACK state
connection.go:546
↓ 1 callers
Method
stateTimeWait
stateTimeWait represents the TCP FSM's CLOSE-WAIT state
connection.go:534
↓ 1 callers
Method
stateUnknown
stateUnknown gets called by our TCP finite state machine runtime and moves us into the TCP_CONNECTION_REQUEST state if we receive a SYN packet... othe
connection.go:257
↓ 1 callers
Method
traverse
traverse traverses our doubly-linked list of pages for the correct position to put the given sequence number. Note that it traverses backwards, start
ordered_coalesce.go:241
↓ 1 callers
Method
updateLastSeen
updateLastSeen updates our lastSeen with the new timestamp after grabbing the lock
connection.go:158
Method
Add
Add adds an integer to a sequence and returns the resulting sequence.
types/sequence.go:70
Method
Archive
()
dispatcher_test.go:121
Method
Archive
()
retrospective_test.go:40
Method
Archive
()
pcap_integration_test.go:42
Method
Archive
()
pcap_integration_test.go:61
Method
Archive
()
logging/pcap_logger.go:116
Method
Build
(options ConnectionOptions)
dispatcher_test.go:76
Method
Build
(flow *types.TcpIpFlow)
dispatcher_test.go:90
Method
Build
(flow *types.TcpIpFlow)
pcap_integration_test.go:26
Method
Build
(*TcpIpFlow)
types/events.go:41
Method
Build
(flow *types.TcpIpFlow)
logging/pcap_logger.go:91
Method
Close
()
dispatcher_test.go:56
Method
Close
Close can be used by the the connection or the dispatcher to close the connection
connection.go:167
Method
Close
Close closes the ethernet sniffer and returns nil if no error was found.
types/packet_source.go:51
Method
Close
()
logging/util_test.go:22
Method
Close
()
logging/pcap_logger_test.go:59
Method
Close
()
logging/rotating_writer.go:96
Method
Close
()
drivers/libpcap.go:78
Method
Close
()
drivers/afpacket.go:50
Method
Close
()
drivers/bpf.go:51
Method
Close
()
drivers/pcapgo.go:64
Method
Connections
connectionsLocked returns a slice of Connection pointers.
dispatcher.go:106
Method
GetClientFlow
()
dispatcher_test.go:52
Method
GetClientFlow
()
connection.go:142
Method
GetLastSeen
()
dispatcher_test.go:65
Method
GetLastSeen
GetLastSeen returns the lastSeen timestamp after grabbing the lock
connection.go:151
Method
GetObservedConnectionsChan
(count int)
dispatcher.go:88
Method
GetStartedChan
()
sniffer.go:60
Method
GetStartedChan
()
dispatcher_test.go:38
Method
GreaterThanOrEqual
GreaterThanOrEqual returns true if s >= t
types/sequence.go:65
Method
Len
Len computes the number of elements in ring r. It executes in time proportional to the number of elements.
types/ring.go:56
Method
Less
(i, j int)
blocks/blocks.go:62
Method
Log
(event *types.Event)
retrospective_test.go:36
Method
Log
(event *types.Event)
pcap_integration_test.go:57
Method
Log
(event *types.Event)
logging/attack_logger.go:83
Method
Log
(event *types.Event)
logging/metadata_attack_logger.go:69
Function
NewAfpacketHandle
(options *types.SnifferDriverOptions)
drivers/afpacket.go:39
Function
NewBPFHandle
(options *types.SnifferDriverOptions)
drivers/bpf.go:39
Function
NewMockSniffer
(options *types.SnifferDriverOptions, dispatcher PacketDispatcher)
dispatcher_test.go:21
Function
NewPcapFileSniffer
(filename string)
drivers/libpcap.go:57
Function
NewPcapSniffer
(options *types.SnifferDriverOptions)
drivers/libpcap.go:40
Function
NewPcapWireSniffer
(netDevice string, snaplen int32, wireDuration time.Duration, filter string)
drivers/libpcap.go:65
Function
NewPcapgoHandle
(options *types.SnifferDriverOptions)
drivers/pcapgo.go:43
Function
NewSniffer
NewSniffer creates a new Sniffer struct
sniffer.go:46
Function
NewTcpIp6FlowFromLayers
NewTcpIp6FlowFromLayers given IPv6 and TCP layers it returns a TcpIpFlow
types/flow.go:46
Function
NewTestSignalWriter
()
logging/util_test.go:9
Method
ReadPacketData
()
drivers/libpcap.go:74
Method
ReadPacketData
()
drivers/afpacket.go:46
Method
ReadPacketData
()
drivers/bpf.go:47
Method
ReadPacketData
()
drivers/pcapgo.go:59
Method
ReceivePacket
(p *types.PacketManifest)
dispatcher_test.go:61
Method
ReceivePacket
(p *types.PacketManifest)
dispatcher.go:121
Method
ReceivePacket
ReceivePacket implements a TCP finite state machine which is loosely based off of the simplified FSM in this paper: http://ants.iis.sinica.edu.tw/3bkm
connection.go:651
Method
Remove
()
dispatcher_test.go:124
Method
Remove
()
pcap_integration_test.go:45
← previous
next →
101–200 of 265, ranked by callers