BAD code Re: [Wifidog] threads

Alexandre Carmel-Veilleux saruman at northernhacking.org
Wed Apr 14 23:34:43 EDT 2004


On Wed, Apr 14, 2004 at 11:30:37PM -0400, Alexandre Carmel-Veilleux wrote:
------------------------------------------------------------------------
#include <stdio.h>
#include <strings.h>
#include <ctype.h>

int
main(int argc, char **argv)
{
	char	*test = "GET / HTTP/1.0\r\n\r\n";
	char	*p;

	p = test;
	
	while (isalpha(*p))
		p++;
	*p = 0;

	if (strcasecmp(test,"GET") == 0)
		printf("Good\n");
	else
		printf("Bad\n");
}
------------------------------------------------------------------------


-------------- next part --------------
_______________________________________________
Wifidog mailing list
Wifidog at isf.waglo.com
http://isf.waglo.com/mailman/listinfo/wifidog_isf.waglo.com


More information about the Wifidog mailing list