Skip to content
/ HECT Public
forked from tactmaster/HECT

This script runs the daily tests for the HE.net certification, and submitted them to HE.net, and checks if they pass.

Notifications You must be signed in to change notification settings

melcon/HECT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 edmundwatson@gmail.com 


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 edmundwatson@gmail.com

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

About

This script runs the daily tests for the HE.net certification, and submitted them to HE.net, and checks if they pass.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published