Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM fadawar/docker-pyqt5

RUN apt update
RUN apt install python3 python3-pip -y
RUN apt install libgl1-mesa-glx -y
RUN apt install git -y

COPY . /repator
WORKDIR /repator

RUN pip3 install -r requirements.txt

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y locales \
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& dpkg-reconfigure --frontend=noninteractive locales \
&& update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

RUN chown qtuser: . -R
RUN chmod +x /repator/repator.py
ENTRYPOINT ["/repator/repator.py"]
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Repator is a helper tool designed to automatize the process of report writing, initially for pentesters, but it was developped such that it will be easily customizable for different reporting usage.

## Install
## Normal install

### Repator
git clone https://github.com/lnv42/repator
Expand All @@ -11,15 +11,25 @@ Repator is a helper tool designed to automatize the process of report writing, i
cd repator
pip3 install -r requirements.txt

## Update
### Update
cd repator
git pull
pip3 install -r requirements.txt

## Start
### Start
cd repator
./repator.py
or

cd repator
python3 repator.py

## Docker install

```bash
# To build the repator container
docker build . --tag repator

# To run the repator
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v /PATH/TO/YOUR/PROJECTS:/tmp/projects -e DISPLAY=$DISPLAY -u qtuser repator
```
1 change: 1 addition & 0 deletions repator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# coding=utf-8


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyqt5>=5.7
pyqt5>=5.9.0
-e git+https://github.com/lnv42/tinydb@master#egg=tinydb
-e git+https://github.com/lnv42/python-docx@master#egg=python-docx
fire