From bdd43a84eb1c1f6600034bf0d138f3d3455df116 Mon Sep 17 00:00:00 2001 From: crossow Date: Wed, 20 Dec 2023 13:36:29 +0100 Subject: [PATCH] added ROPgadget.py --- lecture-demos/ropgadget/ropgadget.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 lecture-demos/ropgadget/ropgadget.sh diff --git a/lecture-demos/ropgadget/ropgadget.sh b/lecture-demos/ropgadget/ropgadget.sh new file mode 100755 index 0000000..a97b6a4 --- /dev/null +++ b/lecture-demos/ropgadget/ropgadget.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +PATH_TO_ROPGADGET=ROPgadget/ROPgadget.py + +# INSTALLATION +# +# Requires to install ROPgadget before: +# https://github.com/JonathanSalwan/ROPgadget +# Alternatively, on Debian systems: +# apt install python3-ropgadget + +# USAGE +# +# libc is typically a great way to start searching for ROP gadgets, as +# it's linked to typical processes. To find the exact libc path on your +# system, you can use ldd; e.g., +# ldd /bin/sh +# reveals which libc version (and file) your shell linked against. + +# The following command will +${PATH_TO_ROPGADGET} --binary /lib/x86_64-linux-gnu/libc.so.6 --all