forked from drinkingc0ffee/rayhunter-enhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodebase_comparison.sh
More file actions
executable file
·95 lines (81 loc) · 3.06 KB
/
codebase_comparison.sh
File metadata and controls
executable file
·95 lines (81 loc) · 3.06 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
#!/bin/bash
echo "=== Codebase Comparison Analysis ==="
echo ""
echo "=== Major Structural Differences ==="
echo ""
echo "🔍 Original Rayhunter Structure:"
echo " - check/ (separate binary)"
echo " - daemon/ (main daemon with web interface)"
echo " - lib/ (library code)"
echo " - installer/ (installation)"
echo " - telcom-parser/ (telecom parsing)"
echo " - rootshell/ (root shell)"
echo " - tools/ (utility tools)"
echo ""
echo "🚀 Enhanced Rayhunter Structure:"
echo " - bin/ (unified binary - replaces check/ and daemon/)"
echo " - web/ (separate web interface - moved from daemon/web/)"
echo " - lib/ (enhanced library code)"
echo " - installer/ (enhanced installation)"
echo " - telcom-parser/ (enhanced telecom parsing)"
echo " - rootshell/ (root shell)"
echo " - tools/ (enhanced utility tools)"
echo " - docker-build/ (Docker support)"
echo " - Multiple documentation files (*.md)"
echo " - Multiple build scripts (*.sh)"
echo ""
echo "=== Key Differences ==="
echo ""
echo "📁 Directory Structure Changes:"
echo " ❌ Original: check/ + daemon/"
echo " ✅ Enhanced: bin/ (unified structure)"
echo ""
echo " ❌ Original: daemon/web/"
echo " ✅ Enhanced: web/ (separate web interface)"
echo ""
echo "📄 File Count Comparison:"
ORIGINAL_COUNT=$(find /tmp/rayhunter -type f | wc -l)
ENHANCED_COUNT=$(find . -type f | wc -l)
echo " Original: $ORIGINAL_COUNT files"
echo " Enhanced: $ENHANCED_COUNT files"
echo " Difference: +$((ENHANCED_COUNT - ORIGINAL_COUNT)) files"
echo ""
echo "📊 Size Comparison:"
ORIGINAL_SIZE=$(du -sh /tmp/rayhunter | cut -f1)
ENHANCED_SIZE=$(du -sh . | cut -f1)
echo " Original: $ORIGINAL_SIZE"
echo " Enhanced: $ENHANCED_SIZE"
echo ""
echo "=== Why GitHub Can't Compare ==="
echo ""
echo "🔍 The codebases are fundamentally different:"
echo " 1. Different directory structure (check/daemon/ vs bin/)"
echo " 2. Different file organization (web interface location)"
echo " 3. Massive increase in file count and size"
echo " 4. No common file paths to compare"
echo " 5. Different repository names (rayhunter vs rayhunter-enhanced)"
echo ""
echo "=== What This Means ==="
echo ""
echo "❌ GitHub's diff algorithm can't find common ground"
echo "❌ No shared file paths to compare"
echo "❌ Too many structural changes"
echo "❌ Different repository naming"
echo ""
echo "=== Recommended Solutions ==="
echo ""
echo "1. 🎯 Create a proper fork with same name"
echo "2. 📁 Restructure to match original layout"
echo "3. 🔄 Create incremental PRs for specific features"
echo "4. 📞 Contact maintainers directly"
echo ""
echo "=== File-by-File Comparison ==="
echo ""
echo "Files that exist in both:"
comm -12 <(find /tmp/rayhunter -type f -name "*.rs" | sort) <(find . -type f -name "*.rs" | sort) | head -10
echo ""
echo "Files only in original:"
comm -23 <(find /tmp/rayhunter -type f -name "*.rs" | sort) <(find . -type f -name "*.rs" | sort) | head -10
echo ""
echo "Files only in enhanced:"
comm -13 <(find /tmp/rayhunter -type f -name "*.rs" | sort) <(find . -type f -name "*.rs" | sort) | head -10