MCPcopy Create free account

hub / github.com/CarterPerez-dev/Cybersecurity-Projects / functions

Functions8,109 in github.com/CarterPerez-dev/Cybersecurity-Projects

Methodtest_invalid_json_after_decode
Valid base64 but invalid JSON after XOR raises ValueError
PROJECTS/beginner/c2-beacon/backend/tests/test_protocol.py:117
Methodtest_invalid_jwt_format
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:331
Methodtest_invalid_message_type
Unknown message type raises ValueError
PROJECTS/beginner/c2-beacon/backend/tests/test_protocol.py:137
Methodtest_invalid_mrns_rejected
(self, text: str)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_health.py:42
Methodtest_invalid_network
Verify malformed CIDR raises ValidationError
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:191
Methodtest_invalid_nhs_number
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_financial.py:90
Methodtest_invalid_port_negative
Verify negative port raises ValidationError
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:177
Methodtest_invalid_port_too_high
Verify port > 65535 raises ValidationError
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:170
Methodtest_invalid_prefix_rejected
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:34
Methodtest_invalid_prefix_rejected
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:49
Methodtest_invalid_requests_negative
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:150
Methodtest_invalid_requests_zero
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:145
Methodtest_invalid_serial_0000
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_pii.py:64
Methodtest_invalid_ssns_rejected
(self, text: str)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_pii.py:42
Methodtest_invalid_stripe_key
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:81
Methodtest_invalid_window_negative
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:160
Methodtest_invalid_window_zero
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:155
Methodtest_inverse_transform_recovers_original
Inverse transform recovers the original values within floating-point tolerance.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_scaler.py:79
Methodtest_ipv4_mapped_ipv6
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:83
Methodtest_ipv6_custom_prefix_length
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:76
Methodtest_ipv6_normalization_to_64_prefix
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:68
Methodtest_is_authenticated_false
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:325
Methodtest_is_authenticated_method
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:446
Methodtest_is_authenticated_true
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:316
Methodtest_is_initialized_property
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_limiter.py:443
Methodtest_is_ipv6
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:146
Methodtest_is_private
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:152
Functiontest_jwt_input_is_called_out_as_not_a_hash
JWTs start with `eyJ` and should be called out as not-a-hash Beginners often paste JWTs into a hash identifier because they look hash-li
PROJECTS/foundations/hash-identifier/test_hash_identifier.py:431
Methodtest_jwt_matches
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:56
Methodtest_jwt_without_sub_claim
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_fingerprinting.py:341
Functiontest_kdf_parameters_defaults_are_immutable
Verify KdfParameters instances reject attribute assignment after construction `frozen=True` on the dataclass is what makes this work. Trying
PROJECTS/foundations/password-manager/tests/test_crypto.py:227
Methodtest_key_validation_too_large
Confirms keys above 26 raise ValueError with the expected message
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:111
Methodtest_key_validation_too_small
Confirms keys below -25 raise ValueError with the expected message
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:118
Methodtest_key_wrapping
Confirms key 26 is equivalent to key 0 and produces no shift
PROJECTS/beginner/caesar-cipher/tests/test_cipher.py:90
Methodtest_known_rule_has_remediation
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_compliance.py:66
Methodtest_label_counts_match
Label counts match requested normal and attack counts
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:184
Methodtest_label_counts_match_files
Normal and attack counts match the number of requests in each file
PROJECTS/advanced/ai-threat-detection/backend/tests/test_data_loader.py:341
Methodtest_layer_metadata_populated
Checks that a successful peel populates depth, confidence, and preview fields
PROJECTS/beginner/base64-tool/tests/test_peeler.py:107
Methodtest_leaky_bucket_value
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:69
Methodtest_limit_exceeded
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_algorithms.py:94
Methodtest_limit_exceeded
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_algorithms.py:319
Methodtest_list_beacons_empty
Beacons list returns empty array with no registered beacons
PROJECTS/beginner/c2-beacon/backend/tests/test_app.py:82
Functiontest_list_threats_empty
GET /threats on an empty database returns zero items.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_api.py:47
Functiontest_list_threats_severity_filter
Seed threats with different severities and filter by HIGH.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_api.py:110
Functiontest_list_users_admin_only
Non admin cannot list users (403).
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_users.py:177
Functiontest_list_users_as_admin
Admin can list users with pagination
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_users.py:195
Functiontest_list_users_pagination
Pagination params work correctly
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_users.py:219
Methodtest_list_values
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:248
Methodtest_load_json_round_trip
Loading from JSON produces a scaler with identical transform output.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_scaler.py:116
Methodtest_load_missing_file_returns_defaults
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_config.py:46
Methodtest_load_none_returns_defaults
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_config.py:50
Methodtest_load_partial_config_fills_defaults
( self, tmp_path: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_config.py:72
Methodtest_load_yaml_config
(self, tmp_path: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_config.py:54
Methodtest_loads_all_models
Engine reports is_loaded=True when all three ONNX models are present.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_inference.py:74
Methodtest_localhost
Converts 127.0.0.1 in network byte order
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_processor.py:67
Methodtest_location_has_artifact
( self, result_with_findings: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_sarif.py:129
Methodtest_lockdown_value
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:101
Methodtest_log4shell_returns_correct_count
generate_log4shell_requests returns the requested count
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:67
Methodtest_log_artifact
log_artifact uploads a file so it appears in the run's artifact list.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_experiment.py:71
Methodtest_log_deletion
Detects log file deletion
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:320
Methodtest_log_metrics
log_metrics stores numeric values on the MLflow run.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_experiment.py:62
Methodtest_log_params
log_params writes key-value pairs to the MLflow run as strings.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_experiment.py:52
Methodtest_log_truncation
Detects log file truncation
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:306
Functiontest_login_inactive_user
Inactive user cannot login
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:79
Functiontest_login_invalid_email
Non-existent email returns 401
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:63
Functiontest_login_invalid_password
Wrong password returns 401
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:44
Functiontest_login_success
Valid credentials return access token and set refresh cookie
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:22
Functiontest_logout_all
Logout all revokes all user sessions.
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:197
Functiontest_logout_missing_token_returns_401
Logout without refresh token returns 401, not 422.
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:187
Functiontest_logout_success
Logout revokes refresh token and clears cookie.
PROJECTS/advanced/bug-bounty-platform/backend/tests/integration/test_auth.py:168
Methodtest_long_label_detected
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:45
Methodtest_long_qname_detected
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:69
Methodtest_long_term_key_matches
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:22
Functiontest_lookup_address_not_found_returns_none
AddressNotFoundError from the reader returns None.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:96
Functiontest_lookup_missing_city_name
Responses with None city name are handled gracefully.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:121
Functiontest_lookup_no_reader_returns_none
When no .mmdb file is available, all lookups return None.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:110
Methodtest_lookup_nonexistent_domain
Lookup for a domain that does not exist returns zero records without raising
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:169
Functiontest_lookup_private_ip_returns_none
Private/loopback IPs return None without hitting the reader.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:82
Methodtest_lookup_real_domain
Live A record lookup for example.com returns a result with nonzero query time
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:160
Functiontest_lookup_returns_geo_result
Successful lookup returns a populated GeoResult.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:66
Methodtest_lookup_with_custom_server
Lookup using a custom nameserver records that server on the result
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:181
Methodtest_low
Scores below 0.5 classify as LOW.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_ensemble.py:166
Methodtest_low_threshold
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_compliance.py:29
Methodtest_lowercase_rejected
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_health.py:54
Methodtest_lru_eviction_order
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_storage.py:314
Methodtest_malformed_blocks_skipped
Malformed/non-HTTP lines are skipped gracefully
PROJECTS/advanced/ai-threat-detection/backend/tests/test_data_loader.py:212
Functiontest_malformed_line_dropped
Malformed lines are dropped at the parse stage without crashing.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_pipeline.py:85
Methodtest_mastercard_2series_matches
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_financial.py:107
Methodtest_mastercard_classic_matches
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_financial.py:104
Methodtest_max_depth_respected
Checks that setting max_depth=0 prevents any layers from being peeled
PROJECTS/beginner/base64-tool/tests/test_peeler.py:92
Methodtest_max_keys_eviction
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_storage.py:303
Functiontest_md5_length_returns_md5_first
32 hex chars matches MD5, NTLM, MD4, RIPEMD-128 MD5 is BY FAR the most common 32-hex hash in the wild, so it must be the top candidate.
PROJECTS/foundations/hash-identifier/test_hash_identifier.py:306
Functiontest_me_requires_session
/auth/me returns 401 with no cookie
PROJECTS/advanced/encrypted-p2p-chat/backend/tests/test_session_auth.py:52
Methodtest_medium
Scores in [0.5, 0.7) classify as MEDIUM.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_ensemble.py:158
Methodtest_medium_threshold
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_compliance.py:25
Methodtest_memory_value
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:118
Methodtest_metrics_contain_required_keys
Metrics dict contains f1, pr_auc, accuracy, precision, and recall.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:124
Methodtest_metrics_values_in_valid_range
All metric values fall within [0, 1].
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:145
Methodtest_middleware_allows_requests_under_limit
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:141
Methodtest_middleware_different_endpoints_independent
( self )
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:218
← previousnext →7,301–7,400 of 8,109, ranked by callers