forked from tactmaster/HECT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
78 lines (52 loc) · 2.92 KB
/
README
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
NAME: HECT (Hurricane Electric Certification Tool)
Automatically perform test submissions for HE Certification program.
WHAT IT DOES
It pull down the RSS feed from http://sixy.ch/feed
It add other IP address and host names to ips.csv
Uses this to perform the tests for HE.
If test fail it repeats the test.
It is a quick piece of code to the job so it is not very well written so don't be too critical of it, however improvements/feedback to [email protected]
FILES
he.php - The main run. Edit with your details.
getips.php - this script update the ips.csv from
setting.php - contains the default settings
commands.php - has a a set of commands
ips.php - list the IPs in ip.csv
ipshtml.php - list the IPs in ip.csv in html
GENERATED FILE
setting.json - stored the settings
ip.csv - a list of ips from http://sixy.ch/feed encoded in base 64
number.txt - keeps a reference of how far though ip.csv
my_cookies.txt - keeps a cookie for logging in.
%test%.html - the returned document for debugging
%test%raw.html - the submission to he for debugging
fail.html - the failed returned page of the last failure for a unknown reason.
INSTALLATION/RUNNING
You need php > 5 (been tested on 5.3.6 and 5.2.17) with curl. If you need to run it on PHP < 5 let me know
It has been tested on Gentoo.
It also runs on Slug OS 5.3 but some of the command maybe been to be recompiled to give the correct output
place where you want it.
edit the setting.php file with your username, password and directory where you want the working files to go.
# php he.php
and/or add cron task like this
# crontab -e
and add
* 1 * * * /php /%WHERE YOU PUT IT%/he.php >>/var/log/he 2>>/var/log/he
This will repeat it daily. You may want to increase the frequency if you find it doesn't pass 24 hour on he system.
Outputs to /var/log/he, you may want to turn off debug in he.php if you have a small system, the /var/log/he file doesn't fill up.
Have a look here for some idea of how to make it run just a bit over 24hrs
http://www.tunnelbroker.net/forums/index.php?topic=1763
THANKS
imduffy for this code starting point
http://www.tunnelbroker.net/forums/index.php?topic=975.0
LICENCE/DISCLAIMER
This code is free for you to use at you own risk.I don't promise it will work. I also don't promise it will not break your system.So use at your own risk.
I am not holding any rights over it.
However if you do anything fun with it let me know at [email protected]
There are a few file that are from another project which are GPL3. They are labeled at the top at the top of each file.
LINKS TO HE
This has not been endorsed by HE however they seem to have no objections if you read the forum.
http://www.tunnelbroker.net/forums
I have nothing to do with Hurricane Electric other than I am user their IPv6 tunnelbroker and I am on their certification program.
My username is edmundwatson and you can find me here
http://ipv6.he.net/certification/scoresheet.php?pass_name=edmundwatson