-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstallation
More file actions
121 lines (88 loc) · 2.15 KB
/
Copy pathInstallation
File metadata and controls
121 lines (88 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
1. Make sure Kali has the required tools
Your script depends on:
Docker
curl
nmap
dig (from dnsutils)
openssl
wkhtmltopdf (optional, for PDF export)
Install everything in one go:
bash
sudo apt update
sudo apt install -y curl nmap dnsutils openssl wkhtmltopdf
Then install Docker:
bash
sudo apt install -y docker.io
sudo systemctl enable --now docker
sudo usermod -aG docker $USER
Important: Log out and back in so your user gets Docker permissions.
📁 2. Save your script
Create a file:
bash
nano lab_pentest_runner.sh
Paste your script into it.
Make it executable:
bash
chmod +x lab_pentest_runner.sh
🧪 3. Test Docker pulls (first‑time only)
Your script uses:
whatweb/whatweb
sullo/nikto
ghcr.io/zaproxy/zaproxy:stable
Pull them once so the first scan is faster:
bash
docker pull whatweb/whatweb
docker pull sullo/nikto
docker pull ghcr.io/zaproxy/zaproxy:stable
🚀 4. Run the script
Just run:
bash
./lab_pentest_runner.sh
You’ll be prompted for:
1) Target URL
Example:
Code
http://127.0.0.1:8080
2) Scan profile
Code
1) Normal
2) Aggressive
3) Parallel mode
Code
A) Full parallel
B) Recon parallel only
C) No parallel
Pick what you want — the script handles everything else automatically.
📂 5. View your results
After the scan finishes, you’ll see something like:
Code
Output folder: lab_audit_127.0.0.1_20250129_153012
HTML report: lab_audit_127.0.0.1_20250129_153012/report.html
Open the report:
bash
xdg-open lab_audit_*/report.html
If wkhtmltopdf is installed, you’ll also get:
Code
lab_audit_*/report.pdf
🧹 6. (Optional) Clean up Docker leftovers
If you want to reclaim space:
bash
docker system prune -f
Install wkhtmltopdf from the official project (recommended)
This is the cleanest and most stable method.
Go to the official downloads page:
https://wkhtmltopdf.org/downloads.html
Download the .deb package for Debian 12 (Bookworm) — Kali is based on this.
Install it:
bash
sudo apt install -y ./wkhtmltox_*_bookworm_amd64.deb
Verify:
bash
wkhtmltopdf --version
This works on all modern Kali builds.
nstall WhatWeb locally on Kali
Kali already includes WhatWeb in its repos:
bash
sudo apt update
sudo apt install -y whatweb
Test it: