Code Monkey home page Code Monkey logo

ropvillage's Introduction

ROP Chain Exploitation

What is ROP Chaining

Return-oriented programming (ROP) is a computer security exploit technique that allows an attacker to execute code in the presence of security defenses such as executable space protection and code signing. Here, it will be used as leverage to bypass exploit mitigation schemes such as NX/DEP. In this technique, an attacker gains control of the call stack to hijack program control flow and then executes carefully chosen machine instruction sequences that are already in the machine's memory. These sequences are known as gadgets and typically exist in a subroutine within the program or the shared library code. Chained together, these gadgets allow an attacker to perform arbitrary operations on a machine even in the face of simple defenses.

Please refer to the wikipedia page for more information: Return-oriented programming.

GDB Commands and Plugins:

Check out this repo if you need gdb plugins: PluginsGDB

Favorite command to run: gdb-gef

Essential Commands

  • gdb program [core]
    • debug program [using coredump core]
  • b [file:]function
    • set breakpoint at function [in file]
  • run [arglist]
    • start your program [with arglist]
  • bt
    • backtrace: display program stack
  • p expr
    • display the value of an expression
  • c
    • continue running your program
  • n
    • next line, stepping over function calls
  • s
    • next line, stepping into function calls
  • disassem [addr]
    • display memory as machine instructions

ropvillage's People

Contributors

tjf952 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.