Skip to content
/ ttw Public

ttw - talking to whom? the python console util to track all your connections

License

Notifications You must be signed in to change notification settings

MShel/ttw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ttw

ttw - talking to whom? the python console util to track all your outcome connections In other words easily extendable network sniffer with some functionality to analyse requests

command examples:

  • sudo python3 ttw.py --verbose=true --protocol=tcp --nic=wlan0
  • sudo python3 ttw.py --verbose=true --protocol=all

for now only IP family is going to be supported... Trello board with all the plans: trelloLinkToBoard

By default all the requests will be logged in sqlite database called ttw in the same directory To edit this settings, or disable it completely open file called ttw.py and edit lines 27,28

Things you need to run it

  • linux
  • root rights
  • python3
  • netifaces

Example Report for TCP with verbose Of

/ttw$ sudo python3 ttw.py  --verbose=false --protocol=tcp
Started Listening at - 22:36:41:758742 | Dec 23 2015
^CFinished Listening at - 22:37:27:484712 | Dec 23 2015
Listened for 0:00:45.725970
{
    "Requests per receiver Ip Addresses": {
        "107.23.78.89": 46,
        "104.97.14.67": 9,
        "104.97.30.254": 18,
        "199.16.156.75": 38,
        "192.30.252.126": 47,
        "104.156.85.134": 28,
        "23.235.46.64": 30,
        "192.30.252.87": 46,
        "192.243.250.36": 17,
        "199.16.156.41": 39,
        "173.255.230.5": 31,
        "104.96.175.130": 40,
        "23.33.84.191": 18,
        "104.97.42.146": 20,
        "10.0.0.164": 47,
        "65.52.108.74": 1,
        "213.199.179.140": 36,
        "23.235.46.134": 30,
        "104.96.184.28": 37,
        "192.30.252.128": 45,
        "74.217.63.56": 24,
        "192.30.252.90": 44,
        "199.27.76.64": 42,
        "192.30.252.86": 42,
        "104.97.108.218": 41,
        "104.96.189.64": 17,
        "91.190.218.62": 35,
        "104.96.190.56": 41,
        "199.27.76.133": 45,
        "199.27.76.196": 42,
        "199.16.156.21": 42
    },
    "Requests per sender Addresses": {
        "107.23.78.89": 29,
        "104.97.14.67": 4,
        "104.97.30.254": 9,
        "199.16.156.75": 22,
        "192.30.252.126": 30,
        "104.156.85.134": 14,
        "23.235.46.64": 16,
        "192.30.252.87": 29,
        "192.243.250.36": 7,
        "199.16.156.41": 23,
        "173.255.230.5": 16,
        "104.96.175.130": 24,
        "23.33.84.191": 8,
        "104.97.42.146": 9,
        "10.0.0.164": 30,
        "65.52.108.74": 2,
        "213.199.179.140": 20,
        "23.235.46.134": 15,
        "104.96.184.28": 21,
        "192.30.252.128": 27,
        "74.217.63.56": 12,
        "192.30.252.90": 27,
        "199.27.76.64": 25,
        "192.30.252.86": 25,
        "104.96.189.64": 5,
        "91.190.218.62": 18,
        "104.96.190.56": 24,
        "199.27.76.133": 28,
        "199.27.76.196": 25,
        "199.16.156.21": 14
    },
    "Requests per protocol": {
        "TCP/IP": 431
    },
    "Requests per Out Port": {
        "48455": 226,
        "36891": 262,
        "43819": 29,
        "36893": 252,
        "36894": 261,
        "49011": 275,
        "48525": 363,
        "36907": 231,
        "36899": 233,
        "44267": 79,
        "53449": 192,
        "34662": 207,
        "32900": 253,
        "36895": 251,
        "37755": 241,
        "40002": 227,
        "40786": 164,
        "12350": 220,
        "39575": 5,
        "49939": 212,
        "48524": 355,
        "32899": 265,
        "80": 282,
        "38920": 281,
        "60480": 338,
        "49813": 85,
        "41015": 32,
        "49818": 40,
        "36892": 250,
        "49816": 87,
        "56523": 235,
        "57761": 279,
        "38458": 237,
        "32898": 263,
        "36913": 230,
        "50537": 124,
        "443": 431,
        "36912": 267,
        "49815": 61,
        "36915": 239,
        "49817": 83,
        "38346": 171,
        "60342": 430,
        "59010": 55,
        "37703": 271,
        "41021": 34,
        "40785": 165,
        "43807": 59,
        "49814": 44,
        "36908": 224,
        "32895": 273,
        "32897": 254,
        "36928": 330,
        "33272": 31,
        "37399": 394,
        "43808": 48,
        "32896": 264,
        "39589": 396,
        "32884": 243,
        "46589": 219,
        "47106": 115,
        "36896": 255,
        "48805": 42
    },
    "Requests per In Port": {
        "48455": 227,
        "36891": 256,
        "43819": 30,
        "36893": 246,
        "36894": 258,
        "49011": 274,
        "48525": 364,
        "36907": 229,
        "36899": 232,
        "44267": 80,
        "53449": 193,
        "34662": 208,
        "32900": 248,
        "36895": 244,
        "37755": 240,
        "40002": 226,
        "40786": 276,
        "12350": 219,
        "39575": 6,
        "49939": 213,
        "57165": 268,
        "32899": 260,
        "80": 281,
        "38920": 282,
        "60480": 339,
        "49813": 86,
        "41015": 33,
        "49818": 41,
        "36892": 245,
        "49816": 88,
        "56523": 234,
        "57761": 280,
        "38458": 236,
        "32898": 257,
        "36913": 228,
        "50537": 120,
        "443": 430,
        "36912": 266,
        "49815": 62,
        "48524": 356,
        "36915": 238,
        "49817": 84,
        "38346": 172,
        "60342": 431,
        "59010": 56,
        "37703": 270,
        "41021": 35,
        "40785": 162,
        "43807": 60,
        "49814": 45,
        "36908": 223,
        "32895": 272,
        "32897": 249,
        "36928": 329,
        "33272": 14,
        "37399": 395,
        "43808": 49,
        "32896": 259,
        "39589": 392,
        "32884": 242,
        "46589": 220,
        "47106": 116,
        "36896": 247,
        "48805": 43
    }
}

About

ttw - talking to whom? the python console util to track all your connections

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages