This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:jessie-slim | |
| RUN groupadd -g 1000 wow && \ | |
| useradd -g 1000 -d /wow -m -g wow wow | |
| RUN apt-get update && \ | |
| apt-get install -y git python3 nano | |
| RUN su - wow -c "git clone https://github.com/morihisa/WOWHoneypot.git /wow/wowhoneypot" | |
| USER wow | |
| WORKDIR /wow/wowhoneypot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| import sys | |
| def read_lines(filename): | |
| with open(filename, encoding='utf-8') as f: | |
| return f.readlines() | |
| def write_lines(filename, lines): |