Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KingOfBugbounty/enumrust
/ functions
Functions
376 in github.com/KingOfBugbounty/enumrust
⨍
Functions
376
◇
Types & classes
95
↓ 36 callers
Function
add_simple_secret
Helper macro to add a simple pattern match secret
src/secrets_scanner.rs:967
↓ 26 callers
Method
tool_completed
(&self, tool_name: &str, progress: f32)
src/progress.rs:158
↓ 24 callers
Method
tool_started
(&self, tool_name: &str)
src/progress.rs:132
↓ 17 callers
Method
data_found
(&self, data_type: &str, count: usize, progress: f32)
src/progress.rs:179
↓ 16 callers
Function
extract_context
Extract secrets with surrounding context for better understanding
src/secrets_scanner.rs:706
↓ 15 callers
Function
create_safe_preview
Create a safe preview of a secret (show first 8 and last 4 characters)
src/secrets_scanner.rs:718
↓ 15 callers
Method
is_available
Returns true if Ollama is available for analysis
src/ollama.rs:258
↓ 13 callers
Method
tool_failed
(&self, tool_name: &str, error: &str, progress: f32)
src/progress.rs:167
↓ 11 callers
Method
add_event
Adiciona um evento e salva no arquivo
src/progress.rs:59
↓ 11 callers
Method
call_tool
(&self)
enumrust-mcp/src/tools.rs:24
↓ 9 callers
Function
count_lines
Count lines in a file
src/main.rs:3296
↓ 9 callers
Function
discover_tool_path
Search for a binary in common paths and return full path if found
src/main.rs:3845
↓ 9 callers
Method
query
Core query method - sends prompt to Ollama and parses JSON verdict
src/ollama.rs:271
↓ 8 callers
Function
extract_npm_packages
Extract npm package imports from JavaScript content reference_url: URL da página HTML que referencia o arquivo JS (opcional)
src/package_scanner.rs:50
↓ 7 callers
Function
read_json_file
Read JSON file
src/report_generator.rs:73
↓ 6 callers
Function
send_discord_notification
Send Discord notification
src/discord_notifier.rs:23
↓ 5 callers
Function
check_tool_installed
Check if a tool is installed and get its version (with auto-discovery)
src/main.rs:4127
↓ 5 callers
Function
is_likely_false_positive
Check if a matched string is likely a false positive
src/secrets_scanner.rs:1004
↓ 5 callers
Function
make_absolute_url
Make URL absolute based on base URL
src/js_crawler.rs:186
↓ 5 callers
Function
read_file_lines
Read file lines into Vec<String>
src/report_generator.rs:59
↓ 4 callers
Function
get_tools_list
Get list of all required tools
src/main.rs:3656
↓ 4 callers
Function
parse_json_objects_from_content
Parse JSON outputs in object-per-line or full JSON formats and return JSON objects.
src/main.rs:3307
↓ 4 callers
Function
parse_vulns_array
( vulns_value: Option<&serde_json::Value>, component: &str, )
src/wpscan.rs:504
↓ 4 callers
Function
read_normalized_subdomains
Read and normalize subdomains file into a unique set
src/main.rs:3415
↓ 4 callers
Function
write_subdomains_sorted
Persist subdomains in sorted deterministic order
src/main.rs:3433
↓ 3 callers
Method
analyze_info_disclosure
Analyze if an info disclosure finding contains real sensitive data
src/ollama.rs:556
↓ 3 callers
Function
auto_discover_and_configure_path
Auto-discover all tools and add their directories to PATH Returns a map of tool binary -> full path for discovered tools
src/main.rs:3885
↓ 3 callers
Function
clean_package_name
(name: &str, pkg_type: PackageType)
src/package_scanner.rs:648
↓ 3 callers
Function
extract_context_with_line
Extract context (line content and line number) where package was found
src/package_scanner.rs:670
↓ 3 callers
Function
extract_ffuf_urls
Parse FFUF output in JSON or NDJSON variants and extract discovered URLs.
src/main.rs:3346
↓ 3 callers
Function
extract_storage_targets_from_text
(text: &str, targets: &mut HashSet<StorageTarget>)
src/info_disclosure_scanner.rs:557
↓ 3 callers
Function
extract_wp_base_url
Extract the base WordPress URL from a URL containing wp-admin, wp-content, etc.
src/wpscan.rs:134
↓ 3 callers
Function
get_tools_cache_path
Get path to the tools cache file
src/main.rs:3925
↓ 3 callers
Function
ip_to_u32
Converte string IP para u32 para comparação de ranges
src/ip_validator.rs:112
↓ 3 callers
Function
is_common_false_positive
Check for common false positive patterns
src/package_scanner.rs:1038
↓ 3 callers
Function
is_iacrawl_available
Check if iacrawl binary exists and is executable
src/iacrawl_scanner.rs:107
↓ 3 callers
Function
is_private_ip
(ip: &str)
src/ip_validator.rs:416
↓ 3 callers
Function
normalize_subdomain_candidate
Normalize a candidate hostname and keep only valid entries for target domain
src/main.rs:3368
↓ 3 callers
Function
scan_ports
Scan IPs for open ports using masscan
src/ip_scanner.rs:194
↓ 2 callers
Method
analyze_admin_likelihood
Check if this looks like an admin panel based on heuristics
src/admin_finder.rs:170
↓ 2 callers
Method
analyze_credential_result
Analyze if a credential test really succeeded
src/ollama.rs:519
↓ 2 callers
Method
analyze_secret
Analyze a detected secret for false positive filtering
src/ollama.rs:378
↓ 2 callers
Function
cache_path
Get cache file path (~/.enumrust_update_cache.json)
src/update_checker.rs:27
↓ 2 callers
Function
calculate_shannon_entropy
(s: &str)
src/secret_validators.rs:57
↓ 2 callers
Function
do_update
(latest: &str)
src/update_checker.rs:315
↓ 2 callers
Function
extract_api_endpoints
Extract API endpoints from JavaScript content - ENHANCED VERSION
src/js_crawler.rs:265
↓ 2 callers
Function
extract_host_from_url_like
Best-effort extraction of host from a URL-like line.
src/main.rs:3541
↓ 2 callers
Function
extract_js_from_urlfinder
Extract JavaScript URLs from URLFinder output
src/js_crawler.rs:60
↓ 2 callers
Function
extract_title
Extract page title from HTML
src/admin_finder.rs:577
↓ 2 callers
Function
fetch_latest_version
Fetch latest version from GitHub API
src/update_checker.rs:67
↓ 2 callers
Function
format_discovery
Format a discovery result in a nice side-by-side format
src/ip_scanner.rs:87
↓ 2 callers
Function
fuzz_single_ip
Fuzz a single IP with timeout - returns discovered paths
src/ip_scanner.rs:389
↓ 2 callers
Function
generate_html_report
Generate comprehensive HTML report from scan results
src/report_generator.rs:10
↓ 2 callers
Function
get_optimal_threads
Get optimal thread count based on system resources
src/ip_scanner.rs:61
↓ 2 callers
Function
get_top_1000_ports
Get top 1000 common HTTP ports as a string for scanning
src/ip_scanner.rs:186
↓ 2 callers
Function
is_css_property
Check if name is a common CSS property
src/package_scanner.rs:731
↓ 2 callers
Function
is_css_value
Check if a string looks like a CSS value
src/package_scanner.rs:945
↓ 2 callers
Function
is_hash_or_id
Check if name looks like a hash or ID (long hexadecimal string)
src/package_scanner.rs:789
↓ 2 callers
Function
is_newer
Compare semver: returns true if remote > local
src/update_checker.rs:85
↓ 2 callers
Function
is_programming_keyword
Check if name is a JavaScript/Python reserved keyword or common built-in
src/package_scanner.rs:766
↓ 2 callers
Function
normalize_domain
Normalize and validate domain input to avoid command injection and path traversal.
src/main.rs:718
↓ 2 callers
Function
now_secs
()
src/update_checker.rs:37
↓ 2 callers
Function
parse_iacrawl_results
Parse iacrawl JSON output into summary
src/iacrawl_scanner.rs:226
↓ 2 callers
Method
ping_server
Ping the Ollama server to check if it's running
src/ollama.rs:190
↓ 2 callers
Function
print_tool_status_with_path
Print status of a single tool with discovered path
src/main.rs:4311
↓ 2 callers
Function
process_domain_impl
Internal implementation of domain scanning
src/main.rs:884
↓ 2 callers
Function
read_wordlist
Read a wordlist from file
src/bruteforce.rs:413
↓ 2 callers
Function
scan_for_all_hardcoded_secrets
COMPREHENSIVE scan for ALL types of hardcoded secrets This function checks for 70+ types of secrets and credentials
src/secrets_scanner.rs:1063
↓ 2 callers
Function
score_secret
( secret: &str, secret_type: &str, content: &str, match_position: usize, validated: bool,
src/secret_validators.rs:346
↓ 2 callers
Function
show_update_banner
(latest: &str)
src/update_checker.rs:279
↓ 2 callers
Function
simple_hash
Calculate a simple hash for content comparison
src/admin_finder.rs:227
↓ 2 callers
Function
strip_ansi_codes
Strip ANSI escape codes from a string
src/main.rs:4139
↓ 2 callers
Function
test_gcs_bucket_permissions
Test Google Cloud Storage bucket permissions
src/secrets_scanner.rs:513
↓ 2 callers
Function
test_s3_bucket_permissions
Test AWS S3 bucket permissions (anonymous access only)
src/secrets_scanner.rs:431
↓ 2 callers
Function
try_extract_ips
(text: &str)
src/ip_validator.rs:445
↓ 2 callers
Function
write_cache
Write version to cache
src/update_checker.rs:56
↓ 1 callers
Method
add_vulnerability
(&mut self, name: String, severity: String, target: String)
src/metrics.rs:268
↓ 1 callers
Method
analyze_admin_panel
Analyze if a URL is really an admin panel
src/ollama.rs:446
↓ 1 callers
Function
analyze_context
(content: &str, match_position: usize)
src/secret_validators.rs:192
↓ 1 callers
Method
analyze_directory_finding
Analyze a chameleon directory finding for false positive filtering
src/ollama.rs:590
↓ 1 callers
Function
analyze_js_file
Fetch and analyze a JavaScript file for secrets and endpoints
src/js_crawler.rs:205
↓ 1 callers
Method
analyze_nuclei_finding
Analyze a Nuclei vulnerability finding
src/ollama.rs:411
↓ 1 callers
Method
analyze_package
Analyze if a package dependency is a real finding or false positive
src/ollama.rs:484
↓ 1 callers
Function
analyze_source_map
Analyze source map for secrets and information
src/js_crawler.rs:713
↓ 1 callers
Method
analyze_supabase_finding
Analyze a Supabase key finding and exploitation results
src/ollama.rs:673
↓ 1 callers
Method
analyze_wpscan_finding
Analyze a WPScan vulnerability finding for false positive filtering
src/ollama.rs:633
↓ 1 callers
Method
auto_bootstrap
Complete auto-bootstrap pipeline
src/ollama.rs:81
↓ 1 callers
Function
basic_port_scan
Basic TCP port scan fallback
src/ip_scanner.rs:276
↓ 1 callers
Function
brute_force_common_subdomains
DNS bruteforce of common high-yield subdomain labels.
src/main.rs:3604
↓ 1 callers
Function
bruteforce_logins
Perform bruteforce attack on detected login forms
src/bruteforce.rs:200
↓ 1 callers
Function
check_admin_url_with_hash
Check a single URL for admin panel (returns hash for comparison)
src/admin_finder.rs:491
↓ 1 callers
Function
check_and_update
Check for updates (uses cache, silent on failure)
src/update_checker.rs:201
↓ 1 callers
Function
check_and_update_force
Force check (bypasses cache), used with --check-update
src/update_checker.rs:224
↓ 1 callers
Function
check_docker_available
Check if Docker is installed and the daemon is running
src/wpscan.rs:163
↓ 1 callers
Method
check_model_exists
Check if a specific model is already pulled
src/ollama.rs:202
↓ 1 callers
Function
check_tools_status
Check and display status of all tools (with auto-discovery)
src/main.rs:4206
↓ 1 callers
Function
collect_archive_subdomain_candidates
Collect additional candidates by mining historical URL providers.
src/main.rs:3562
↓ 1 callers
Function
configure_shell_path
Configure PATH in shell configuration files (.bashrc, .zshrc, .profile)
src/main.rs:4497
↓ 1 callers
Function
count_vuln_severities
Count vulnerabilities by severity
src/report_generator.rs:1593
↓ 1 callers
Function
count_wp_vulns
Count total WordPress vulnerabilities from wpscan results JSON
src/report_generator.rs:2365
next →
1–100 of 376, ranked by callers