May 2018
Beginner
230 pages
4h 49m
English
In this section, you will learn how to send fake ping reply packets. In the fake ping reply code, I have not used any libraries.
Let's understand the code. The code name is icmp_reply.py. In order to run the code, you need to install the ping module from https://pypi.python.org/pypi/ping/0.2:
import socket import struct import binascii import ping import Queue import threading import sys import random import my_logger
Q = Queue.Queue() IP_address = 0 my_socket = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0800)) ...
Read now
Unlock full access