Skip to content

Instantly share code, notes, and snippets.

View dantmnf's full-sized avatar
💭
🀇🀇🀊🀋🀇🀊🀙🀡🀙🀡🀗🀐🀆

dantmnf

💭
🀇🀇🀊🀋🀇🀊🀙🀡🀙🀡🀗🀐🀆
  • On9 Technologies Ltd.
View GitHub Profile
@dantmnf
dantmnf / duppkt.rb
Created December 20, 2014 12:12
script to duplicate outgoing TCP packets
#!/usr/bin/env ruby
require 'socket'
require 'pcaprub'
require 'packetfu'
IDENTIFY_TTL = 105
interface = 'eth0'
DUPS = 1 # number of duplicated packet(s)
SIOCGIFINDEX = 0x8933