- This topic has 3 replies, 2 voices, and was last updated 6 years ago by
Diego Pérez.
Viewing 4 posts - 1 through 4 (of 4 total)
- AuthorPosts
- June 16, 2020 at 11:30 am #40113
Peter Queen
ParticipantHello, when i run this code:
#!/usr/bin/env python import scapy.all as scapy from scapy.layers import http def sniff(interface): scapy.sniff(iface=interface, store=False, prn=process_sniff_packet) def process_sniff_packet(packet): if packet.haslayer(http.HTTPRequest): if packet.haslayer(scapy.Raw): print(packet[scapy.Raw].load) sniff("eth0")i get this:
root@kali:~/PycharmProjects/packet_sniffer# python packet_sniffer1.py
0R0P0N0L0J0 +�BF0�’��p���s�_f8����n�ϛ�`���} �+���x��CU
0R0P0N0L0J0 +�BF0�’��p���s�_f8����n�ϛ�`���} �+�lh�(m�CU%
0R0P0N0L0J0 +�BF0�’��p���s�_f8����n�ϛ�`���} �+���x��CU
0Q0O0M0K0I0 +�BF0�’��p���s�_f8����n�ϛ�`���} �+/w�[_)�CU
0R0P0N0L0J0 +��cR�I�
�{�����;��{��2]�7r��\�&�Gy��k� U��� ��%
Before importing “from scapy.layers import http” it was working fine.
Can you please help?
June 17, 2020 at 4:29 am #40154
Diego PérezParticipantHi!
Are you testing in the local host?
Which sites are you using for the tests?Let me know.
DiegoJune 21, 2020 at 9:51 am #40481Peter Queen
ParticipantHi Diego I sorted it thanks!
June 22, 2020 at 6:00 am #40508
Diego PérezParticipantHi Peter!
Cool you got it!
Diego - AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
