Skip to content

Commit 2a08cfa

Browse files
committed
Update README.md
1 parent d3f240c commit 2a08cfa

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ ExploitHawk requires a local copy of **Exploit-DB** to return results.
3232
Copy the following command, paste it into your terminal, and press Enter to verify an Exploit-DB data directory exists on your system:
3333

3434
```bash
35-
ls /usr/share/exploitdb /usr/local/share/exploitdb /var/lib/exploitdb /opt/exploitdb 2>/dev/null || echo "Exploit-DB data directory not found"
36-
```
37-
If the check reports "Exploit-DB data directory not found", clone the official Exploit-DB repo to /opt with:
35+
for p in /usr/share/exploitdb /usr/local/share/exploitdb /var/lib/exploitdb /opt/exploitdb; do [ -d "$p" ] && echo "$p"; done
3836
```
37+
If the command prints nothing, no Exploit-DB data directory was found — clone the official Exploit-DB repo to /opt with:
38+
```bash
3939
sudo git clone https://gitlab.com/exploit-database/exploitdb.git /opt/exploitdb && chmod -R o+rX /opt/exploitdb
4040
```
4141
Or install it with your package manager (examples):
@@ -57,12 +57,9 @@ ExploitHawk will also scan Metasploit module directories (exploits, auxiliary, p
5757
Quick check — Copy the following command, paste it into your terminal, and press Enter:
5858

5959
```bash
60-
ls /usr/share/metasploit-framework/modules \
61-
/usr/local/share/metasploit-framework/modules \
62-
/opt/metasploit-framework/modules \
63-
/var/lib/metasploit-framework/modules 2>/dev/null || echo "No Metasploit module directory found"
60+
for p in /usr/share/metasploit-framework/modules /usr/local/share/metasploit-framework/modules /opt/metasploit-framework/modules /var/lib/metasploit-framework/modules; do [ -d "$p" ] && echo "$p"; done
6461
```
65-
If the check reports "No Metasploit module directory found". you can install Metasploit using your distribution's package manager (examples):
62+
If the command prints nothing, no Metasploit module directory was found. you can install Metasploit using your distribution's package manager (examples):
6663
```bash
6764
# Debian / Ubuntu / Parrot / Kali
6865
sudo apt update

0 commit comments

Comments
 (0)