Submit
Path:
~
/
/
opt
/
postupcp
/
File Content:
run_arping
#!/bin/bash # Performs arping to gateway from all IP's source /etc/profile gateway="$(route -n|awk '$4 == "UG" {print$2}')" log="/opt/postupcp/run_arping.log" echo "----$(date)----" >> $log do_arping() { sleeptime=$(( ( $RANDOM % 300 ) + 1 )) echo "Sleeping for $sleeptime seconds" >> $log sleep $sleeptime for ip in $(ip -f inet a | awk -F'[ /]' '/inet.*global/ {print $6}');do arping -c 1 -w 1 -s $ip $gateway >> $log done } do_arping
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
Modules.pm
17141 bytes
0644
run_arping
445 bytes
0755
run_arping.log
20312 bytes
0644
N4ST4R_ID | Naxtarrr