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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
# Author: N0dr4x ([email protected]) | |
''' | |
Simple Scapy TCP Session class that provide ability | |
to : | |
- execute the 3-way handshake (eg. connect) | |
- properly close connection (->FIN/ACK, <-FIN/ACK, ->ACK ) | |
- send automatic acknowledgment of received tcp data packet |