Skip to content

Commit 97342f3

Browse files
Merge pull request #6 from CodeMonkeyCybersecurity/claude/research-findings-documentation-011CUwuEq44fr4BwXtysqUzW
Claude/research findings documentation 011 c uwu eq44fr4 bw xtysq uz w
2 parents 8368c3a + 5af5759 commit 97342f3

File tree

20 files changed

+769
-88
lines changed

20 files changed

+769
-88
lines changed

cmd/atomic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Examples:
129129
Type: "web",
130130
}
131131

132-
fmt.Printf("🧪 Demonstrating impact for target: %s\n", target)
132+
fmt.Printf("Demonstrating impact for target: %s\n", target)
133133
if dryRun {
134134
fmt.Printf(" Running in dry-run mode (no actual execution)\n")
135135
}
@@ -503,7 +503,7 @@ func printDemonstrationsJSON(demonstrations []atomic.Demonstration) {
503503
}
504504

505505
func printDemonstrationsTable(demonstrations []atomic.Demonstration, verbose bool) {
506-
fmt.Printf("🧪 Demonstration Results (%d techniques)\n", len(demonstrations))
506+
fmt.Printf("Demonstration Results (%d techniques)\n", len(demonstrations))
507507
fmt.Printf("═══════════════════════════════════════════\n\n")
508508

509509
for i, demo := range demonstrations {

cmd/auth.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ func printDiscoveryResults(result struct {
511511
fmt.Printf("═══════════════════════════════════════\n\n")
512512

513513
fmt.Printf(" Target: %s\n", result.Target)
514-
fmt.Printf("🕐 Scanned: %s\n\n", result.Timestamp.Format("2006-01-02 15:04:05"))
514+
fmt.Printf("Scanned: %s\n\n", result.Timestamp.Format("2006-01-02 15:04:05"))
515515

516516
fmt.Printf(" Summary:\n")
517517
fmt.Printf(" • Total endpoints: %d\n", result.Summary.TotalEndpoints)
@@ -542,7 +542,7 @@ func printDiscoveryResults(result struct {
542542
fmt.Println()
543543

544544
if len(result.Endpoints) > 0 {
545-
fmt.Printf("🔗 Endpoints Found:\n")
545+
fmt.Printf("Endpoints Found:\n")
546546
for _, endpoint := range result.Endpoints {
547547
fmt.Printf(" • %s [%s] - %s\n", endpoint.URL, endpoint.Method, endpoint.Protocol)
548548
}
@@ -559,11 +559,11 @@ func printDiscoveryResults(result struct {
559559
}
560560

561561
func printTestResults(report *common.AuthReport) {
562-
fmt.Printf("🧪 Authentication Test Results\n")
562+
fmt.Printf("Authentication Test Results\n")
563563
fmt.Printf("═══════════════════════════════════════\n\n")
564564

565565
fmt.Printf(" Target: %s\n", report.Target)
566-
fmt.Printf("⏱️ Duration: %s\n\n", report.EndTime.Sub(report.StartTime))
566+
fmt.Printf("Duration: %s\n\n", report.EndTime.Sub(report.StartTime))
567567

568568
fmt.Printf(" Summary:\n")
569569
fmt.Printf(" • Total vulnerabilities: %d\n", report.Summary.TotalVulnerabilities)
@@ -594,11 +594,11 @@ func printChainResults(result struct {
594594
Summary ChainSummary `json:"summary"`
595595
Timestamp time.Time `json:"timestamp"`
596596
}) {
597-
fmt.Printf("🔗 Attack Chain Analysis Results\n")
597+
fmt.Printf("Attack Chain Analysis Results\n")
598598
fmt.Printf("═══════════════════════════════════════\n\n")
599599

600600
fmt.Printf(" Target: %s\n", result.Target)
601-
fmt.Printf("🕐 Analyzed: %s\n\n", result.Timestamp.Format("2006-01-02 15:04:05"))
601+
fmt.Printf("Analyzed: %s\n\n", result.Timestamp.Format("2006-01-02 15:04:05"))
602602

603603
fmt.Printf(" Summary:\n")
604604
fmt.Printf(" • Total chains: %d\n", result.Summary.TotalChains)
@@ -739,7 +739,7 @@ func printComprehensiveDiscoveryResults(result struct {
739739

740740
fmt.Printf(" Target: %s\n", result.Target)
741741
fmt.Printf("🕐 Scanned: %s\n", result.Timestamp.Format("2006-01-02 15:04:05"))
742-
fmt.Printf("⏱️ Discovery Time: %s\n\n", result.ComprehensiveResults.DiscoveryTime)
742+
fmt.Printf("Discovery Time: %s\n\n", result.ComprehensiveResults.DiscoveryTime)
743743

744744
// Print comprehensive results
745745
fmt.Printf(" Discovery Summary:\n")
@@ -789,7 +789,7 @@ func printComprehensiveDiscoveryResults(result struct {
789789

790790
// Print recommendations
791791
if len(result.ComprehensiveResults.Recommendations) > 0 {
792-
fmt.Printf("💡 Recommendations:\n")
792+
fmt.Printf("Recommendations:\n")
793793
for _, rec := range result.ComprehensiveResults.Recommendations {
794794
fmt.Printf(" • %s\n", rec)
795795
}

cmd/boileau.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func runboileauTool(cmd *cobra.Command, args []string) error {
283283
}
284284
}
285285

286-
fmt.Printf("\n📁 Results saved to: %s\n", outputDir)
286+
fmt.Printf("\nResults saved to: %s\n", outputDir)
287287

288288
return nil
289289
}
@@ -383,7 +383,7 @@ func runboileauBatch(cmd *cobra.Command, args []string) error {
383383
log.Error("Failed to save batch results", "error", err)
384384
}
385385

386-
fmt.Printf("\n📁 Results saved to: %s\n", outputDir)
386+
fmt.Printf("\nResults saved to: %s\n", outputDir)
387387

388388
return nil
389389
}
@@ -435,7 +435,7 @@ func runboileauList(cmd *cobra.Command, args []string) error {
435435
}
436436
}
437437

438-
fmt.Printf("💡 Usage:\n")
438+
fmt.Printf("Usage:\n")
439439
fmt.Printf(" shells boileau run [tool] --target [target]\n")
440440
fmt.Printf(" shells boileau batch --target [target] --tools tool1,tool2\n")
441441

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ var configShowCmd = &cobra.Command{
161161
// Show config file location
162162
homeDir, _ := os.UserHomeDir()
163163
configDir := filepath.Join(homeDir, ".shells")
164-
fmt.Printf("\n📁 Config directory: %s\n", configDir)
164+
fmt.Printf("\nConfig directory: %s\n", configDir)
165165

166166
return nil
167167
},

cmd/db.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ func runDBStatus(cmd *cobra.Command, args []string) error {
128128
fmt.Printf("Pending: %d migrations\n", status["pending_count"])
129129

130130
if status["is_up_to_date"].(bool) {
131-
fmt.Println("\nStatus: Database is up to date")
131+
fmt.Println("\nStatus: Database is up to date")
132132
} else {
133-
fmt.Println("\nStatus: ⚠️ Pending migrations need to be applied")
133+
fmt.Println("\nStatus: Pending migrations need to be applied")
134134
fmt.Println("\nRun 'shells db migrate' to apply pending migrations")
135135
}
136136

@@ -148,7 +148,7 @@ func runDBRollback(cmd *cobra.Command, args []string) error {
148148
"version", version,
149149
)
150150

151-
fmt.Printf("⚠️ WARNING: You are about to rollback migration version %d\n", version)
151+
fmt.Printf("WARNING: You are about to rollback migration version %d\n", version)
152152
fmt.Printf("This will undo changes made by this migration.\n")
153153
fmt.Printf("\nPress Enter to continue or Ctrl+C to cancel...")
154154
fmt.Scanln()
@@ -180,6 +180,6 @@ func runDBRollback(cmd *cobra.Command, args []string) error {
180180
"version", version,
181181
)
182182

183-
fmt.Printf("Migration %d rolled back successfully\n", version)
183+
fmt.Printf("Migration %d rolled back successfully\n", version)
184184
return nil
185185
}

cmd/discover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func outputDiscoveryText(session *discovery.DiscoverySession) error {
289289
}
290290
}
291291

292-
fmt.Printf("\n💡 Next Steps:\n")
292+
fmt.Printf("\nNext Steps:\n")
293293
fmt.Printf(" • Run security tests: shells %s\n", session.Target.Value)
294294
fmt.Printf(" • View specific assets: shells discover %s --verbose\n", session.Target.Value)
295295
if session.HighValueAssets > 0 {

cmd/hunt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func runHuntCommand(cmd *cobra.Command, args []string) error {
167167
if err := saveHuntReport(result, outputFile); err != nil {
168168
log.Errorw("Failed to save report", "error", err, "file", outputFile)
169169
} else {
170-
fmt.Printf("\n✓ Detailed report saved to: %s\n", outputFile)
170+
fmt.Printf("\nDetailed report saved to: %s\n", outputFile)
171171
}
172172
}
173173

@@ -236,11 +236,11 @@ func displayHuntResults(result *orchestrator.BugBountyResult) {
236236
log.Info("═══ Top Findings ═══", "component", "hunt")
237237
displayTopFindings(result.Findings, 5)
238238
} else {
239-
color.New(color.FgGreen).Println("No vulnerabilities found")
239+
color.New(color.FgGreen).Println("No vulnerabilities found")
240240
}
241241

242242
fmt.Println()
243-
fmt.Printf("Scan complete in %s\n", result.Duration.Round(time.Second))
243+
fmt.Printf("Scan complete in %s\n", result.Duration.Round(time.Second))
244244
fmt.Printf(" Scan ID: %s\n", result.ScanID)
245245
}
246246

cmd/logic.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Examples:
9999
fmt.Printf(" Token entropy analysis with %d samples\n", samples)
100100
}
101101
if config.TestHostHeader {
102-
fmt.Printf("🌐 Host header injection testing enabled\n")
102+
fmt.Printf("Host header injection testing enabled\n")
103103
}
104104
fmt.Println()
105105

@@ -278,13 +278,13 @@ Examples:
278278
VerboseOutput: verbose,
279279
}
280280

281-
fmt.Printf("Testing race conditions for: %s\n", target)
282-
fmt.Printf("👥 Concurrent workers: %d\n", workers)
281+
fmt.Printf("Testing race conditions for: %s\n", target)
282+
fmt.Printf("Concurrent workers: %d\n", workers)
283283
if requestDelay > 0 {
284-
fmt.Printf("⏱️ Request delay: %dms\n", requestDelay)
284+
fmt.Printf("Request delay: %dms\n", requestDelay)
285285
}
286286
if testPayments {
287-
fmt.Printf("💳 Payment race testing enabled\n")
287+
fmt.Printf("Payment race testing enabled\n")
288288
}
289289
if testInventory {
290290
fmt.Printf(" Inventory race testing enabled\n")
@@ -501,18 +501,18 @@ Examples:
501501
VerboseOutput: verbose,
502502
}
503503

504-
fmt.Printf("💳 Testing e-commerce payment logic for: %s\n", target)
504+
fmt.Printf("Testing e-commerce payment logic for: %s\n", target)
505505
if testAll || testCart {
506-
fmt.Printf("🛒 Shopping cart testing enabled\n")
506+
fmt.Printf("Shopping cart testing enabled\n")
507507
}
508508
if testAll || testPricing {
509-
fmt.Printf("💰 Pricing logic testing enabled\n")
509+
fmt.Printf("Pricing logic testing enabled\n")
510510
}
511511
if testAll || testCoupons {
512-
fmt.Printf("🎫 Coupon logic testing enabled\n")
512+
fmt.Printf("Coupon logic testing enabled\n")
513513
}
514514
if testAll || testRace {
515-
fmt.Printf("Race condition testing enabled\n")
515+
fmt.Printf("Race condition testing enabled\n")
516516
}
517517
fmt.Println()
518518

@@ -546,7 +546,7 @@ Examples:
546546
}
547547
}
548548

549-
fmt.Printf("\n💳 E-commerce Security Assessment:\n")
549+
fmt.Printf("\nE-commerce Security Assessment:\n")
550550
fmt.Printf(" Total vulnerabilities: %d\n", len(results))
551551
fmt.Printf(" Critical issues: %d\n", criticalCount)
552552
fmt.Printf(" High-risk issues: %d\n", highCount)
@@ -839,7 +839,7 @@ Examples:
839839
if err != nil {
840840
return fmt.Errorf("failed to load findings: %w", err)
841841
}
842-
fmt.Printf("📁 Loaded %d vulnerabilities from %s\n", len(vulnerabilities), findingsFile)
842+
fmt.Printf("Loaded %d vulnerabilities from %s\n", len(vulnerabilities), findingsFile)
843843
} else {
844844
// Run comprehensive testing
845845
fmt.Printf(" Running comprehensive business logic tests for: %s\n", target)
@@ -945,7 +945,7 @@ func printRaceResultsJSON(results []logic.RaceConditionTest) {
945945
}
946946

947947
func printRaceResultsTable(results []logic.RaceConditionTest, verbose bool) {
948-
fmt.Printf("Race Condition Test Results\n")
948+
fmt.Printf("Race Condition Test Results\n")
949949
fmt.Printf("════════════════════════════\n\n")
950950

951951
for i, result := range results {
@@ -1042,7 +1042,7 @@ func printPaymentResultsJSON(results []logic.Vulnerability) {
10421042
}
10431043

10441044
func printPaymentResultsTable(results []logic.Vulnerability, verbose bool) {
1045-
fmt.Printf("💳 E-commerce Payment Logic Test Results\n")
1045+
fmt.Printf("E-commerce Payment Logic Test Results\n")
10461046
fmt.Printf("════════════════════════════════════════\n\n")
10471047

10481048
if len(results) == 0 {
@@ -1105,9 +1105,9 @@ func getSeverityEmoji(severity string) string {
11051105
case logic.SeverityHigh:
11061106
return ""
11071107
case logic.SeverityMedium:
1108-
return ""
1108+
return "!"
11091109
case logic.SeverityLow:
1110-
return "ℹ️"
1110+
return "i"
11111111
default:
11121112
return ""
11131113
}

cmd/results.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ func printSummary(summary *ScanSummary, days int) {
539539
}
540540

541541
if len(summary.RecentScans) > 0 {
542-
fmt.Printf("\\n🕐 Recent Scans:\\n")
542+
fmt.Printf("\\nRecent Scans:\\n")
543543
for _, scan := range summary.RecentScans {
544544
status := ""
545545
if scan.Status == types.ScanStatusFailed {
@@ -928,14 +928,14 @@ func showIdentityChains(sessionID, severityFilter string, verbose bool, output s
928928
fmt.Println()
929929

930930
log.Info(" Chain Detection Features:", "component", "results")
931-
log.Info(" Maps identity asset relationships", "component", "results")
932-
log.Info(" Detects trust relationship vulnerabilities", "component", "results")
933-
log.Info(" Identifies attack path chaining opportunities", "component", "results")
934-
log.Info(" Analyzes cross-protocol vulnerabilities", "component", "results")
935-
log.Info(" Provides proof-of-concept payloads", "component", "results")
931+
log.Info(" - Maps identity asset relationships", "component", "results")
932+
log.Info(" - Detects trust relationship vulnerabilities", "component", "results")
933+
log.Info(" - Identifies attack path chaining opportunities", "component", "results")
934+
log.Info(" - Analyzes cross-protocol vulnerabilities", "component", "results")
935+
log.Info(" - Provides proof-of-concept payloads", "component", "results")
936936
fmt.Println()
937937

938-
log.Info("💡 Next Steps:", "component", "results")
938+
log.Info("Next Steps:", "component", "results")
939939
log.Info(" 1. Run discovery with: shells [target]", "component", "results")
940940
log.Info(" 2. Identity chains will be automatically analyzed", "component", "results")
941941
log.Info(" 3. High-impact chains will be logged in real-time", "component", "results")
@@ -1331,7 +1331,7 @@ func displayScanDiff(scan1, scan2 *types.ScanRequest, newFindings, fixedFindings
13311331
}
13321332

13331333
if len(fixedFindings) > 0 {
1334-
fmt.Printf(" %d vulnerabilities fixed:\n", len(fixedFindings))
1334+
fmt.Printf(" %d vulnerabilities fixed:\n", len(fixedFindings))
13351335
for _, f := range fixedFindings {
13361336
severityColor := getSeverityColor(f.Severity)
13371337
fmt.Printf(" • [%s] %s\n", severityColor(string(f.Severity)), f.Title)
@@ -1382,7 +1382,7 @@ func displayChangesOverTime(target string, startTime, endTime time.Time, scanCou
13821382
}
13831383

13841384
if len(fixedFindings) > 0 {
1385-
fmt.Printf(" %d vulnerabilities fixed:\n", len(fixedFindings))
1385+
fmt.Printf(" %d vulnerabilities fixed:\n", len(fixedFindings))
13861386
for _, f := range fixedFindings {
13871387
severityColor := getSeverityColor(f.Severity)
13881388
fmt.Printf(" • [%s] %s\n", severityColor(string(f.Severity)), f.Title)

cmd/resume.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func resumeFromCheckpoint(cmd *cobra.Command, scanID string) error {
159159
defer cancel()
160160

161161
// Resume the scan with checkpoint state
162-
color.Green("Resuming scan from checkpoint\n")
162+
color.Green("Resuming scan from checkpoint\n")
163163
color.Cyan(" Completed: %v\n", state.CompletedTests)
164164
color.Cyan(" Progress: %.0f%%\n\n", state.Progress)
165165

@@ -316,7 +316,7 @@ func runOrchestratorWithResume(ctx context.Context, state *checkpoint.State, cmd
316316
displayOrchestratorResults(result, config)
317317

318318
fmt.Println()
319-
color.Green("Resumed scan completed successfully\n")
319+
color.Green("Resumed scan completed successfully\n")
320320

321321
return nil
322322
}

0 commit comments

Comments
 (0)