Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- # coding: utf-8
- import sys
- import os
- import time
- b='sudo tshark -i eth0 -R “tcp contains “attack”” -T fields -e ip.src -a duration:60>output.txt'
- a=os.popen(b)
- time.sleep(32)
- f=open('output.txt','r')
- text='IP address of attacker is'
- print (text), f.read()
- f.close
- tshark: Lua: Error during loading:
- [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
- tshark: "�" was unexpected in this context.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement