Skip to content

Instantly share code, notes, and snippets.

@larrylv
Created April 27, 2016 09:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larrylv/39690c9498a7c7804ff27ac1f677ba34 to your computer and use it in GitHub Desktop.
Save larrylv/39690c9498a7c7804ff27ac1f677ba34 to your computer and use it in GitHub Desktop.
tcp-stack-blog
require 'packetfu'
config = PacketFu::Utils.whoami?
synpkt = PacketFu::TCPPacket.new(config: config, flavor: "Linux")
synpkt.ip_daddr = "216.58.221.142" # ip of google.com
synpkt.tcp_dst = 80 # port of google.com
synpkt.tcp_flags.syn = 1 # SYN
synpkt.recalc
synpkt.to_w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment