Putin is a war criminal and a son of a bitch!


 

Jednoduchý skript, který posílá udp packety na zadanou ip adresu a port v nekonečné smyčce.


#!/bin/bash

# sender udp packet to ip and port with loop

if [ "$1" == "-h" ]; then
 echo -e "first parameter is ip, second port\nexample 192.168.1.1 80"
 exit
fi

$ip=$1
$port=$2

i=0
while true
 do
 i=$(($i+1))
 echo $i
 echo -n $i | nc -u -w1 $ip $port > /dev/null
 sleep 2
done