lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <6C653A611ACD78469EA1DF7954A51ED1042338C6@extlv102.eAladdin.org>
Date: Tue, 5 Aug 2008 19:00:16 +0300
From: "Avraham Moshe Schneider" <Avraham.Schneider@...ddin.com>
To: <full-disclosure@...ts.grok.org.uk>
Subject: Re: Alphanumeric Shellcode Encoding and Detection

I fixed a couple of bugs -

1. The srand() function was called after calls to rand() - causing a fixed string in the decoder which an IDS could signature on
2. Case of ESP register pointing to the head of the decoder was not handled, it is fixed now, but needs to be randomized. Right now, in the case of ESP pointing to the shellcode, the following fixed string would exist at the head of the decoder routine: "TX4640"
This translates to:
_asm
{
	push esp;
	pop eax;
	xor al, 0x36;
	xor al, 0x30;
}

The '6' and the '0' can be any alphanumeric byte where the first is the second+6 or vice versa.

You may add alphanumeric NOP instructions in between and change the diff between the bytes accordingly.
The diff between the two XOR values should be the length of the resulting string.

I used the EAX register, as XOR'ing it with an immediate value is alphanumeric.

Regards,
Avri
**********************************************************************************************

The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to anyone or make copies.
** eSafe scanned this email for viruses, vandals and malicious content **

**********************************************************************************************

Download attachment "alnum_decoder_encoder.c" of type "application/octet-stream" (105690 bytes)

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ