Fix rizinrc file for updated parameter, fix gef installation, add tmux

This commit is contained in:
Chris Humphries 2021-09-14 21:01:08 -04:00
parent f4cd1991be
commit fd8beb3df3
3 changed files with 17 additions and 10 deletions

View File

@ -7,7 +7,7 @@
# Run the docker container -> run.sh
# Get a shell in the container -> shell.sh
FROM ubuntu:20.10
FROM ubuntu:21.04
ENV LC_CTYPE C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
COPY dot_rizinrc /root/.rizinrc
@ -15,11 +15,13 @@ COPY dot_rizinrc /root/.rizinrc
RUN apt-get update && \
apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools \
vim gdb gdb-multiarch python python3 python3-pip python3-dev libssl-dev libffi-dev wget git make procps \
libpcre3-dev libdb-dev libxt-dev libxaw7-dev emacs-nox && \
libpcre3-dev libdb-dev libxt-dev libxaw7-dev emacs-nox tmux && \
pip install capstone requests pwntools r2pipe keystone-engine unicorn ropper meson ninja && \
mkdir /tools && \
cd /tools && git clone https://github.com/JonathanSalwan/ROPgadget && \
cd /tools && git clone https://github.com/niklasb/libc-database && \
cd /tools && git clone https://github.com/hugsy/gef && sh -c "$(curl -fsSL http://gef.blah.cat/sh)" && \
cd /tools && git clone https://github.com/hugsy/gef && \
wget -O /root/.gdbinit-gef.py -q https://github.com/hugsy/gef/raw/master/gef.py && \
echo source /root/.gdbinit-gef.py >> /root/.gdbinit && \
cd /tools && git clone --recurse-submodules https://github.com/rizinorg/rizin && \
cd rizin && meson build && ninja -C build && ninja -C build install

View File

@ -4,10 +4,15 @@ Create a docker container that is purpose-built for binary exploitation using Li
*Still working on getting this fully set up.*
## Packages / Features
- emacs-nox
- rizin with a .radare2rc (rizin compatible?!)
- Ubuntu 21.04
- emacs-nox, vim, jq, stract, ltrace
- rizin with a .rizinrc
- gdb + gef
- libc database
- libc database
- ROPgadget
- pwntools
- ropper
- unicorn
## Usage
Build the docker container: `./build.sh`

View File

@ -1,5 +1,5 @@
e asm.cmtright=true
e asm.pseudo = true
e asm.cmt.right=true
e asm.pseudo=true
eco darkda
e scr.utf8 = true
e dbg.slow = true
e scr.utf8=true
e dbg.slow=true