Skip to content

Block Website using TCP Packet Injection on out-of-path environment

Notifications You must be signed in to change notification settings

ugonfor/tcp-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcp-block

Block Website using TCP Packet Injection on out-of-path environment

How to use

syntax : tcp-block <interface> <pattern> [-r <url>]
    -r <url> : set redirect url to <url> (maxlen : 900)
sample : tcp-block wlan0 "Host: www.president.go.kr"
       : tcp-block wlan0 -a

code

  • Need pcap library

  • I try to use socket, but it doesn't work.

  • I don't know why but when I use the socket function, the sending packet was very slow!

  • So, I made tcp-block firewall on pcap library

  • -r option should be completed (not yet)

  • See packet.rule to know how I made the injecting packet.

reference

About

Block Website using TCP Packet Injection on out-of-path environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published