+// TRAAAP ! ! !
+//#include <cgi.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+
+int main (int argc, char *argv[])
+{
+ //s_cgi *cgi;
+
+ unsigned long randomhex;
+ //cgi=cgiInit();
+
+ sscanf(((getenv("PATH_INFO")!=NULL)?(getenv("PATH_INFO")+1):""),"%lx",&randomhex);
+ srand(randomhex);
+
+ printf("Content-type: text/html\n\n");
+ fputs("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"\"><html lang=\"en\"><head>\n",stdout);
+ printf("<title>Oh no, the trap! • 0x%08lx • Bicycles on the Moon</title>\n",randomhex);
+ fputs("<link rel=\"home\" title=\"1190\" href=\"/\"><link rel=\"stylesheet\" href=\"/css/botm.css\"><link rel=\"icon\" type=\"image/png\" href=\"/img/favicon.png\">\n",stdout);
+ fputs("<meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\"></head><body>\n",stdout);
+ //fputs("<img src=\"/img/botmlogo2.png\" alt=\"1190.bicyclesonthemoon.info\" border=\"0\">\n",stdout);
+ fputs("<H1>Oh no, the trap!</H1>\n",stdout);
+ printf("Your number is: 0x%08lx<br>\n",randomhex);
+ fputs("Please see these too:<ul><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li></ul>\n",stdout);
+ fputs("But don't look at these:<ul><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li><li>\n",stdout);
+ randomhex=rand();
+ printf("<a href=\"/trap/%08lx\">0x%08lx</a>\n",randomhex,randomhex);
+ fputs("</li></ul></body></html>\n",stdout);
+
+
+ return 0;
+}