community – Why am i getting consequence even thoug i used two completely different features?


import scapy.all as scapy
pkt = scapy.sr(scapy.IP(src="https://networkengineering.stackexchange.com/questions/80633/192.168.1.1",dst="https://networkengineering.stackexchange.com/questions/80633/192.168.1.1")/scapy.UDP()/scapy.Padding(load='check'))
print(' ')
pkt[0].padding()
print(' ')
pkt[0].nzpadding()

consequence :

0000 13:28:37.644685 IP

0000  74 65 73 74

0000 13:28:37.644685 IP
    
0000  74 65 73 74

I am making an attempt to ship packets to the vacation spot of : 192.168.1.1

however what i get in return is a hexadecimal from each features padding() and nzpadding() it oky i perceive that the each features ought to return a hexadecimal however what i perceive is the hexadecimal shouldn’t be the identical my query is :

why am i getting the identical hexadecimal when utilizing padding() and nzpadding()



Source_link

Leave a Reply

Your email address will not be published.