Commit e9052dbb authored by bghost's avatar bghost

Add regripper (works from relative path)

parent 655012d4
# Run regripper in a container
FROM ubuntu:cosmic
LABEL maintainer "djds djds@ccs.neu.edu"
ENV DEBIAN_FRONTEND="noninteractive"
WORKDIR /opt
RUN apt-get update && apt-get dist-upgrade -y \
&& apt-get install -y \
git \
libparse-win32registry-perl
RUN git clone "https://github.com/keydet89/RegRipper2.8.git" \
&& cd RegRipper2.8 \
&& ln -s /opt/RegRipper2.8/plugins /etc/perl/plugins \
&& cp /usr/share/perl5/Parse/Win32Registry/WinNT/Key.pm \
/usr/share/perl5/Parse/Win32Registry/WinNT/Key_old.pm \
&& cp Key.pm /usr/share/perl5/Parse/Win32Registry/WinNT/Key.pm
ARG GID
ARG ID
RUN groupadd -g "${GID}" regripper \
&& useradd -m -u "${ID}" -g "${GID}" regripper \
&& mkdir -p /home/regripper/data \
&& chown -R regripper:regripper /home/regripper \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/regripper/data
# Run as non privileged user
USER regripper
ENTRYPOINT ["/usr/bin/perl", "/opt/RegRipper2.8/rip.pl"]
#!/bin/bash
set -euo pipefail
REGISTRY="${REGISTRY:-}"
user='djds'
repo='regripper'
tag=${1:-cosmic}
# set environment vars
GID="${GID:-$(id -g)}"
ID="${ID:-$(id -u)}"
# build the container:
docker build \
--build-arg GID="${GID}" \
--build-arg ID="${ID}" \
-t "${REGISTRY}${user}/${repo}:${tag}" .
if [[ "${PUSH:-}" == "true" ]]; then
docker push "${REGISTRY}${user}/${repo}:${tag}"
fi
# clean up our host environment
unset {GID,ID}
#!/bin/bash
# Use bghost/volitility:cosmic by default
REGISTRY="${REGISTRY:-}"
tag="cosmic"
docker run --rm -it \
-c 4 \
-m 4096M \
-v /etc/localtime:/etc/localtime:ro \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=unix${DISPLAY}" \
-v "$(pwd):/home/regripper/data" \
-v /dev/shm:/dev/shm \
--name regripper \
--entrypoint=/bin/bash \
"${REGISTRY}djds/regripper:${tag}" "${@}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment