Spaces:
No application file
No application file
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,5 +6,90 @@ colorTo: yellow
|
|
| 6 |
sdk: gradio
|
| 7 |
pinned: false
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
Edit this `README.md` markdown file to author your organization card.
|
|
|
|
| 6 |
sdk: gradio
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
+

|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
license: apache-2.0
|
| 13 |
+
tags:
|
| 14 |
+
- text-generation
|
| 15 |
+
- cybersecurity
|
| 16 |
+
- chatbot
|
| 17 |
+
- transformers
|
| 18 |
+
- edge-device-friendly
|
| 19 |
+
- dex-ai
|
| 20 |
+
datasets:
|
| 21 |
+
- suryanshp1/kali-linux-pentesting-data
|
| 22 |
+
- AlicanKiraz0/All-CVE-Records-Training-Dataset
|
| 23 |
+
language:
|
| 24 |
+
- en
|
| 25 |
+
library_name: transformers
|
| 26 |
+
pipeline_tag: text-generation
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
# ๐ก๏ธ Dex โ Cybersecurity Chatbot AI (Made by `ghosthets`)
|
| 30 |
+
|
| 31 |
+
**Dex** (Digital Exploit eXpert) is an AI model tailored for the cybersecurity and hacking community. It acts as a friendly chatbot that helps with:
|
| 32 |
+
- Cybersecurity topics
|
| 33 |
+
- Capture The Flag (CTF) guidance
|
| 34 |
+
- Basic exploit reasoning
|
| 35 |
+
- Code & payload understanding
|
| 36 |
+
- Custom AI assistant logic
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
## ๐ Model Information
|
| 41 |
+
|
| 42 |
+
| Key Details | Value |
|
| 43 |
+
|-------------------|-------------------------------------|
|
| 44 |
+
| Model Name | `dexcommunity/dex` |
|
| 45 |
+
| Base Architecture | Causal Language Model |
|
| 46 |
+
| Framework | ๐ค Transformers |
|
| 47 |
+
| Optimized For | Edge devices (Raspberry Pi Zero etc)|
|
| 48 |
+
| Author | Gaurav Chouhan aka `ghosthets` |
|
| 49 |
+
| License | Apache-2.0 |
|
| 50 |
+
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
## โ๏ธ Usage (Python Example)
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 57 |
+
import torch
|
| 58 |
+
|
| 59 |
+
tokenizer = AutoTokenizer.from_pretrained("dexcommunity/dex")
|
| 60 |
+
model = AutoModelForCausalLM.from_pretrained("dexcommunity/dex")
|
| 61 |
+
|
| 62 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 63 |
+
model.to(device)
|
| 64 |
+
|
| 65 |
+
def ask_dex(prompt):
|
| 66 |
+
inputs = tokenizer(f"User: {prompt}\nDex:", return_tensors="pt").to(device)
|
| 67 |
+
output = model.generate(inputs.input_ids, max_length=256, pad_token_id=tokenizer.eos_token_id)
|
| 68 |
+
return tokenizer.decode(output[0], skip_special_tokens=True).split("Dex:")[-1].strip()
|
| 69 |
+
|
| 70 |
+
print(ask_dex("Explain SQL Injection in simple words"))
|
| 71 |
+
|
| 72 |
+
โ
Features
|
| 73 |
+
|
| 74 |
+
โ
Lightweight & optimized for edge devices (e.g. Raspberry Pi Zero W/2W)
|
| 75 |
+
โ
Helpful in CTF, Bug Bounty, and Penetration Testing topics
|
| 76 |
+
โ
Trainable on your own dataset via LoRA or PEFT methods
|
| 77 |
+
โ
Fine-tuned on initial cyber security corpora
|
| 78 |
+
|
| 79 |
+
๐ฎ Future Plans
|
| 80 |
+
|
| 81 |
+
๐ง Add OWASP Top 10 understanding
|
| 82 |
+
๐ก Enhance with Exploit DB & CVE logic
|
| 83 |
+
๐ค Hugging Face Space + GUI Gradio interface
|
| 84 |
+
|
| 85 |
+
๐ง Made With ๐ by
|
| 86 |
+
๐จโ๐ป Gaurav Chouhan
|
| 87 |
+
|
| 88 |
+
Aka ghosthets ๐ฎ๐ณ
|
| 89 |
+
GitHub: ghosthets
|
| 90 |
+
LinkedIn: linkedin.com/in/ghosthets
|
| 91 |
+
|
| 92 |
+
๐ License
|
| 93 |
+
Licensed under Apache-2.0. Use freely with attribution.
|
| 94 |
+
|
| 95 |
|
|
|