-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Unlock all sites in 7 steps
tangdou1 edited this page Jan 19, 2019
·
3 revisions
If you care about the security issue, donot test it in your personal PC and run it in a new VPS that donot have your personal information.
- Enter your Linux system as
root
user - Make sure your PC or VPS has installed
sqlite3
andcurl
- Make sure you have visted the site
1LtvsjbtQ2tY7SCtCZzC4KhErqEK3bXD4n
- run
vi seedall.sh
- write (press
i
key then copy these flowing content) and save (pressEsc
key then:wq
thenEnter
key)
#!/bin/sh
ZERO_DIR=~/ZeroNet-master
ZERO_HOST=127.0.0.1
HOST_PORT=43110
APP_ID=1LtvsjbtQ2tY7SCtCZzC4KhErqEK3bXD4n
ALL_SITES=`sqlite3 $ZERO_DIR/data/$APP_ID/data/zerosites.db "select address from sites;"`
for SITE in $ALL_SITES; do
echo Check site $SITE
curl -H "Accept: text/html" --silent http://$ZERO_HOST:$HOST_PORT/$SITE > /dev/null
done
(change the ZERO_DIR
,ZERO_HOST
,and HOST_PORT
, if neccessary )
- run
chmod 777 seedall.sh
- run
./seedall.sh