Skip to content

Instantly share code, notes, and snippets.

@murx-
murx- / Dockerfile
Created December 4, 2020 19:35
rtaint dockerfile
FROM ubuntu:bionic
RUN apt-get update
RUN apt-get install -y git wget gcc build-essential automake python
RUN mkdir /code
# build, install valgrind
RUN wget -O /code/valgrind.tar.bz2 https://sourceware.org/pub/valgrind/valgrind-3.16.0.tar.bz2
RUN cd /code && \
tar jxf /code/valgrind.tar.bz2 && \
@murx-
murx- / gdb_script.py
Created December 1, 2020 16:45
Use GDB to trace two variables and check if the offset/pointer value has grown beyond the end value
# Trace two variables and check if the offset/pointer value has grown beyond the end
# We assume/know that rl_point > rl_end is true as we use reverse debugging with rr
# We want to find the point were everything was okay.
# enter "interactive" python shell with 'pi' and exit after pasting with 'ctrl+d'
POINT_VAR_NAME = 'rl_point'
END_VAR_NAME = 'rl_end'
class bcolors:
FAIL = '\033[91m'