# Sends ICMP Echo Requests with custom payload to the desired host

from sys import stderr, exit
import socket
import signal
from pythonping import ping

MAX_ICMP_PACKET_SIZE = 1508
PAYLOAD_SIZE = MAX_ICMP_PACKET_SIZE // 3

signal.signal(signal.SIGINT, lambda *args: (
	print('Exiting...'),
	exit(0)
))

address = input('IP Address: ')

try:
	address = socket.gethostbyname(address)
except socket.gaierror:
	print('Invalid address!', file=stderr)

try:
	while True:
		msg = input('> ')
		while len(msg) > 0:
			if len(msg) > PAYLOAD_SIZE:
				ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:PAYLOAD_SIZE].encode() + b'\x00')
			else:
				ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:PAYLOAD_SIZE].encode())
			msg = msg[PAYLOAD_SIZE:]
except (KeyboardInterrupt, EOFError) as e:
	print('Exiting...')
341b77ce7b29df9734f2b0d326f8682bee2d821d
<mask token>

<mask token>
signal.signal(signal.SIGINT, lambda *args: (print('Exiting...'), exit(0)))
<mask token>
try:
    address = socket.gethostbyname(address)
except socket.gaierror:
    print('Invalid address!', file=stderr)
try:
    while True:
        msg = input('> ')
        while len(msg) > 0:
            if len(msg) > PAYLOAD_SIZE:
                ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:
                    PAYLOAD_SIZE].encode() + b'\x00')
            else:
                ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:
                    PAYLOAD_SIZE].encode())
            msg = msg[PAYLOAD_SIZE:]
except (KeyboardInterrupt, EOFError) as e:
    print('Exiting...')

<mask token>
MAX_ICMP_PACKET_SIZE = 1508
PAYLOAD_SIZE = MAX_ICMP_PACKET_SIZE // 3
signal.signal(signal.SIGINT, lambda *args: (print('Exiting...'), exit(0)))
address = input('IP Address: ')
try:
    address = socket.gethostbyname(address)
except socket.gaierror:
    print('Invalid address!', file=stderr)
try:
    while True:
        msg = input('> ')
        while len(msg) > 0:
            if len(msg) > PAYLOAD_SIZE:
                ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:
                    PAYLOAD_SIZE].encode() + b'\x00')
            else:
                ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:
                    PAYLOAD_SIZE].encode())
            msg = msg[PAYLOAD_SIZE:]
except (KeyboardInterrupt, EOFError) as e:
    print('Exiting...')

from sys import stderr, exit
import socket
import signal
from pythonping import ping
MAX_ICMP_PACKET_SIZE = 1508
PAYLOAD_SIZE = MAX_ICMP_PACKET_SIZE // 3
signal.signal(signal.SIGINT, lambda *args: (print('Exiting...'), exit(0)))
address = input('IP Address: ')
try:
    address = socket.gethostbyname(address)
except socket.gaierror:
    print('Invalid address!', file=stderr)
try:
    while True:
        msg = input('> ')
        while len(msg) > 0:
            if len(msg) > PAYLOAD_SIZE:
                ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:
                    PAYLOAD_SIZE].encode() + b'\x00')
            else:
                ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:
                    PAYLOAD_SIZE].encode())
            msg = msg[PAYLOAD_SIZE:]
except (KeyboardInterrupt, EOFError) as e:
    print('Exiting...')

# Sends ICMP Echo Requests with custom payload to the desired host

from sys import stderr, exit
import socket
import signal
from pythonping import ping

MAX_ICMP_PACKET_SIZE = 1508
PAYLOAD_SIZE = MAX_ICMP_PACKET_SIZE // 3

signal.signal(signal.SIGINT, lambda *args: (
	print('Exiting...'),
	exit(0)
))

address = input('IP Address: ')

try:
	address = socket.gethostbyname(address)
except socket.gaierror:
	print('Invalid address!', file=stderr)

try:
	while True:
		msg = input('> ')
		while len(msg) > 0:
			if len(msg) > PAYLOAD_SIZE:
				ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:PAYLOAD_SIZE].encode() + b'\x00')
			else:
				ping(address, count=1, size=PAYLOAD_SIZE, payload=msg[:PAYLOAD_SIZE].encode())
			msg = msg[PAYLOAD_SIZE:]
except (KeyboardInterrupt, EOFError) as e:
	print('Exiting...')