Skip to content

Commit 934fe36

Browse files
authored
Update verify-fix.sh
1 parent 4331041 commit 934fe36

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

scripts/verify-fix.sh

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11

2-
echo "✅ Verification Script - 516 Hackers"
3-
echo "===================================="
42

5-
echo "🔧 Testing tool wrappers..."
3+
echo "✅ 516 Hackers - Verification Script"
4+
echo "==================================="
5+
6+
echo "🔧 Testing wrapper scripts..."
7+
8+
# Test each wrapper
9+
tools=(
10+
"tools/reconnaissance/whois-wrapper.sh example.com"
11+
"tools/network/nmap-wrapper.sh scanme.nmap.org quick"
12+
"tools/web/gobuster-wrapper.sh dir http://example.com"
13+
"tools/vulnerability/nikto-wrapper.sh http://example.com"
14+
)
15+
16+
for tool_cmd in "${tools[@]}"; do
17+
tool=$(echo "$tool_cmd" | cut -d' ' -f1)
18+
if [ -f "$tool" ]; then
19+
# Test if wrapper runs without permission errors
20+
timeout 10s $tool_cmd > /dev/null 2>&1
21+
if [ $? -eq 0 ] || [ $? -eq 124 ]; then
22+
echo "$tool - WORKING"
23+
else
24+
echo "$tool - FAILED"
25+
fi
26+
else
27+
echo "⚠️ $tool - NOT FOUND"
28+
fi
29+
done
630

7-
# Test each category
831
echo ""
9-
echo "🔍 RECONNAISSANCE TOOLS:"
10-
./tools/reconnaissance/whois-wrapper.sh example.com > /dev/null 2>&1 && echo "✅ WHOIS wrapper" || echo "❌ WHOIS wrapper"
11-
12-
echo ""
13-
echo "🌐 NETWORK TOOLS:"
14-
./tools/network/nmap-wrapper.sh scanme.nmap.org quick > /dev/null 2>&1 && echo "✅ Nmap wrapper" || echo "❌ Nmap wrapper"
15-
16-
echo ""
17-
echo "🕸️ WEB TOOLS:"
18-
./tools/web/gobuster-wrapper.sh dir http://example.com > /dev/null 2>&1 && echo "✅ Gobuster wrapper" || echo "❌ Gobuster wrapper"
19-
20-
echo ""
21-
echo "🎯 VULNERABILITY TOOLS:"
22-
./tools/vulnerability/nikto-wrapper.sh http://example.com > /dev/null 2>&1 && echo "✅ Nikto wrapper" || echo "❌ Nikto wrapper"
23-
24-
echo ""
25-
echo "📊 Checking logs directory..."
32+
echo "📁 Checking logs directory..."
2633
if [ -d "logs" ]; then
2734
echo "✅ Logs directory exists"
28-
echo " Files in logs: $(ls logs/ | wc -l)"
35+
log_count=$(find logs -name "*.log" 2>/dev/null | wc -l)
36+
echo " Log files: $log_count"
2937
else
3038
echo "❌ Logs directory missing"
3139
fi

0 commit comments

Comments
 (0)