pyrebox icon indicating copy to clipboard operation
pyrebox copied to clipboard

Docker Hub Automated Build

Open bannsec opened this issue 7 years ago • 6 comments

Hey all,

Super interested to play with this. I see you have a Dockerfile created. Unfortunately, I cannot create an automated build against your github account since I do not own it. Could you guys setup an auto-build?

bannsec avatar Aug 21 '17 16:08 bannsec

Hi all,

I have forked this project to my namespace and trying to build image from Dockerfile. But it fails to git clone qemu source code (in build.sh #81 git://git.qemu.org/qemu.git). I think it should change to other qemu source like https://github.com/qemu/qemu.git.

a110605 avatar Aug 25 '17 08:08 a110605

Currently git://git.qemu.org/qemu.git is the official documented way to clone the latest version of QEMU (https://www.qemu.org/contribute/). Nevertheless, in the future we may consider having our own fork of qemu instead of cloning the original repository and patching it.

xabiugarte avatar Aug 31 '17 18:08 xabiugarte

The last commits (e9ec3739d609e07e76f202001504cb9e50a1fd47, f3a437e9501eb0e1f2ca9d7651632183121f125d) change the way qemu and volatility are installed. Now, they are included inside the pyrebox repository as git subtrees, allowing to keep a cleaner commit history for the qemu and volatility modifications. This change should solve the problem reported by a110605.

xabiugarte avatar Sep 20 '17 14:09 xabiugarte

@bannsec Not official, but I have automated builds over here. https://hub.docker.com/r/thawsystems/pyrebox/builds/

dave@ubuntu:~$ docker run -it --rm thawsystems/pyrebox
root@8a050ec2d6a4:/pyrebox# ./start_x86_64.sh

[*] Loading python component initialization script
[*] Platform: x86_64-softmmu
[*] Starting python module initialization
[*] Reading configuration
[*] Searching for KDBG...
[*] Initializing scripts...
[*]  Loading python module plugins.guest_agent
[plugins.guest_agent] [*]    Initializing guest_agent plugin
[!] Could not initialize agent, offset config file missing!
[*] Finished python module initialization
pyrebox-x86_64: -drive file=,index=0,media=disk,format=qcow2,cache=unsafe: A block device must be specified for "file"

Manouchehri avatar Dec 05 '17 04:12 Manouchehri

Docker build was failing on my machine.

I was able to fix it by adding RUN pip install --upgrade pip before cloning pybox.

FROM ubuntu:16.04
MAINTAINER Jonas Zaddach

ENV PREFIX /home

#Install packages
RUN apt-get update
RUN apt-get install -y build-essential zlib1g-dev pkg-config \
                       libglib2.0-dev binutils-dev libboost-all-dev \
                       autoconf libtool libssl-dev libpixman-1-dev \
                       libpython-dev python-pip \
                       git curl vim

RUN pip install --upgrade pip
#clone pybox
RUN git clone https://github.com/Cisco-Talos/pyrebox pyrebox
WORKDIR pyrebox
RUN pip install -r requirements.txt
RUN ./build.sh
RUN cp /usr/local/lib/python2.7/dist-packages/capstone/lib/libcapstone.so /usr/local/lib
RUN ldconfig

#OPTIONAL: Copy VM in. Left as an example

#RUN mkdir /images
#ADD files/template_pybox_vm_winxp.tar.gz /images
#RUN echo "./start_i386.sh /images/xpsp3.qcow2" > ~/.bash_history

EXPOSE 5900
ENTRYPOINT ["/bin/bash"]

cpuodzius avatar Jul 19 '19 07:07 cpuodzius

Hi @cpuodzius,

could you please submit a pull request with your changes?

Thanks!

xabiugarte avatar Jul 22 '19 06:07 xabiugarte