- This topic has 7 replies, 2 voices, and was last updated 4 years, 1 month ago by
Diego Pérez.
- AuthorPosts
- January 31, 2021 at 3:51 am #51626
encryptedn00b
ParticipantWhen 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érez
ModeratorHi!
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 #51703encryptedn00b
ParticipantFor 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 4 years, 1 month ago by
encryptedn00b.
-
This reply was modified 4 years, 1 month ago by
encryptedn00b.
February 2, 2021 at 6:35 pm #51721Diego Pérez
ModeratorHi!
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 #51735encryptedn00b
Participant-
This reply was modified 4 years, 1 month ago by
encryptedn00b.
-
This reply was modified 4 years, 1 month ago by
encryptedn00b.
February 3, 2021 at 7:04 pm #51761Diego Pérez
ModeratorHi!
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 #51801encryptedn00b
ParticipantThat works thank you
February 6, 2021 at 3:40 am #51832Diego Pérez
ModeratorHi!
Cool you got it!
Diego -
This reply was modified 4 years, 1 month ago by
- AuthorPosts
- You must be logged in to reply to this topic.