forked from aciliketcap/fakearp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-new-pair-entry.scr
executable file
·28 lines (28 loc) · 1.57 KB
/
test-new-pair-entry.scr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#test input of /proc/fakearp_new_pair
set -x
echo 192.168.4.4-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.4.5-a1:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.4.006-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.4.7-aa:bb:cc:dd:ee:00ffff > /proc/fakearp_new_pair
echo 001.001.001.001-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 0.0.0.0-00:00:00:00:00:00 > /proc/fakearp_new_pair
echo 255.255.255.255-ff:ff:ff:ff:ff:ff > /proc/fakearp_new_pair
echo 192.168.4.4-aa:bb:cc:dd:ee:01 > /proc/fakearp_new_pair
#fails
echo 192.168.5.5---aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.255.255aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.255.255\0aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.255.255\0aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.255.2555-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.2555.255-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.1685.255.255-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 1925.168.255.255-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 256.256.256.256-aa:bb:cc:dd:ee:00 > /proc/fakearp_new_pair
echo 192.168.5.6-fg:fg:fg:fg:fg:fg > /proc/fakearp_new_pair
echo 192.168.5.7-1aa:1bb:1cc:1dd:1ee:100 > /proc/fakearp_new_pair
echo 192.168.5.8-aa1:bb1:cc1:dd1:ee1:001 > /proc/fakearp_new_pair
dd if=/dev/zero of=/proc/fakearp_new_pair count=1024 bs=4096
dd if=<(yes $'\xFF' | tr -d "\n") of=/proc/fakearp_new_pair count=1024 bs=4096
dd if=/dev/zero of=/proc/fakearp_new_pair count=1024 bs=5000
dd if=<(yes $'\xFF' | tr -d "\n") of=/proc/fakearp_new_pair count=1024 bs=5000