exploit research and development megaprimer: eliminating the bad characters in shellcode

3
EXPLOIT RESEARCH ELIMINATING BAD CHARACTERS KERALA CYBER FORCE WWW.KERALACYBERFORCE.IN AJIN ABRAHAM @ajinabraham

Upload: ajin-abraham

Post on 05-Dec-2014

929 views

Category:

Education


2 download

DESCRIPTION

Exploit Research and Development Megaprimer http://opensecurity.in/exploit-research-and-development-megaprimer/ http://www.youtube.com/playlist?list=PLX3EwmWe0cS_5oy86fnqFRfHpxJHjtuyf

TRANSCRIPT

Page 1: Exploit Research and Development Megaprimer: Eliminating the Bad Characters in Shellcode

EXPLOIT RESEARCHELIMINATING BAD CHARACTERS

KERALA CYBER FORCE

WWW.KERALACYBERFORCE.IN

AJIN ABRAHAM@ajinabraham

Page 2: Exploit Research and Development Megaprimer: Eliminating the Bad Characters in Shellcode

@ajinabraham

ELIMINATING BAD CHARACTERS

• Bad characters are those unwanted characters that can break your shellcode.

• We can use !mona bytearray to generate bytes from 0x00 – 0xFF.

• Insert the pattern into the buffer and find out which one is breaking the shellcode

• Mark it as a bad character and re-insert pattern excluding that bad character till all the bad characters are eliminated.

• Create your shellcode excluding the bad characters.

• That’s It.

Page 3: Exploit Research and Development Megaprimer: Eliminating the Bad Characters in Shellcode

@ajinabraham

SOME COMMON BAD CHARACTERS

• 00 – NULL

• 0A – Line feed \n

• 0D –Carriage return \r

• FF – Form Feed \f

Thanks

@ajinabraham