cybertuz 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cybertuz-1.0.0/LICENSE +21 -0
- cybertuz-1.0.0/MANIFEST.in +6 -0
- cybertuz-1.0.0/PKG-INFO +197 -0
- cybertuz-1.0.0/README.md +140 -0
- cybertuz-1.0.0/cybertuz/__init__.py +8 -0
- cybertuz-1.0.0/cybertuz/cli.py +84 -0
- cybertuz-1.0.0/cybertuz/data/cybertuz.sh +147 -0
- cybertuz-1.0.0/cybertuz/data/install.sh +218 -0
- cybertuz-1.0.0/cybertuz/data/lang.sh +1223 -0
- cybertuz-1.0.0/cybertuz/data/modules/01_teori_dasar.sh +604 -0
- cybertuz-1.0.0/cybertuz/data/modules/02_reconnaissance.sh +629 -0
- cybertuz-1.0.0/cybertuz/data/modules/03_network_scanning.sh +627 -0
- cybertuz-1.0.0/cybertuz/data/modules/04_vulnerability.sh +144 -0
- cybertuz-1.0.0/cybertuz/data/modules/05_web_security.sh +298 -0
- cybertuz-1.0.0/cybertuz/data/modules/06_kriptografi.sh +215 -0
- cybertuz-1.0.0/cybertuz/data/modules/07_password_security.sh +279 -0
- cybertuz-1.0.0/cybertuz/data/modules/08_social_engineering.sh +170 -0
- cybertuz-1.0.0/cybertuz/data/modules/09_network_security.sh +142 -0
- cybertuz-1.0.0/cybertuz/data/modules/10_wireless_security.sh +122 -0
- cybertuz-1.0.0/cybertuz/data/modules/11_forensik.sh +161 -0
- cybertuz-1.0.0/cybertuz/data/modules/12_malware_analysis.sh +169 -0
- cybertuz-1.0.0/cybertuz/data/modules/13_ctf_latihan.sh +263 -0
- cybertuz-1.0.0/cybertuz/data/modules/14_tools_cheatsheet.sh +227 -0
- cybertuz-1.0.0/cybertuz/data/modules/15_laporan.sh +211 -0
- cybertuz-1.0.0/cybertuz/data/modules/16_training_arena.sh +1530 -0
- cybertuz-1.0.0/cybertuz/data/modules/17_misi_tugas.sh +1027 -0
- cybertuz-1.0.0/cybertuz.egg-info/PKG-INFO +197 -0
- cybertuz-1.0.0/cybertuz.egg-info/SOURCES.txt +32 -0
- cybertuz-1.0.0/cybertuz.egg-info/dependency_links.txt +1 -0
- cybertuz-1.0.0/cybertuz.egg-info/entry_points.txt +2 -0
- cybertuz-1.0.0/cybertuz.egg-info/top_level.txt +1 -0
- cybertuz-1.0.0/pyproject.toml +55 -0
- cybertuz-1.0.0/setup.cfg +4 -0
- cybertuz-1.0.0/setup.py +61 -0
cybertuz-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 djunekz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
cybertuz-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cybertuz
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Comprehensive Cyber Security Learning Platform for Termux & Linux
|
|
5
|
+
Home-page: https://github.com/djunekz/cybertuz
|
|
6
|
+
Author: djunekz
|
|
7
|
+
Author-email: djunekz <djunekz@github.com>
|
|
8
|
+
License: MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2025 djunekz
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
|
|
30
|
+
Project-URL: Homepage, https://github.com/djunekz/cybertuz
|
|
31
|
+
Project-URL: Repository, https://github.com/djunekz/cybertuz
|
|
32
|
+
Project-URL: Bug Tracker, https://github.com/djunekz/cybertuz/issues
|
|
33
|
+
Keywords: cybersecurity,hacking,ethical-hacking,penetration-testing,termux,ctf,security,learning,education
|
|
34
|
+
Classifier: Development Status :: 4 - Beta
|
|
35
|
+
Classifier: Environment :: Console
|
|
36
|
+
Classifier: Intended Audience :: Education
|
|
37
|
+
Classifier: Intended Audience :: Information Technology
|
|
38
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
39
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
40
|
+
Classifier: Operating System :: MacOS
|
|
41
|
+
Classifier: Programming Language :: Python :: 3
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
43
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
44
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
45
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
46
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
47
|
+
Classifier: Topic :: Education
|
|
48
|
+
Classifier: Topic :: Security
|
|
49
|
+
Classifier: Topic :: System :: Shells
|
|
50
|
+
Requires-Python: >=3.8
|
|
51
|
+
Description-Content-Type: text/markdown
|
|
52
|
+
License-File: LICENSE
|
|
53
|
+
Dynamic: author
|
|
54
|
+
Dynamic: home-page
|
|
55
|
+
Dynamic: license-file
|
|
56
|
+
Dynamic: requires-python
|
|
57
|
+
|
|
58
|
+
# CyberTuz
|
|
59
|
+
|
|
60
|
+
<div align="center">
|
|
61
|
+
|
|
62
|
+
**Comprehensive Cyber Security Learning Platform**
|
|
63
|
+
|
|
64
|
+
[](LICENSE)
|
|
65
|
+
[](https://github.com/djunekz/cybertuz)
|
|
66
|
+
[](https://pypi.org/project/cybertuz)
|
|
67
|
+
[](https://pypi.org/project/cybertuz)
|
|
68
|
+
[](#language-support)
|
|
69
|
+
[](#modules)
|
|
70
|
+
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## What is CyberTuz?
|
|
76
|
+
|
|
77
|
+
CyberTuz is a free, open-source, terminal-based cyber security learning platform built in Bash. It covers ethical hacking, penetration testing, network security, web application security, cryptography, digital forensics, CTF challenges, and real-world pentest simulations — all from your terminal.
|
|
78
|
+
|
|
79
|
+
> **For educational purposes only.** All content is designed to teach legal and ethical security practices.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Installation
|
|
84
|
+
|
|
85
|
+
### Option 1: pip (recommended)
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
pip install cybertuz
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Then simply run:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
cybertuz
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Option 2: Manual (Termux / Linux)
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Clone repository
|
|
101
|
+
git clone https://github.com/djunekz/cybertuz
|
|
102
|
+
cd cybertuz
|
|
103
|
+
|
|
104
|
+
# Run installer (adds `cybertuz` command to PATH)
|
|
105
|
+
bash install.sh
|
|
106
|
+
|
|
107
|
+
# Then run from anywhere:
|
|
108
|
+
cybertuz
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Option 3: Direct run (no install)
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
git clone https://github.com/djunekz/cybertuz
|
|
115
|
+
cd cybertuz
|
|
116
|
+
bash cybertuz.sh
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Uninstall
|
|
122
|
+
|
|
123
|
+
### pip install:
|
|
124
|
+
```bash
|
|
125
|
+
pip uninstall cybertuz
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Manual install:
|
|
129
|
+
```bash
|
|
130
|
+
bash install.sh --uninstall
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Features
|
|
136
|
+
|
|
137
|
+
- **17 learning modules** — beginner to expert
|
|
138
|
+
- **13 language support** — English, Indonesian, Hindi, Malay, Russian, Chinese, Japanese, Thai, Vietnamese, Arabic, Spanish, Italian, Korean
|
|
139
|
+
- **Training Arena** — leveled hands-on practice (Newbie → Expert)
|
|
140
|
+
- **Mission System** — real-world pentest simulation tasks
|
|
141
|
+
- **CTF Challenges** — capture the flag practice exercises
|
|
142
|
+
- **Live practice** — real commands against safe targets
|
|
143
|
+
- **Progress tracking** — scores and mission completion saved locally
|
|
144
|
+
- **No internet required** for most features
|
|
145
|
+
- **Completely free** — no ads, no subscriptions
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Modules
|
|
150
|
+
|
|
151
|
+
| # | Module |
|
|
152
|
+
|---|--------|
|
|
153
|
+
| 1 | Basic Theory of Cyber Security |
|
|
154
|
+
| 2 | Reconnaissance & Information Gathering |
|
|
155
|
+
| 3 | Network Scanning & Enumeration |
|
|
156
|
+
| 4 | Vulnerability Assessment |
|
|
157
|
+
| 5 | Web Application Security |
|
|
158
|
+
| 6 | Cryptography & Encryption |
|
|
159
|
+
| 7 | Password Security & Cracking |
|
|
160
|
+
| 8 | Social Engineering Awareness |
|
|
161
|
+
| 9 | Network Security & Firewall |
|
|
162
|
+
| 10 | Wireless Security |
|
|
163
|
+
| 11 | Digital Forensics |
|
|
164
|
+
| 12 | Malware Analysis Basics |
|
|
165
|
+
| 13 | CTF & Practice Challenges |
|
|
166
|
+
| 14 | Tools & Complete Cheatsheet |
|
|
167
|
+
| 15 | Reports & Learning Progress |
|
|
168
|
+
| 16 | Training Arena (Newbie → Expert) |
|
|
169
|
+
| 17 | Mission System (Real Pentest Simulation) |
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Language Support
|
|
174
|
+
|
|
175
|
+
English · Indonesian · Hindi · Malay · Russian · Chinese · Japanese · Thai · Vietnamese · Arabic · Spanish · Italian · Korean
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Requirements
|
|
180
|
+
|
|
181
|
+
- Python 3.8+
|
|
182
|
+
- Bash 4.0+
|
|
183
|
+
- Linux, macOS, or Android (Termux)
|
|
184
|
+
- Optional: `nmap`, `curl`, `dnsutils`, `whois`, `python3` for live labs
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Links
|
|
189
|
+
|
|
190
|
+
- GitHub: https://github.com/djunekz/cybertuz
|
|
191
|
+
- Issues: https://github.com/djunekz/cybertuz/issues
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## License
|
|
196
|
+
|
|
197
|
+
MIT © djunekz
|
cybertuz-1.0.0/README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# CyberTuz
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
**Comprehensive Cyber Security Learning Platform**
|
|
6
|
+
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://github.com/djunekz/cybertuz)
|
|
9
|
+
[](https://pypi.org/project/cybertuz)
|
|
10
|
+
[](https://pypi.org/project/cybertuz)
|
|
11
|
+
[](#language-support)
|
|
12
|
+
[](#modules)
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## What is CyberTuz?
|
|
19
|
+
|
|
20
|
+
CyberTuz is a free, open-source, terminal-based cyber security learning platform built in Bash. It covers ethical hacking, penetration testing, network security, web application security, cryptography, digital forensics, CTF challenges, and real-world pentest simulations — all from your terminal.
|
|
21
|
+
|
|
22
|
+
> **For educational purposes only.** All content is designed to teach legal and ethical security practices.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
### Option 1: pip (recommended)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install cybertuz
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Then simply run:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
cybertuz
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Option 2: Manual (Termux / Linux)
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Clone repository
|
|
44
|
+
git clone https://github.com/djunekz/cybertuz
|
|
45
|
+
cd cybertuz
|
|
46
|
+
|
|
47
|
+
# Run installer (adds `cybertuz` command to PATH)
|
|
48
|
+
bash install.sh
|
|
49
|
+
|
|
50
|
+
# Then run from anywhere:
|
|
51
|
+
cybertuz
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Option 3: Direct run (no install)
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
git clone https://github.com/djunekz/cybertuz
|
|
58
|
+
cd cybertuz
|
|
59
|
+
bash cybertuz.sh
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Uninstall
|
|
65
|
+
|
|
66
|
+
### pip install:
|
|
67
|
+
```bash
|
|
68
|
+
pip uninstall cybertuz
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Manual install:
|
|
72
|
+
```bash
|
|
73
|
+
bash install.sh --uninstall
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Features
|
|
79
|
+
|
|
80
|
+
- **17 learning modules** — beginner to expert
|
|
81
|
+
- **13 language support** — English, Indonesian, Hindi, Malay, Russian, Chinese, Japanese, Thai, Vietnamese, Arabic, Spanish, Italian, Korean
|
|
82
|
+
- **Training Arena** — leveled hands-on practice (Newbie → Expert)
|
|
83
|
+
- **Mission System** — real-world pentest simulation tasks
|
|
84
|
+
- **CTF Challenges** — capture the flag practice exercises
|
|
85
|
+
- **Live practice** — real commands against safe targets
|
|
86
|
+
- **Progress tracking** — scores and mission completion saved locally
|
|
87
|
+
- **No internet required** for most features
|
|
88
|
+
- **Completely free** — no ads, no subscriptions
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Modules
|
|
93
|
+
|
|
94
|
+
| # | Module |
|
|
95
|
+
|---|--------|
|
|
96
|
+
| 1 | Basic Theory of Cyber Security |
|
|
97
|
+
| 2 | Reconnaissance & Information Gathering |
|
|
98
|
+
| 3 | Network Scanning & Enumeration |
|
|
99
|
+
| 4 | Vulnerability Assessment |
|
|
100
|
+
| 5 | Web Application Security |
|
|
101
|
+
| 6 | Cryptography & Encryption |
|
|
102
|
+
| 7 | Password Security & Cracking |
|
|
103
|
+
| 8 | Social Engineering Awareness |
|
|
104
|
+
| 9 | Network Security & Firewall |
|
|
105
|
+
| 10 | Wireless Security |
|
|
106
|
+
| 11 | Digital Forensics |
|
|
107
|
+
| 12 | Malware Analysis Basics |
|
|
108
|
+
| 13 | CTF & Practice Challenges |
|
|
109
|
+
| 14 | Tools & Complete Cheatsheet |
|
|
110
|
+
| 15 | Reports & Learning Progress |
|
|
111
|
+
| 16 | Training Arena (Newbie → Expert) |
|
|
112
|
+
| 17 | Mission System (Real Pentest Simulation) |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Language Support
|
|
117
|
+
|
|
118
|
+
English · Indonesian · Hindi · Malay · Russian · Chinese · Japanese · Thai · Vietnamese · Arabic · Spanish · Italian · Korean
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Requirements
|
|
123
|
+
|
|
124
|
+
- Python 3.8+
|
|
125
|
+
- Bash 4.0+
|
|
126
|
+
- Linux, macOS, or Android (Termux)
|
|
127
|
+
- Optional: `nmap`, `curl`, `dnsutils`, `whois`, `python3` for live labs
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Links
|
|
132
|
+
|
|
133
|
+
- GitHub: https://github.com/djunekz/cybertuz
|
|
134
|
+
- Issues: https://github.com/djunekz/cybertuz/issues
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## License
|
|
139
|
+
|
|
140
|
+
MIT © djunekz
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
CyberTuz CLI entry point.
|
|
4
|
+
Extracts bundled shell scripts to ~/.cybertuz and launches cybertuz.sh
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
import stat
|
|
10
|
+
import shutil
|
|
11
|
+
import subprocess
|
|
12
|
+
import importlib.resources
|
|
13
|
+
|
|
14
|
+
INSTALL_DIR = os.path.expanduser("~/.cybertuz")
|
|
15
|
+
DATA_DIR = os.path.join(INSTALL_DIR, "data")
|
|
16
|
+
MAIN_SCRIPT = os.path.join(DATA_DIR, "cybertuz.sh")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _get_data_path():
|
|
20
|
+
"""Return the path to the bundled data directory."""
|
|
21
|
+
# importlib.resources for Python 3.9+
|
|
22
|
+
try:
|
|
23
|
+
from importlib.resources import files
|
|
24
|
+
return str(files("cybertuz").joinpath("data"))
|
|
25
|
+
except Exception:
|
|
26
|
+
# Fallback: locate relative to this file
|
|
27
|
+
return os.path.join(os.path.dirname(__file__), "data")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _make_executable(path):
|
|
31
|
+
"""Set executable bit on a file."""
|
|
32
|
+
st = os.stat(path)
|
|
33
|
+
os.chmod(path, st.st_mode | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def install_files():
|
|
37
|
+
"""Extract bundled shell files to INSTALL_DIR if not already installed or outdated."""
|
|
38
|
+
src = _get_data_path()
|
|
39
|
+
|
|
40
|
+
# Always sync (overwrite) to ensure latest version
|
|
41
|
+
if os.path.exists(DATA_DIR):
|
|
42
|
+
shutil.rmtree(DATA_DIR)
|
|
43
|
+
|
|
44
|
+
shutil.copytree(src, DATA_DIR)
|
|
45
|
+
|
|
46
|
+
# Make all .sh files executable
|
|
47
|
+
for root, _, files in os.walk(DATA_DIR):
|
|
48
|
+
for fname in files:
|
|
49
|
+
if fname.endswith(".sh"):
|
|
50
|
+
_make_executable(os.path.join(root, fname))
|
|
51
|
+
|
|
52
|
+
# Ensure logs/reports dirs exist
|
|
53
|
+
os.makedirs(os.path.join(INSTALL_DIR, "logs"), exist_ok=True)
|
|
54
|
+
os.makedirs(os.path.join(INSTALL_DIR, "reports"), exist_ok=True)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def main():
|
|
58
|
+
"""Main entry point called by `cybertuz` command."""
|
|
59
|
+
# Check bash is available
|
|
60
|
+
if not shutil.which("bash"):
|
|
61
|
+
print("\033[0;31m[✗] bash is not installed or not in PATH.\033[0m")
|
|
62
|
+
print(" Please install bash and try again.")
|
|
63
|
+
sys.exit(1)
|
|
64
|
+
|
|
65
|
+
# Install/update bundled files
|
|
66
|
+
install_files()
|
|
67
|
+
|
|
68
|
+
# Pass any args through to the shell script
|
|
69
|
+
args = sys.argv[1:]
|
|
70
|
+
cmd = ["bash", MAIN_SCRIPT] + args
|
|
71
|
+
|
|
72
|
+
try:
|
|
73
|
+
result = subprocess.run(cmd)
|
|
74
|
+
sys.exit(result.returncode)
|
|
75
|
+
except KeyboardInterrupt:
|
|
76
|
+
print("\n")
|
|
77
|
+
sys.exit(0)
|
|
78
|
+
except FileNotFoundError:
|
|
79
|
+
print(f"\033[0;31m[✗] Could not find: {MAIN_SCRIPT}\033[0m")
|
|
80
|
+
sys.exit(1)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
if __name__ == "__main__":
|
|
84
|
+
main()
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
RED='\033[0;31m'
|
|
4
|
+
GREEN='\033[0;32m'
|
|
5
|
+
YELLOW='\033[1;33m'
|
|
6
|
+
CYAN='\033[0;36m'
|
|
7
|
+
WHITE='\033[1;37m'
|
|
8
|
+
DIM='\033[2m'
|
|
9
|
+
RESET='\033[0m'
|
|
10
|
+
|
|
11
|
+
CYBERTUZ_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
12
|
+
MODULES_DIR="$CYBERTUZ_DIR/modules"
|
|
13
|
+
LOG_DIR="$CYBERTUZ_DIR/logs"
|
|
14
|
+
REPORT_DIR="$CYBERTUZ_DIR/reports"
|
|
15
|
+
|
|
16
|
+
mkdir -p "$LOG_DIR" "$REPORT_DIR"
|
|
17
|
+
|
|
18
|
+
source "$CYBERTUZ_DIR/lang.sh"
|
|
19
|
+
|
|
20
|
+
if ! ct_load_lang; then
|
|
21
|
+
ct_choose_language
|
|
22
|
+
fi
|
|
23
|
+
export CYBERTUZ_LANG
|
|
24
|
+
|
|
25
|
+
log_action() {
|
|
26
|
+
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_DIR/cybertuz.log"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
banner() {
|
|
30
|
+
clear
|
|
31
|
+
echo -e "${RED}"
|
|
32
|
+
echo " ██████╗██╗ ██╗██████╗ ███████╗██████╗ ████████╗██╗ ██╗███████╗"
|
|
33
|
+
echo " ██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔══██╗╚══██╔══╝██║ ██║╚══███╔╝"
|
|
34
|
+
echo " ██║ ╚████╔╝ ██████╔╝█████╗ ██████╔╝ ██║ ██║ ██║ ███╔╝ "
|
|
35
|
+
echo " ██║ ╚██╔╝ ██╔══██╗██╔══╝ ██╔══██╗ ██║ ██║ ██║ ███╔╝ "
|
|
36
|
+
echo " ╚██████╗ ██║ ██████╔╝███████╗██║ ██║ ██║ ╚██████╔╝███████╗"
|
|
37
|
+
echo " ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝"
|
|
38
|
+
echo -e "${RESET}"
|
|
39
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
40
|
+
echo -e "${WHITE} $CT_SUBTITLE${RESET}"
|
|
41
|
+
echo -e "${YELLOW} $CT_FOR_EDU${RESET}"
|
|
42
|
+
echo -e "${DIM} Language: $CT_LANG_NAME${RESET}"
|
|
43
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
44
|
+
echo ""
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
disclaimer() {
|
|
48
|
+
banner
|
|
49
|
+
echo -e "${RED} $CT_DISC_TITLE${RESET}"
|
|
50
|
+
echo ""
|
|
51
|
+
echo -e "${WHITE} $CT_DISC_1${RESET}"
|
|
52
|
+
echo -e "${WHITE} $CT_DISC_2${RESET}"
|
|
53
|
+
echo ""
|
|
54
|
+
echo -e "${YELLOW} $CT_DISC_RULES${RESET}"
|
|
55
|
+
echo -e "${WHITE} [${YELLOW}+${WHITE}]${GREEN} $CT_RULE_1${RESET}"
|
|
56
|
+
echo -e "${WHITE} [${YELLOW}+${WHITE}]${GREEN} $CT_RULE_2${RESET}"
|
|
57
|
+
echo -e "${WHITE} [${YELLOW}+${WHITE}]${GREEN} $CT_RULE_3${RESET}"
|
|
58
|
+
echo -e "${WHITE} [${YELLOW}+${WHITE}]${GREEN} $CT_RULE_4${RESET}"
|
|
59
|
+
echo ""
|
|
60
|
+
echo -e "${RED} $CT_WARN${RESET}"
|
|
61
|
+
echo ""
|
|
62
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
63
|
+
echo -ne "${WHITE} $CT_AGREE_Q${RESET}"
|
|
64
|
+
read -r _agr
|
|
65
|
+
_agr_low=$(echo "$_agr" | tr '[:upper:]' '[:lower:]')
|
|
66
|
+
_ok=0
|
|
67
|
+
for _w in $CT_AGREE_OK; do
|
|
68
|
+
[ "$_agr_low" = "$_w" ] && _ok=1 && break
|
|
69
|
+
done
|
|
70
|
+
if [ "$_ok" -eq 0 ]; then
|
|
71
|
+
echo -e "${RED} $CT_EXIT${RESET}"
|
|
72
|
+
exit 0
|
|
73
|
+
fi
|
|
74
|
+
log_action "$CT_SESSION - $CT_LANG_NAME"
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
main_menu() {
|
|
78
|
+
while true; do
|
|
79
|
+
banner
|
|
80
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
81
|
+
echo -e "${WHITE} $CT_MENU_HDR${RESET}"
|
|
82
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
83
|
+
echo ""
|
|
84
|
+
echo -e "${GREEN} [1] $CT_M1${RESET}"
|
|
85
|
+
echo -e "${GREEN} [2] $CT_M2${RESET}"
|
|
86
|
+
echo -e "${GREEN} [3] $CT_M3${RESET}"
|
|
87
|
+
echo -e "${GREEN} [4] $CT_M4${RESET}"
|
|
88
|
+
echo -e "${GREEN} [5] $CT_M5${RESET}"
|
|
89
|
+
echo -e "${GREEN} [6] $CT_M6${RESET}"
|
|
90
|
+
echo -e "${GREEN} [7] $CT_M7${RESET}"
|
|
91
|
+
echo -e "${GREEN} [8] $CT_M8${RESET}"
|
|
92
|
+
echo -e "${GREEN} [9] $CT_M9${RESET}"
|
|
93
|
+
echo -e "${GREEN} [10] $CT_M10${RESET}"
|
|
94
|
+
echo -e "${GREEN} [11] $CT_M11${RESET}"
|
|
95
|
+
echo -e "${GREEN} [12] $CT_M12${RESET}"
|
|
96
|
+
echo -e "${GREEN} [13] $CT_M13${RESET}"
|
|
97
|
+
echo -e "${GREEN} [14] $CT_M14${RESET}"
|
|
98
|
+
echo -e "${GREEN} [15] $CT_M15${RESET}"
|
|
99
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
100
|
+
echo -e "${YELLOW} [16] $CT_M16${RESET}"
|
|
101
|
+
echo -e "${YELLOW} [17] $CT_M17${RESET}"
|
|
102
|
+
echo -e "${CYAN} =================================================================${RESET}"
|
|
103
|
+
echo -e "${DIM} [L] $CT_LANG_MENU${RESET}"
|
|
104
|
+
echo -e "${RED} [0] $CT_M0${RESET}"
|
|
105
|
+
echo ""
|
|
106
|
+
echo -ne "${WHITE} $CT_MPROMPT${RESET}"
|
|
107
|
+
read -r choice
|
|
108
|
+
case $choice in
|
|
109
|
+
1) bash "$MODULES_DIR/01_teori_dasar.sh" ;;
|
|
110
|
+
2) bash "$MODULES_DIR/02_reconnaissance.sh" ;;
|
|
111
|
+
3) bash "$MODULES_DIR/03_network_scanning.sh" ;;
|
|
112
|
+
4) bash "$MODULES_DIR/04_vulnerability.sh" ;;
|
|
113
|
+
5) bash "$MODULES_DIR/05_web_security.sh" ;;
|
|
114
|
+
6) bash "$MODULES_DIR/06_kriptografi.sh" ;;
|
|
115
|
+
7) bash "$MODULES_DIR/07_password_security.sh" ;;
|
|
116
|
+
8) bash "$MODULES_DIR/08_social_engineering.sh" ;;
|
|
117
|
+
9) bash "$MODULES_DIR/09_network_security.sh" ;;
|
|
118
|
+
10) bash "$MODULES_DIR/10_wireless_security.sh" ;;
|
|
119
|
+
11) bash "$MODULES_DIR/11_forensik.sh" ;;
|
|
120
|
+
12) bash "$MODULES_DIR/12_malware_analysis.sh" ;;
|
|
121
|
+
13) bash "$MODULES_DIR/13_ctf_latihan.sh" ;;
|
|
122
|
+
14) bash "$MODULES_DIR/14_tools_cheatsheet.sh" ;;
|
|
123
|
+
15) bash "$MODULES_DIR/15_laporan.sh" ;;
|
|
124
|
+
16) bash "$MODULES_DIR/16_training_arena.sh" ;;
|
|
125
|
+
17) bash "$MODULES_DIR/17_misi_tugas.sh" ;;
|
|
126
|
+
L|l)
|
|
127
|
+
ct_choose_language
|
|
128
|
+
export CYBERTUZ_LANG
|
|
129
|
+
log_action "Language changed to: $CT_LANG_NAME"
|
|
130
|
+
;;
|
|
131
|
+
0)
|
|
132
|
+
echo ""
|
|
133
|
+
echo -e "${YELLOW} $CT_EXIT${RESET}"
|
|
134
|
+
echo ""
|
|
135
|
+
log_action "User exited"
|
|
136
|
+
exit 0
|
|
137
|
+
;;
|
|
138
|
+
*)
|
|
139
|
+
echo -e "${RED} $CT_INVALID${RESET}"
|
|
140
|
+
sleep 1
|
|
141
|
+
;;
|
|
142
|
+
esac
|
|
143
|
+
done
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
disclaimer
|
|
147
|
+
main_menu
|