Difference between revisions of "Binary Exploitation Workshop"

From Chaosdorf Wiki
Jump to navigation Jump to search
(Possible Participants (please add your name!))
(Tags: Mobile edit, Mobile web edit)
m
Line 3: Line 3:
 
|Description=== AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA == Segmentation fault (core dumped)
 
|Description=== AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA == Segmentation fault (core dumped)
 
|Type=Meet-Up
 
|Type=Meet-Up
|Date=2019/08/5
+
|Date=2019-08-5
 
|Start=13:00
 
|Start=13:00
 
|isRelevant=Yes
 
|isRelevant=Yes
Line 20: Line 20:
 
|Description=Binary Exploitation Workshop
 
|Description=Binary Exploitation Workshop
 
|Type=Workshop
 
|Type=Workshop
|Date=2019/08/5
+
|Date=2019-08-5
 
|Start=13:00
 
|Start=13:00
 
|Host=ilias
 
|Host=ilias

Revision as of 15:28, 1 August 2019


Binary Exploitation Workshop
== AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA == Segmentation fault (core dumped)
Art Meet-Up
Datum 2019-08-5
Start 13:00
Binary Exploitation Workshop alpha
Pushfur.jpg
Binary Exploitation Workshop
Ort Chaosdorf
Beteiligt iliasx


Exploitation Workshop
Binary Exploitation Workshop
Art Workshop
Datum 2019-08-5
Start 13:00
Host iliasx

Please read

Option 1:

   - Virtual machine software (VMWare, VirtualBox etc...)
   - Ubuntu 16.04 guest system(with binutils, gdb, python2.7, and the pwntools python module)
   - your C editor of choice

Option 2:

   This is the prefered method.
   - Install VirtualBox
   - Install Vagrant (wrapper for VirtualBox)
   - download this Vagrantfile
   - run vagrant up && vagrant ssh
   That will automatically create the ubuntuVM, install all the packages we need and setup a nice debugging environment.
   Another plus is that you will have exactly the same setup as me so debugging any problems is going to be easier.
   NOTE: The installation can take up to an hour.


This Workshop is for beginners. Beginner as in new to binary exploitation not as in new to low level stuff, c and assembly.

We'll try to briefly cover the usage of:

  • the pwntools python module
  • radare2 dissassembler (mostly for static analysis)
  • gdb (for dynamic analysis)
  • automated ROP-gadget finders

The focus will be:

  • learning about vulnerable C functions
  • learning how simple exploits used to be
  • learning what the GOT is
  • learn what mitigations have been introduced in modern systems
  • using ROP (return oriented programming) to bypass many exploit mitigations

I will bring some binarys that we can attempt exploit. The goal is for every participant to be able to write a stackpivot->malloc->memcpy->mprotect ropchain to execute shellcode.

Prerequisites

As a participant, you should at least know:

   - C
   - Intel x86_64 assembly
   - the x86_64 calling convention
   Bonus points for knowing the layout of a process in memory and where each section gets loaded into ;D


Possible Participants (please add your name!)

Resources

   https://github.com/r0hi7/BinExp
   https://null-byte.wonderhowto.com/how-to/exploit-development-learn-binary-exploitation-with-protostar-0181154/
   https://github.com/Bretley/how2exploit_binary
   https://github.com/tharina/BlackHoodie-2018-Workshop
   https://github.com/chiliz16/ROP-Workshop