python 2.7 - Scapy: lambda and make_table functions are not working -


i trying work scapy 'lambda' , 'maketable' functions not working. if try use lambda function

print pkt.summary(lambda (s,r): r.sprintf("%ip.src% alive") ) 

output receive

ip / tcp 192.168.0.1:35021 > 192.168.0.254:35021 pa / sip / connectresponse 

which output of summary(). not lambda. if use 'maketable'

print pkt.make_table(lambda(s,r): (s.dst, s.dport,r.sprintf("%tcp.flags%"))) 

i attribute error.

attributeerror: make_table 

i not sure problem here. may missing package required. logging messages when scapy starts are,

warning: pyx dependencies not installed ! please install texlive or miktex. warning: winpcap deprecated (not maintened). please use npcap instead warning: no route found ipv6 destination :: (no default route?) welcome scapy (2.3.3). 

newbie stuff please take in consideration while answering. using windows7-x64.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -