Created
April 27, 2016 09:09
-
-
Save larrylv/39690c9498a7c7804ff27ac1f677ba34 to your computer and use it in GitHub Desktop.
tcp-stack-blog
This file contains 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' | |
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