Any newbie could do this, I just had the exe run the .pkm file you upload and the script just parsed the code that is printed out on the screen by the program.
Nice for mass-scanning a whole box, if you just want to know what is valid and what counts as hacked. I want to release the source but it is really messy and depends on a half-used database I got from Veekun.com so it would just confuse the newbies around, I will most likely post it later when I get to clean it up a bit and structure the script a bit more.
You can use the site on my host meanwhile:
http://vlacula.no-ip.com/pokemon/legality_checker/
*Edit*
Released the sources, check this post for download link.