Changeset 896:b1db134eca25

Show
Ignore:
Timestamp:
08/31/08 00:33:01 (4 months ago)
Author:
Phil <phil@secdev.org>
Message:

Moved tethereal() to sendrecv.py and renamed it tshark()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • scapy/sendrecv.py

    r867 r896  
    567567    return plist.PacketList(lst,"Sniffed") 
    568568 
    569  
     569@conf.commands.register 
     570def tshark(*args,**kargs): 
     571    """Sniff packets and print them calling pkt.show(), a bit like text wireshark""" 
     572    sniff(prn=lambda x: x.display(),*args,**kargs) 
     573 
  • scapy/utils.py

    r893 r896  
    805805    __make_table(lambda l: "%s", lambda l: "& %s", "\\\\", seplinefunc=lambda a,x:"\\hline", *args, **kargs) 
    806806 
    807  
    808 def tethereal(*args,**kargs): 
    809     sniff(prn=lambda x: x.display(),*args,**kargs) 
    810