full-disclosure-uk August 2008 archive
Main Archive Page > Month Archives  > full-disclosure-uk archives
full-disclosure-uk: Re: [Full-disclosure] Alphanumeric Shellcode

Re: [Full-disclosure] Alphanumeric Shellcode Encoding and Detection

From: Avraham Moshe Schneider <Avraham.Schneider_at_nospam>
Date: Tue Aug 05 2008 - 16:00:16 GMT
To: <full-disclosure@lists.grok.org.uk>


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 **




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