Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
deoktr committed Dec 14, 2023
1 parent dade0a9 commit 1755f8c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.12

ENV PYTHONUNBUFFERED=1

WORKDIR /app

COPY requirements.txt .
RUN pip install --upgrade -r requirements.txt

ADD . .

ENTRYPOINT ["python", "pof.py"]
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ And finally the 'classical' techniques, names, definitions won't have an impact

## Install

There is 2 installation option, 1 inside a virtualenv, 2 inside a Docker container.

### 1. Python

```bash
git clone https://github.com/2O4/pof
cd pof
Expand All @@ -63,6 +67,13 @@ source ./venv/bin/activate

This will install pof inside a virtual env, so you'll need to activate it every times you want to use it.

### 2. Docker

```bash
docker build -t pof .
docker run --rm -it pof --help
```

## Usage

You can either pipe or give a file for input, same for output.
Expand Down Expand Up @@ -731,7 +742,7 @@ For more example of how to use the pof Python API check the [examples/](./exampl
Yara rules can be used to detect malware, they can also be used to find interesting strings in Python source code. To check rules against source files and/or obfuscated files run:

```bash
yara --no-warning yara/python.yar file.py
yara --no-warnings yara/python.yar file.py
```

## Development
Expand Down

0 comments on commit 1755f8c

Please sign in to comment.