Skip to content

cmikk/blog-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog-code

The code published in Farsight Security Blog articles is made available here for easy download.

A simple example of how to use the nmsg API. It reads packets from a network interface, converts them to NMSG, and mirrors the payloads to a binary file and to stdout. Originally published in Farsight Security's Network Message, Volume 4: The C Programming API.

A simple example of how to use the pynmsg API. It reads base:packet encoded NMSGs, winnows to IPv4 TCP or UDP packets and prints to stdout a 5-tuple of source IP, source port, destination IP, destination port, protocol. If configured to do so, it will also construct base:ipconn encoded NMSGs and send to them to a network socket. It was originally published in Farsight Security's Network Message, Volume 5: The Python Programming API.

A reusable example of an nmsg filter using wdns to filter interesting DNS traffic out of a passive DNS stream. Originally published in Processing Passive DNS With the nmsg C API.

An example of how manually deserialize an NMSG Google Protocol Buffer message using the C programming language. It reads NMSGs from a file and counts the number of containers and payloads. Two other examples are presented (protoc-c and Nanopb to help with performance benchmarking. Originally published in Google Protocol Buffer Deserialization The Hard Way.

Hello World, AXA-style. Introductory example of how to use the libaxa C API. sratesttool connects to an SRA server, sets a watch, enables a channel and streams watch hits to the console. Originally published in Farsight's Advanced Exchange Access: The C Programming API, Part One.

About

Farsight Security Blog code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.3%
  • Python 2.9%
  • Other 1.8%