reverse engineering with python

12
Reverse Engineering with By – Abhay Vaish twitter.com/ abhaythehero

Upload: nu-the-open-security-community

Post on 06-May-2015

1.662 views

Category:

Technology


0 download

DESCRIPTION

Learn reverse engineering with python

TRANSCRIPT

Page 1: Reverse engineering with python

Reverse Engineering with

By –

Abhay Vaishtwitter.com/abhaythehero

Page 2: Reverse engineering with python

Reverse Engineer probably …

Page 3: Reverse engineering with python

Lets brush up some basics !

General-Purpose CPU Registers

The Stack, The Heap

Breakpoints1. Software Breakpoints2. Memory Breakpoint3. Hardware Breakpoints

Page 4: Reverse engineering with python

How can python help ?Portability to various systems and architectures.

Easy to code. I mean damn easy. Tools for RE often need to be made on short deadlines

Quick Networking protocols implementation

Great libraries and online community

Leverage multiple projects and chain them

Automation ninja.

RE related code sometimes (almost every time !) is too painful to understand. Enter python \m/

Page 5: Reverse engineering with python

http://pythonarsenal.erpscan.com/Oh yeah it is an arsenal. No sweat !

Page 6: Reverse engineering with python

Magic of ctypes

Page 7: Reverse engineering with python

calling windows api using ctypes

Page 8: Reverse engineering with python

pydbg

Page 9: Reverse engineering with python

Python and Immunity Debugger

Page 10: Reverse engineering with python

pefile – to parse PE headers and other

sections

From https://code.google.com/p/pefile/wiki/UsageExamples

Page 11: Reverse engineering with python

pydasm – disassembling machine code to assembly Python wrapper for libdasm.

Page 12: Reverse engineering with python

Thank You