Skip to content

Commit 282b35a

Browse files
feat: add nmap, nuclei, and graphql scanning capabilities to bug bounty engine
1 parent 3bb9bff commit 282b35a

13 files changed

Lines changed: 412 additions & 107 deletions

File tree

cmd/serve.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func runServe(cmd *cobra.Command, args []string) error {
8686
}
8787

8888
// Validate TLS configuration
89-
if (tlsCert != "" || tlsKey != "") {
89+
if tlsCert != "" || tlsKey != "" {
9090
if tlsCert == "" || tlsKey == "" {
9191
return fmt.Errorf("both --tls-cert and --tls-key must be provided for TLS")
9292
}
@@ -355,4 +355,3 @@ func startWorkerService(log *logger.Logger, port int) (*exec.Cmd, error) {
355355

356356
return cmd, nil
357357
}
358-

internal/config/config.go

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import (
55
)
66

77
type Config struct {
8-
Logger LoggerConfig `mapstructure:"logger"`
9-
Database DatabaseConfig `mapstructure:"database"`
10-
Redis RedisConfig `mapstructure:"redis"`
11-
Worker WorkerConfig `mapstructure:"worker"`
12-
Telemetry TelemetryConfig `mapstructure:"telemetry"`
13-
Security SecurityConfig `mapstructure:"security"`
14-
Tools ToolsConfig `mapstructure:"tools"`
15-
Platforms BugBountyPlatforms `mapstructure:"platforms"`
16-
ShodanAPIKey string `mapstructure:"shodan_api_key"`
17-
CensysAPIKey string `mapstructure:"censys_api_key"`
18-
CensysSecret string `mapstructure:"censys_secret"`
8+
Logger LoggerConfig `mapstructure:"logger"`
9+
Database DatabaseConfig `mapstructure:"database"`
10+
Redis RedisConfig `mapstructure:"redis"`
11+
Worker WorkerConfig `mapstructure:"worker"`
12+
Telemetry TelemetryConfig `mapstructure:"telemetry"`
13+
Security SecurityConfig `mapstructure:"security"`
14+
Tools ToolsConfig `mapstructure:"tools"`
15+
Platforms BugBountyPlatforms `mapstructure:"platforms"`
16+
ShodanAPIKey string `mapstructure:"shodan_api_key"`
17+
CensysAPIKey string `mapstructure:"censys_api_key"`
18+
CensysSecret string `mapstructure:"censys_secret"`
1919
}
2020

2121
type LoggerConfig struct {
@@ -331,34 +331,34 @@ type FaviconConfig struct {
331331

332332
// BugBountyPlatforms contains configuration for all bug bounty platform integrations
333333
type BugBountyPlatforms struct {
334-
HackerOne HackerOneConfig `mapstructure:"hackerone"`
335-
Bugcrowd BugcrowdConfig `mapstructure:"bugcrowd"`
336-
AWS AWSBountyConfig `mapstructure:"aws"`
334+
HackerOne HackerOneConfig `mapstructure:"hackerone"`
335+
Bugcrowd BugcrowdConfig `mapstructure:"bugcrowd"`
336+
AWS AWSBountyConfig `mapstructure:"aws"`
337337
Azure AzureBountyConfig `mapstructure:"azure"`
338-
GCP GCPBountyConfig `mapstructure:"gcp"`
338+
GCP GCPBountyConfig `mapstructure:"gcp"`
339339
}
340340

341341
// HackerOneConfig configures HackerOne API integration
342342
type HackerOneConfig struct {
343-
Enabled bool `mapstructure:"enabled"`
344-
APIUsername string `mapstructure:"api_username"`
345-
APIToken string `mapstructure:"api_token"`
346-
BaseURL string `mapstructure:"base_url"`
347-
Timeout time.Duration `mapstructure:"timeout"`
348-
AutoSubmit bool `mapstructure:"auto_submit"`
349-
MinimumSeverity string `mapstructure:"minimum_severity"` // critical, high, medium, low
350-
DraftMode bool `mapstructure:"draft_mode"` // Create as draft instead of submitting
343+
Enabled bool `mapstructure:"enabled"`
344+
APIUsername string `mapstructure:"api_username"`
345+
APIToken string `mapstructure:"api_token"`
346+
BaseURL string `mapstructure:"base_url"`
347+
Timeout time.Duration `mapstructure:"timeout"`
348+
AutoSubmit bool `mapstructure:"auto_submit"`
349+
MinimumSeverity string `mapstructure:"minimum_severity"` // critical, high, medium, low
350+
DraftMode bool `mapstructure:"draft_mode"` // Create as draft instead of submitting
351351
}
352352

353353
// BugcrowdConfig configures Bugcrowd API integration
354354
type BugcrowdConfig struct {
355-
Enabled bool `mapstructure:"enabled"`
356-
APIToken string `mapstructure:"api_token"`
357-
BaseURL string `mapstructure:"base_url"`
358-
Timeout time.Duration `mapstructure:"timeout"`
359-
AutoSubmit bool `mapstructure:"auto_submit"`
360-
MinimumSeverity string `mapstructure:"minimum_severity"` // P1, P2, P3, P4, P5
361-
DraftMode bool `mapstructure:"draft_mode"`
355+
Enabled bool `mapstructure:"enabled"`
356+
APIToken string `mapstructure:"api_token"`
357+
BaseURL string `mapstructure:"base_url"`
358+
Timeout time.Duration `mapstructure:"timeout"`
359+
AutoSubmit bool `mapstructure:"auto_submit"`
360+
MinimumSeverity string `mapstructure:"minimum_severity"` // P1, P2, P3, P4, P5
361+
DraftMode bool `mapstructure:"draft_mode"`
362362
}
363363

364364
// AWSBountyConfig configures AWS Vulnerability Research Program integration (via HackerOne)

0 commit comments

Comments
 (0)