TECHNICAL SHEET · Blue Team
DOCUMENTATION ONLY
LogsGenerator
Realistic logs to practise grep, sed and awk.
- Language
- Python
- Platform
- Linux / macOS / Windows
- Type
- Challenge generator CLI
- Web demo
- No
Scope on pwn3d.es
This tool has no web interface: it ships as Challenge generator CLI. This page documents its design, flow and usage; there is no runnable demo or hosted binary.
It is not a web demo: the challenge is generated on your machine and the resulting file is random. The target is fragmented, not sitting on a single line.
What it is and what it is for
LogsGenerator is a Python command-line tool that generates realistic system logs to practise log analysis on Linux with Bash. It hides fragments of a target inside the logs that you must reconstruct with text filtering and processing commands.
It is meant to train grep, sed, awk, sort, uniq, cut, tr, head, tail and xargs: each challenge forces you to chain those tools to piece the hidden data back together. It is a lab for log analysis, Bash scripting and CTFs, with no external dependencies.
It has configurable difficulty, automatic solution validation and several target types (FLAG, IP, domain, user, path, event, port or URL), which appear fragmented across the log.
When to use it
Linux and Bash classes
Generate one challenge per student and validate the solution automatically.
Training log analysis (blue team)
Practise hunting for an indicator among thousands of lines with text pipelines.
Preparing a CTF
Create log-analysis challenges with the difficulty and target type you need.
How it works
Generate
It builds a realistic log of the chosen size and difficulty and hides the target in fragments.
Analyse
You reassemble the data by chaining grep, cut, awk and similar tools.
Validate
The tool checks automatically whether the solution is correct.
What changes on pwn3d.es
- The pwn3d.es sheet documents the tool; generation and analysis are done with the repository CLI, not on the site.
Installation and usage
Installation
git clone https://github.com/D1se0/logsGenerator.git
cd logsGenerator
python3 logsGenerator.pyUsage
python3 logsGenerator.py generate -o challenge.log -n 1000 -d hard --target FLAG
# -o salida · -n número de líneas · -d dificultad · --target tipo de datoReal examples
fragment=FLAG{
piece->linux_
token:hacker}
→ FLAG{linux_hacker}Stack and dependencies
- Python 3
- CLI with no external dependencies
- Bash
- The text tools you practise with the logs
git · repository code
Explore the repository
Related tools
Sheet built from the repository README and public code. Figures and commands are limited to what the project documents.