GithubHelp home page GithubHelp logo

cloudxtreme / hect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tactmaster/hect

0.0 1.0 0.0 148 KB

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

Home Page: http://ipv6.he.net/certification/

PHP 100.00%

hect's Introduction

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

hect's People

Contributors

tactmaster avatar yakatz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.