corz.org front page. welcome! cor's blog, aka 'corzblog'. I write stuff here.. downloads of all shapes and sizes, documents, secret chasms, you name it.. developing sites, software, stuff.. updates generally get posted here. music is everywhere, sometimes I pin it down.. soul-candy, captured things you can look at.. 'Mathematics For Women' copyright Cor 1994 ;o)
the power to serve, at home or anywhere. webmasters tricks, tips, tools and resources. the devil's work, or a capable multimedia desktop, you decide..
information and search
contact page for corz.org, ways to get $hit to me.. get a print friendly version of this page, probably.. Put YOUR money where MY mouth is!
 
corz.org text viewer..
[currently viewing: /public/docs/comms/router/shell scripts/rad.sh - raw]
 
#!/bin/sh

# Router Automatic Deletions  v0.2
# (insert hearty laugh)
#
# fight back against automatic rule insertion, with..
# automatic rule deletion!
###

###
# drop this script into your PATH somewhere, and make it executable
# cp rad /usr/local/bin/rad
# chmod +x /usr/local/bin/rad
#
# then, if you reboot the router, just type "rad" afterwards. TADA!


# (c) corz.org
#
# more details here..
# http://corz.org/comms/hardware/router/


# prefs..

#router="router"
router="192.168.1.1"
user="admin"
password="admin"

# the action..
{
    sleep 1;
    echo $user
    sleep 1;
    echo $password
    sleep 1;
    echo "delete ipf rule entry ruleid 10"
      sleep 1;
    echo "delete ipf rule entry ruleid 11"
      sleep 1;
    echo "delete ipf rule entry ruleid 12"
      sleep 1;
    echo "delete ipf rule entry ruleid 30"
      sleep 1;
    echo "delete ipf rule entry ruleid 31"
      sleep 1;
    echo "delete ipf rule entry ruleid 32"
      sleep 1;
    echo "delete ipf rule entry ruleid 50"
      sleep 1;
    echo "delete ipf rule entry ruleid 51"
      sleep 1;
    echo "delete ipf rule entry ruleid 52"
      sleep 1;
    echo "delete ipf rule entry ruleid 70"
      sleep 1;
    echo "delete ipf rule entry ruleid 71"
      sleep 1;
    echo "delete ipf rule entry ruleid 72"
      sleep 1;
    echo "delete ipf rule entry ruleid 90"
      sleep 1;
    echo "delete ipf rule entry ruleid 91"
      sleep 1;
    echo "delete ipf rule entry ruleid 92"
      sleep 1;
    echo "exit"
} | telnet $router

# fin