mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2025-12-31 16:20:22 -05:00
updating programming and scripting references
This commit is contained in:
parent
e0523b9547
commit
8ce1d65785
20 changed files with 0 additions and 0 deletions
|
|
@ -1,18 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
# Author: Omar Santos @santosomar
|
||||
# version 1.0
|
||||
# This is a quick demonstration on how to create a
|
||||
# snifffer (packet capture script) using python.
|
||||
#####################################################################
|
||||
|
||||
from __future__ import print_function
|
||||
import socket
|
||||
|
||||
#create an INET, raw socket
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP)
|
||||
|
||||
# receive a packet
|
||||
while True:
|
||||
|
||||
# print output on terminal
|
||||
print(s.recvfrom(65565))
|
||||
Loading…
Add table
Add a link
Reference in a new issue