MCPcopy Create free account

hub / github.com/ddd/gpb / functions

Functions101 in github.com/ddd/gpb

↓ 92 callersMethodclone
(&self)
src/workers/progress.rs:119
↓ 16 callersFunctionget_country_format
Get country format information
src/format/format.rs:58
↓ 15 callersFunctionload_format_data
Load and parse the format.json file
src/format/format.rs:38
↓ 13 callersMethodnext
Get the next phone number in the sequence
src/format/format.rs:292
↓ 11 callersFunctioncreate_client
(subnet: Option<&str>, user_agent: &str)
src/utils/utils.rs:28
↓ 11 callersFunctionforce_bg_update
Force an immediate update of the botguard token
src/botguard/botguard.rs:114
↓ 9 callersFunctionlookup
Performs a lookup to check if a phone number or email exists in Google's system
src/lookup/js.rs:28
↓ 9 callersFunctionset_bg_firstname
Set the requested first name for the next botguard token
src/botguard/botguard.rs:60
↓ 9 callersFunctionset_bg_lastname
Set the requested last name for the next botguard token
src/botguard/botguard.rs:66
↓ 7 callersFunctionextract_infix_from_mask
Extract infix from a masked phone number in international format Returns (infix, infix_length) or None if no infix is found
src/utils/mask.rs:96
↓ 5 callersMethodestimate_total
Estimate total count of numbers that will be generated
src/format/format.rs:377
↓ 5 callersFunctionget_auth_credentials
Get current authentication credentials, refreshing if needed
src/auth/auth.rs:140
↓ 5 callersFunctionget_bg_token
Get the current botguard token
src/botguard/botguard.rs:101
↓ 5 callersFunctionload_mask_data
Load and parse the mask.json file
src/utils/mask.rs:29
↓ 4 callersFunctionappend_csv_hit
Append a hit to the CSV output file
src/csv/parser.rs:87
↓ 4 callersFunctionis_using_static_token
Check if we're using a static botguard token
src/botguard/botguard.rs:91
↓ 3 callersFunctionextract_info_from_masked_phone
Process a masked phone number to extract all information (country, suffix, prefix, infix) This consolidated function replaces the separate extractions
src/utils/mask.rs:183
↓ 3 callersFunctionextract_visible_country_code
Extract visible country code from an international format masked phone number
src/utils/mask.rs:163
↓ 3 callersFunctionget_countries_for_mask
Get countries that match a given mask pattern
src/utils/mask.rs:49
↓ 2 callersFunctioncheck_blacklist
Check if the current subnet is blacklisted for a specific country code
src/utils/blacklist.rs:71
↓ 2 callersFunctioncreate_fully_masked_pattern
Create a fully masked pattern by replacing all digits with dots
src/utils/mask.rs:156
↓ 2 callersFunctionextract_cookie
Extract cookie from response headers
src/auth/auth.rs:46
↓ 2 callersFunctionextract_gxf
Extract GXF token from no-js page (XSRF)
src/auth/auth.rs:61
↓ 2 callersFunctionextract_prefix_from_mask
Extract prefix from a masked phone number when the country code is known Returns (prefix, prefix_length)
src/utils/mask.rs:117
↓ 2 callersFunctionextract_suffix_from_mask
Extract the suffix from a masked phone number Returns (suffix, suffix_length)
src/utils/mask.rs:70
↓ 2 callersFunctionfetch_auth_credentials
Fetch fresh authentication credentials
src/auth/auth.rs:103
↓ 2 callersFunctionfetch_bg_token
Fetch a new botguard token from the API
src/botguard/botguard.rs:162
↓ 2 callersFunctionget_all_countries
Get a list of all countries in the format data
src/format/format.rs:100
↓ 2 callersFunctionlookup
Performs a lookup to check if a phone number or email exists in Google's system
src/lookup/nojs.rs:7
↓ 2 callersFunctionqueue_from_file
Queue work from a file, filtering by prefix, suffix and infix if provided Returns the estimated total number of items to process
src/workers/workers.rs:152
↓ 2 callersFunctionrandomString
Function to generate a random string of specified length
tools/bg_gen/main.go:21
↓ 2 callersMethodset_length
(&self, length: u64)
src/workers/progress.rs:101
↓ 2 callersFunctionset_static_bg_token
Set a static botguard token that won't be refreshed
src/botguard/botguard.rs:72
↓ 2 callersMethodupdate_message
(&self, message: &str)
src/workers/progress.rs:93
↓ 2 callersFunctionverify_hit
Verifies if a hit is real or fake by testing with various name combinations For phone numbers, this helps filter out false positives
src/lookup/verification.rs:8
↓ 2 callersFunctionverify_subnet_for_country
Verify subnet for a specific country
src/utils/blacklist.rs:109
↓ 2 callersFunctionwait_for_valid_token
Wait until we have a valid token that matches the requested names
src/botguard/botguard.rs:199
↓ 1 callersFunctioncalculate_estimate
Modify the calculate_estimate function to include infix parameter
src/utils/estimation.rs:9
↓ 1 callersFunctioncheck_all_countries_blacklist
(subnet: &str)
src/utils/blacklist.rs:29
↓ 1 callersFunctioncheck_ulimit
Check if the system's ulimit for open files is at least 1 million
src/utils/ulimit.rs:5
↓ 1 callersMethodcsv_finish
(&self, total_records: usize, found_records: usize)
src/workers/progress.rs:105
↓ 1 callersFunctioncsv_worker
CSV Worker function that processes phone numbers from the queue
src/csv/worker.rs:37
↓ 1 callersFunctionestimate_file_workload
Estimate workload for quick scan (file) mode
src/utils/estimation.rs:25
↓ 1 callersFunctionestimate_fullscan_workload
Estimate workload for full scan (number generation) mode
src/utils/estimation.rs:138
↓ 1 callersFunctionextract_azt
Extract AZT token from js page (XSRF)
src/auth/auth.rs:75
↓ 1 callersFunctionextract_ist
Extract IST (initial session token) from js page (XSRF)
src/auth/auth.rs:89
↓ 1 callersFunctiongenerateBgToken
generateBgToken generates a bgToken by automating the Google account recovery flow
tools/bg_gen/main.go:48
↓ 1 callersFunctionget_digits_for_country
Get the digits for a country format
src/format/format.rs:88
↓ 1 callersFunctionget_rand_ipv6
(subnet: &str)
src/utils/utils.rs:6
↓ 1 callersFunctionget_test_case_for_country
Get test case for a specific country code from format.json
src/utils/blacklist.rs:13
↓ 1 callersFunctioninitialize_csv_output
Initialize CSV output file with header
src/csv/parser.rs:65
↓ 1 callersMethodis_valid
(&self)
src/auth/auth.rs:33
↓ 1 callersMethodis_valid
Check if token is still considered valid
src/botguard/botguard.rs:32
↓ 1 callersFunctionoutput_writer
Handles writing successful hits to the output file
src/workers/workers.rs:298
↓ 1 callersFunctionparse_csv_input
Parse CSV input file containing masked numbers using csv library
src/csv/parser.rs:27
↓ 1 callersFunctionping_botguard_server
Check if the local botguard token generation server is running
src/botguard/botguard.rs:144
↓ 1 callersFunctionprocess_csv_mode
Process CSV mode with persistent worker pool
src/csv/processor.rs:18
↓ 1 callersFunctionprocess_international_country_code
Helper function to determine country code from international format
src/utils/mask.rs:247
↓ 1 callersFunctionrandomPhoneDigits
Function to generate a random 7-digit number as string
tools/bg_gen/main.go:32
↓ 1 callersFunctionreport_metrics
Metrics reporting task that uses progress bars
src/workers/workers.rs:225
↓ 1 callersMethodreset_position
(&self)
src/workers/progress.rs:97
↓ 1 callersFunctionsample_file
Sample a file to get an estimate of matching lines
src/utils/estimation.rs:81
↓ 1 callersFunctionstart_bg_token_refresh_task
Start a background task that periodically refreshes the botguard token
src/botguard/botguard.rs:232
↓ 1 callersMethodupdate_hits
(&self, hits: u64, latest_hit: Option<&str>)
src/workers/progress.rs:67
↓ 1 callersMethodupdate_progress
(&self, completed: u64, total: Option<u64>)
src/workers/progress.rs:49
↓ 1 callersMethodupdate_stats
(&self, counters: &Arc<Counters>, rps: u64)
src/workers/progress.rs:56
↓ 1 callersFunctionworker
Worker function that processes phone numbers or emails from the queue
src/workers/workers.rs:23
Methodfinish
(&self, hits: u64, latest_hit: Option<&str>)
src/workers/progress.rs:74
FunctionhandleGenerateBgToken
handleGenerateBgToken handles the /api/generate_bgtoken endpoint
tools/bg_gen/main.go:176
FunctionhandlePing
handlePing handles the /api/ping endpoint
tools/bg_gen/main.go:227
Functionmain
()
tools/bg_gen/main.go:240
Functionmain
()
src/main.rs:26
Methodnew
Add a new() method for easier creation
src/models.rs:18
Methodnew
()
src/auth/auth.rs:22
Methodnew
(total_work: u64)
src/workers/progress.rs:16
Methodnew
(token: String, first_name: String, last_name: String, static_token: bool)
src/botguard/botguard.rs:21
Methodnew
( country_format: &CountryFormat, prefix: Option<String>, suffix_filter: Option<String
src/format/format.rs:136
Functiontest_auth_credentials_fetch
()
src/auth/auth.rs:170
Functiontest_create_fully_masked_pattern
()
src/utils/mask.rs:455
Functiontest_extract_infix_from_mask
()
src/utils/mask.rs:375
Functiontest_extract_info_from_masked_phone
()
src/utils/mask.rs:319
Functiontest_extract_prefix
()
src/utils/mask.rs:470
Functiontest_extract_suffix
()
src/utils/mask.rs:433
Functiontest_extract_visible_country_code
()
src/utils/mask.rs:489
Functiontest_extract_visible_country_code_with_area_code
()
src/utils/mask.rs:504
Functiontest_fetch_botguard_token
()
src/botguard/botguard.rs:268
Functiontest_format_loading
()
src/format/format.rs:403
Functiontest_get_countries_for_mask
()
src/utils/mask.rs:419
Functiontest_infix_filtering
()
src/format/format.rs:610
Functiontest_international_format_with_infix
()
src/utils/mask.rs:520
Functiontest_load_mask_data
()
src/utils/mask.rs:369
Functiontest_lookup_invalid_hit
()
src/lookup/js.rs:111
Functiontest_lookup_invalid_hit
()
src/lookup/nojs.rs:122
Functiontest_lookup_valid_hit
()
src/lookup/js.rs:80
Functiontest_lookup_valid_hit
()
src/lookup/nojs.rs:91
Functiontest_number_generation_singapore
()
src/format/format.rs:558
Functiontest_number_generation_with_prefix
()
src/format/format.rs:509
Functiontest_regex_extraction
()
src/auth/auth.rs:198
Functiontest_specific_number_generation_jp
()
src/format/format.rs:479
Functiontest_specific_number_generation_sg
()
src/format/format.rs:449
next →1–100 of 101, ranked by callers