hacking / README.md
max00700000's picture unixtcpip's picture
Duplicate from unixtcpip/hacking
cbbdecf
|
Raw History Blame Contribute Delete
3.37 kB
---
language: en
license: other
task_categories:
- text-generation
- text-classification
tags:
- security
- hacking
- phrack
- infosec
- corpus
size_categories:
- 1K<n<10K
---
# Hacking Text Corpus
A research corpus of historical computer security writings, hacker zines, and hacktivist texts. Built for NLP, text generation, discourse analysis, and security research.
## `all.txt` — all files for training language models
This is the all files for training language models. `all.txt` is a single concatenated file containing **all** of the corpus content (every Phrack article, the Phineas Fisher writeups, `unfz.txt`, and `thc.md`) in one plain-text document, ready to feed directly into a language-model training pipeline.
- **What's in it:** 1,031 source files merged into one ~56 MB / ~1.16M-line text file
- **Format:** each source file is preceded by a header line, e.g. `========== FILE: phrack/issue1/1.txt ==========`, then the file's body, so document boundaries are preserved during training
- **Order:** Phrack issues in numeric order (`issue1` → `issue72`), then `phineas/`, then `thc.md`, then `unfz.txt`
- **Excluded:** this `README.md`, `.gitattributes`, and internal Hugging Face cache/metadata artifacts (not corpus content)
- **Usage:** point your tokenizer/trainer directly at `all.txt` for a single-stream security-text corpus
## ASCII-only normalization
The entire corpus has been normalized to **pure 7-bit ASCII** so it does not pollute a tokenizer's vocabulary with stray Unicode. This applies to every source file and to `all.txt`.
- Non-ASCII characters were **transliterated** to readable ASCII equivalents, not deleted:
- Box-drawing / debugger line art (`─ │ ┐ ├ ╡ ▒ …` from GDB/`gef` output) → `- | + + + : …`
- Arrows (`→ ← ↑ ↓ ➤`) → `-> <- ^ v >`
- Accented Latin (`í ó ç é …`) → base letters (`i o c e …`)
- Cyrillic letters (in proper names) → Latin transliteration
- Smart quotes & dashes (`' ' " " – — …`) → `' ' " " - - ...`
- **Removed entirely:** emoji (e.g. `❤ 👉 👌 😩`), variation/zero-width selectors, BOM, and raw control bytes (`0x00`–`0x1F` except tab/newline/CR)
- Result: **0 non-ASCII or control characters remain** across all 1,031 content files — every byte is `0x20`–`0x7E` or `\t` `\n` `\r`, matching the pure-ASCII style of the original Phrack philes
## Contents
### Phrack Magazine (`phrack/`)
- **72 issues** (1985-2024), **1,026 articles**
- ~55 MB of raw text, ~4.76 million words
- Organized as `phrack/issue{N}/{article}.txt`
- Topics: exploit development, reverse engineering, networking, phreaking, hacker culture, OS internals
### Phineas Fisher (`phineas/`)
- `gamma.txt` - Gamma Group / FinFisher hack writeup
- `ht.txt` - Hacking Team breach writeup
- `cayman.txt` - Cayman National Bank hack writeup
### unfz (`unfz.txt`)
- Hacker zine / writings from unfz
- Underground hacker culture, techniques, and philosophy
### THC (`thc.md`)
- The Hacker's Choice tips, tricks & cheat sheet
- ~2,900 lines covering shells, tunneling, pivoting, network tricks
## Intended Use
Academic research, NLP training, discourse analysis, security education.
## Legal Notice
All texts are publicly available. Copyright remains with original authors. Phrack content sourced from [archives.phrack.org](https://archives.phrack.org).