#why am i getting the value None ?

1 messages · Page 1 of 1 (latest)

woeful plaza
#

import scapy.all as scapy
pkt = scapy.sniff(filter='tcp',count=10)
print(pkt.padding())

result:

None

brisk pier
#

This isn't a Python support server

#

However, I think I know what's going on.

#

You didn't define anything for scapy to sniff.

#

@woeful plaza

woeful plaza
#

how ?

#

how did i not define anything ?

brisk pier
#

Scapy isn't sniffing anything

woeful plaza
#

what do you mean ?

brisk pier
#

Dude. Just take one look at your code.

#

You are telling scapy to sniff nothing.

#

If you ask something to return nothing, its going to return nothing.

woeful plaza
#

it doesn't make any sense how am i not sniffing anything ?

#

see by yourself

#

one tcp packet sniffed

#

????

#

i am really confused

brisk pier
#

Its sniffing an undefined piece of code.

woeful plaza
#

should i filter the packets to get it work or what ?

#

what is your reccomendation ?

brisk pier
#

Look. For starters this is the wrong server.

I can't fix your code, I can only help you find a solution. I have failed to do that, but at least I have informed you my suspicions.

#

Just wait, and someone else should be able to help later.

woeful plaza
#

oky brother i really appreciate

rustic blaze