Skip to content

Instantly share code, notes, and snippets.

@booo
Last active December 19, 2015 07:59
Show Gist options
  • Select an option

  • Save booo/5922316 to your computer and use it in GitHub Desktop.

Select an option

Save booo/5922316 to your computer and use it in GitHub Desktop.
#!/bin/sh
#Postleitzah
plz=""
description=""
#Username von https://ip.berlin.freifunk.net/
usr=""
#Passwort von https://ip.berlin.freifunk.net/
pw=""
# proc Network start ende
# ./regip.sh 104.13.9 1 254
net=$1
i=$2
curl --insecure -c newcookies.txt -d "usr=$usr&pw=$pw" https://ip.berlin.freifunk.net/ip/ip_neu.html > ip_neu.html
while [ $i -le $3 ] ; do
curl --insecure -b newcookies.txt -d "ip_type=wish&wishIP=$net.$i&plz=$plz&description=${description}&action=ip_neu_dyn" https://ip.berlin.freifunk.net/ip/ip_neu.html > ip_neu.html
echo $1.$i
#echo "ip_type=wish&wishIP=$net.$i&plz=10437&action=ip_neu_dyn"
i=`expr $i + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment