- This topic has 7 replies, 2 voices, and was last updated 3 years, 9 months ago by Diego Pérez.
- AuthorPosts
- January 31, 2021 at 3:51 am #51626encryptedn00bParticipant
When I run the packet sniffer nothing shows on the terminal, yes I am sniffing on the localhost and the sites I am testing on are the dictionary.com site used in the lecture and steamylogin.com
I was paying attention to the lecture and even checked the code multiple times. Maybe I’m just tired I don’t know.
Here is my code.#!/usr/bin/env python
import scapy.all as scapy
from scapy.layers import httpdef sniff(interface):
scapy.sniff(iface=interface, store=False, prn=process_sniffed_packet)def process_sniffed_packet(packet):
if packet.haslayer(http.HTTPRequest):
if packet.haslayer(scapy.Raw):
load = packet[scapy.Raw].load
if “username” in load:
print(load)sniff(“eth0”)
February 1, 2021 at 6:12 pm #51673Diego PérezModeratorHi!
Can you share your code with the porper indentation? Otherwise I can’t tell if there’s anything wrong with it.
Also don’t use dictiorary.com as it uses https now a days. Please try it with http sites first, like this:Later on the course you’ll learn to bypass https.
Let me know how it goes!
DiegoFebruary 2, 2021 at 9:04 am #51703encryptedn00bParticipantFor some reason I can’t copy and paste my code with proper indentation and I tried with the website you gave me and it still did not work. So I assume something is wrong with the indentation then.
- This reply was modified 3 years, 9 months ago by encryptedn00b.
- This reply was modified 3 years, 9 months ago by encryptedn00b.
February 2, 2021 at 6:35 pm #51721Diego PérezModeratorHi!
You can copy it and use the code button to keep indentation, or upload it to pastebin and share the link here.
Greetings!
DiegoFebruary 3, 2021 at 2:23 am #51735encryptedn00bParticipant- This reply was modified 3 years, 9 months ago by encryptedn00b.
- This reply was modified 3 years, 9 months ago by encryptedn00b.
February 3, 2021 at 7:04 pm #51761Diego PérezModeratorHi!
Are you trying it in kali itself right? Can you cahnge username for uname in your code? Then try it again.Let me know how it goes!
DiegoFebruary 5, 2021 at 5:14 am #51801encryptedn00bParticipantThat works thank you
February 6, 2021 at 3:40 am #51832Diego PérezModeratorHi!
Cool you got it!
Diego - AuthorPosts
- You must be logged in to reply to this topic.