You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ This is a repository of all the tutorials of [The Python Code](https://www.thepy
12
12
-[Forcing a device to disconnect using scapy in Python](https://www.thepythoncode.com/article/force-a-device-to-disconnect-scapy). ([code](scapy/network-kicker))
-[Writing a DNS Spoofer](https://www.thepythoncode.com/article/make-dns-spoof-python). ([code](scapy/dns-spoof))
15
+
-[How to Sniff HTTP Packets in the Network using Scapy in Python](https://www.thepythoncode.com/article/sniff-http-packets-scapy-python). ([code](scapy/http-sniffer))
15
16
-[Writing a Keylogger in Python from Scratch](https://www.thepythoncode.com/article/write-a-keylogger-python). ([code](ethical-hacking/keylogger))
16
17
-[Making a Port Scanner using sockets in Python](https://www.thepythoncode.com/article/make-port-scanner-python). ([code](ethical-hacking/port_scanner))
# if show_raw flag is enabled, has raw data, and the requested method is "POST"
43
+
# then show raw
44
+
print(f"\n{RED}[*] Some useful Raw data: {packet[Raw].load}{RESET}")
45
+
46
+
47
+
if__name__=="__main__":
48
+
importargparse
49
+
parser=argparse.ArgumentParser(description="HTTP Packet Sniffer, this is useful when you're a man in the middle." \
50
+
+"It is suggested that you run arp spoof before you use this script, otherwise it'll sniff your personal packets")
51
+
parser.add_argument("-i", "--iface", help="Interface to use, default is scapy's default interface")
52
+
parser.add_argument("--show-raw", dest="show_raw", action="store_true", help="Whether to print POST raw data, such as passwords, search queries, etc.")
0 commit comments