Last active
April 27, 2016 09:10
-
-
Save larrylv/9a84e2ea301af8bc8c2dbdb83f37863b to your computer and use it in GitHub Desktop.
tcp-stack-blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'packetfu' | |
cap = PacketFu::Capture.new( | |
iface: config[:iface], | |
start: true, | |
filter: "tcp and src 216.58.221.142" | |
) | |
cap.stream.each do |pkt| | |
# parse pkt and decide what to do next | |
puts pkt | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment