python - Scapy send function without output -


does know how send packet using scapy , not receive output?

this command:

 send(packet,iface="eth0")  

this output

 sent 1 packets. 

i'm trying not print packet count line @ all.

try verbose parameter. scapy documentation says verbose should "make function totally silent when 0". both false , 0 appear work. example:

>>> send(ip(dst="1.2.3.4")/icmp()) . sent 1 packets. >>> send(ip(dst="1.2.3.4")/icmp(), verbose=0) >>> send(ip(dst="1.2.3.4")/icmp(), verbose=false) >>>  

you can little more information using help():

>>> help(send) on function send in module scapy.sendrecv:  send(x, inter=0, loop=0, count=none, verbose=none, realtime=none, *args, **kargs)     send packets @ layer 3     send(packets, [inter=0], [loop=0], [verbose=conf.verb]) -> none (end) 

Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -