MCPcopy Create free account

hub / github.com/crabnebula-dev/tauri-fuzz / functions

Functions203 in github.com/crabnebula-dev/tauri-fuzz

↓ 36 callersFunctionfuzz_command_with_arg
( command_name: &str, command_ptr: Option<usize>, policy: FuzzPolicy, args: Vec<(&str, T)>,
tests/fuzz-mini-app/src/utils.rs:122
↓ 20 callersFunctionstart_crashing_fuzz_process
This is a trick to detect a crash while fuzzing when doing tests. The fuzzer exits the process with an error code rather than panicking. This test wil
crates/tauri-fuzz/src/tauri/test_helpers.rs:7
↓ 15 callersFunctionstart_non_crashing_fuzz_process
This is a trick to detect a fuzzing output when doing tests. We start the fuzzer in a new process because Frida does not support multi-threaded Starti
crates/tauri-fuzz/src/tauri/test_helpers.rs:28
↓ 12 callersFunctionno_policy
()
crates/tauri-fuzz-policies/src/policies.rs:12
↓ 11 callersMethodinsert
Insert a key, value pair that will be converted into the correct json type.
crates/tauri-fuzz/src/tauri/utils.rs:225
↓ 8 callersFunctioncreate_invoke_request
Helper function to create a Tauri `InvokeRequest`. # Arguments `tauri_module` the module the invoked command is part of. Use `None` for a custom Tau
crates/tauri-fuzz/src/tauri/utils.rs:60
↓ 8 callersFunctionno_file_access
()
crates/tauri-fuzz-policies/src/policies/filesystem.rs:16
↓ 6 callersFunctionblock_on_child_process_error_status
Block calls to `wait`, `waitid` and `waitpid` when they get an error status -1 should be returned in case of failure
crates/tauri-fuzz-policies/src/policies/external_process.rs:207
↓ 5 callersFunctionblock_on_entry
()
crates/tauri-fuzz-policies/src/policies.rs:16
↓ 5 callersFunctioninvoke_command_minimal
Invoke a command but does not try to get the command return value
crates/tauri-fuzz/src/tauri/utils.rs:39
↓ 4 callersFunctioncontains_blocked_binaries
Check if 'command' calls one of the blocked binaries NOTE: The check only checks if the command contains one of the blocked binary This is a bit loose
crates/tauri-fuzz-policies/src/policies/external_process.rs:419
↓ 4 callersFunctionfuzz_main
The main fn, usually parsing parameters, and starting the fuzzer
crates/tauri-fuzz/src/fuzzer.rs:58
↓ 3 callersFunctionblock_on_rust_api_error_status
NOTE: This is not working on Windows. Binaries are stripped of their symbols and Frida can't find functions of the std lib This is acceptable since we
crates/tauri-fuzz-policies/src/policies/external_process.rs:136
↓ 3 callersMethoddeactivate
(&mut self)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:51
↓ 3 callersMethodinit
Check that libc and the instrumented tauri app are in the instrumented module binary
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:153
↓ 3 callersMethodis_active
(&self)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:55
↓ 3 callersFunctionread_only_access
()
crates/tauri-fuzz-policies/src/policies/filesystem.rs:41
↓ 2 callersFunctionblock_monitored_binaries_on_entry
( blocked_binaries: &[String], registers: &[usize], )
crates/tauri-fuzz-policies/src/policies/external_process.rs:35
↓ 2 callersFunctioncommand
(options: Options)
crates/tauri-fuzz-cli/src/fuzz.rs:21
↓ 2 callersFunctionfuzz_dir
()
tests/fuzz-mini-app/src/utils.rs:26
↓ 2 callersFunctionget_foo_path
Get the path to `assets/foo.txt`
examples/mini-app/src-tauri/src/tauri_commands/file_access.rs:30
↓ 2 callersFunctioninvoke_command
Invoke a command and get the Tauri command return value
crates/tauri-fuzz/src/tauri/utils.rs:24
↓ 2 callersFunctioninvoke_request_with_input
(command_name: &str, input: T)
tests/fuzz-mini-app/src/utils.rs:112
↓ 2 callersFunctionlpstr_to_string
(windows_str: *const i8)
crates/tauri-fuzz-policies/src/policies/external_process.rs:384
↓ 2 callersFunctionlpwstr_to_string
(windows_str: *const u16)
crates/tauri-fuzz-policies/src/policies/external_process.rs:399
↓ 2 callersFunctionno_access_to_filenames
Block access to file with name [`filename`].
crates/tauri-fuzz-policies/src/policies/filesystem.rs:97
↓ 2 callersFunctionpath_to_foo
()
crates/tauri-fuzz/src/tauri/utils.rs:265
↓ 2 callersMethodpolicy_should_block
(&mut self, invoc_context: &InvocationContext)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:102
↓ 2 callersFunctionsetup_context_with_plugin
Setup a Tauri application context which can call commands from a Tauri plugin. This involves passing the plugin permission and defining the applicatio
crates/tauri-fuzz/src/tauri/utils.rs:174
↓ 2 callersFunctiontauri_dir
()
crates/tauri-fuzz-cli/src/util.rs:30
↓ 2 callersFunctionwrite_only_access
()
crates/tauri-fuzz-policies/src/policies/filesystem.rs:66
↓ 1 callersMethodactivate
(&mut self)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:47
↓ 1 callersFunctionadd_manifest
()
tests/fuzz-mini-app/build.rs:13
↓ 1 callersFunctionadd_manifest
()
crates/tauri-fuzz-policies/build.rs:12
↓ 1 callersFunctionadd_manifest
()
crates/tauri-fuzz/build.rs:12
↓ 1 callersFunctionblock_access_to_filenames
Checks if the filename contained in the first register is part of the blocked files
crates/tauri-fuzz-policies/src/policies/filesystem.rs:85
↓ 1 callersFunctionblock_libc_return_error
wait status was stored in `storage` Get child process exit status from `storage` and check if it's an error
crates/tauri-fuzz-policies/src/policies/external_process.rs:182
↓ 1 callersFunctionblock_on_entry
Policy that blocks creation of child process that executes specified binaries Only blocks child processes that were created through Rust API `std::Com
crates/tauri-fuzz-policies/src/policies/external_process.rs:60
↓ 1 callersFunctionblock_rust_api_return_error
Block calls to external binaries with the Rust api command function when they return an error
crates/tauri-fuzz-policies/src/policies/external_process.rs:88
↓ 1 callersFunctionconnect_to_db
()
examples/mini-app/src-tauri/src/tauri_commands/sql.rs:34
↓ 1 callersFunctioncreate_request
Helper code to create an `InvokeRequest` to send to the Tauri app backend
examples/mini-app/src-tauri/fuzz/fuzz_targets/_template_full_.rs:59
↓ 1 callersFunctioncreate_request
Helper code to create an `InvokeRequest` to send to the Tauri app backend
examples/mini-app/src-tauri/fuzz/fuzz_targets/fuzz_read_foo_full.rs:63
↓ 1 callersFunctioncreate_request
Helper code to create an `InvokeRequest` to send to the Tauri app backend
crates/tauri-fuzz-cli/template/fuzz_targets/_template_full_.rs:63
↓ 1 callersFunctionfind_symbol_in_modules
(policy: &FunctionPolicy)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:272
↓ 1 callersFunctionfolder_has_tauri_config
(folder: &Path)
crates/tauri-fuzz-cli/src/util.rs:17
↓ 1 callersFunctionfrida_to_cs
( capstone: &'a Capstone, frida_insn: &frida_gum_sys::Insn, )
crates/tauri-fuzz/src/runtime/instruction_listener_rt.rs:63
↓ 1 callersFunctionfuzz
( mut frida_harness: H, options: &FuzzerOptions, tauri_cmd_address: usize, policy: FuzzPolicy,
crates/tauri-fuzz/src/fuzzer.rs:84
↓ 1 callersFunctionfuzz_config
()
tests/fuzz-mini-app/src/utils.rs:19
↓ 1 callersFunctionfuzz_harness
( webview: &tauri::WebviewWindow<MockRuntime>, command_name: &str, args: &[(&str, T)], tauri_p
tests/fuzz-mini-app/src/utils.rs:143
↓ 1 callersFunctionfuzz_test
( mut frida_harness: H, options: &FuzzerOptions, tauri_cmd_address: usize, policy: FuzzPolicy,
crates/tauri-fuzz/src/fuzzer.rs:268
↓ 1 callersFunctionget_status_pointer
We store the status pointer that was given as argument. This will be used to get the child process exit status
crates/tauri-fuzz-policies/src/policies/external_process.rs:165
↓ 1 callersFunctiongreet
()
examples/mini-app/src/main.js:15
↓ 1 callersFunctionis_syscall_instruction
(cs_instr: &capstone::Insn)
crates/tauri-fuzz/src/runtime/instruction_listener_rt.rs:33
↓ 1 callersFunctionis_tauri_config_file
(path: &Path)
crates/tauri-fuzz-cli/src/util.rs:23
↓ 1 callersFunctionmock_builder_minimal
Minimal builder for a Tauri application using the `MockRuntime` NOTE: if your Tauri command uses a state this won't work since it does manage any stat
crates/tauri-fuzz/src/tauri/utils.rs:19
↓ 1 callersFunctionnth_argument_as_str
(registers: &[usize], index: usize)
crates/tauri-fuzz-policies/src/policies/utils.rs:8
↓ 1 callersFunctionpath_to_foo
()
tests/fuzz-mini-app/src/utils.rs:31
↓ 1 callersMethodpolicy_context_from_invoc_context
(&self, invoc_context: &InvocationContext)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:89
↓ 1 callersFunctionprettyprint_level
The default string representation for `Level` is all uppercaps which doesn't mix well with the other printed actions.
crates/tauri-fuzz-cli/src/main.rs:84
↓ 1 callersFunctionrender
( handlebars: &mut Handlebars, data: &S, dir: &Dir<'_>, out_dir: P, )
crates/tauri-fuzz-cli/src/init.rs:60
↓ 1 callersFunctionrender_with_generator
( handlebars: &mut Handlebars, data: &S, dir: &Dir<'_>, out_dir: P, out_file_generator: &m
crates/tauri-fuzz-cli/src/init.rs:21
↓ 1 callersFunctionrun
()
examples/mini-app/src-tauri/src/lib.rs:29
↓ 1 callersFunctionrun
()
crates/tauri-fuzz-cli/tests/tauri-app/src-tauri/src/lib.rs:8
↓ 1 callersFunctionsetup_logger
(cli: &Cli)
crates/tauri-fuzz-cli/src/main.rs:61
↓ 1 callersFunctionsetup_mock
Setup a `MockRuntime` with handlers to all the Tauri commands of `mini-app` and access to the plugin `fs:read-files`
tests/fuzz-mini-app/src/utils.rs:41
↓ 1 callersFunctionsetup_mock
Setup the Tauri application mockruntime and an associated "main" webview
examples/mini-app/src-tauri/fuzz/fuzz_targets/_template_full_.rs:39
↓ 1 callersFunctionsetup_mock
Setup the Tauri application mockruntime and an associated "main" webview
examples/mini-app/src-tauri/fuzz/fuzz_targets/fuzz_read_foo_full.rs:41
↓ 1 callersFunctionsetup_mock
Setup the Tauri application mockruntime and an associated "main" webview
crates/tauri-fuzz-cli/template/fuzz_targets/_template_full_.rs:41
↓ 1 callersMethodshould_block
Check the function policy in the specified context and if the invocation should be blocked # Panics This may panic if the `Rule` was not built correc
crates/tauri-fuzz-policies/src/engine.rs:43
↓ 1 callersFunctiontauri1
(v)
examples/mini-app/src/main.js:8
↓ 1 callersFunctionverbosity_level
This maps the occurrence of `--verbose` flags to the correct log level
crates/tauri-fuzz-cli/src/main.rs:75
Functionallow_fs_readFile
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/fs_readFile_tests.rs:20
Functionallow_ls_with_ok_status
Tauri commands should be allowed at exit when exiting with success status
tests/fuzz-mini-app/tests/mini_app_commands_tests/ls_with_rust_command_tests.rs:47
Functionallow_ls_with_rust_with_no_policy
Control sample where our Tauri commands should not be blocked with no_policy
tests/fuzz-mini-app/tests/mini_app_commands_tests/ls_with_rust_command_tests.rs:14
Functionallow_read_foo
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/read_foo_file_tests.rs:19
Functionallowed_by_writeonly_policy
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:30
Functionblock_all_file_access
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:12
Functionblock_by_filename
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:18
Functionblock_by_readonly_policy
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:24
Functionblock_fs_readFile
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/fs_readFile_tests.rs:30
Functionblock_ls_with_error_status
Tauri commands should be blocked at exit when exiting with error status
tests/fuzz-mini-app/tests/mini_app_commands_tests/ls_with_rust_command_tests.rs:39
Functionblock_ls_with_rust_api_at_entry
Tauri commands should be blocked at entry
tests/fuzz-mini-app/tests/mini_app_commands_tests/ls_with_rust_command_tests.rs:22
Functionblock_ls_with_rust_api_error_status
Tauri commands should be blocked at exit when exiting from the Rust API with error status
tests/fuzz-mini-app/tests/mini_app_commands_tests/ls_with_rust_command_tests.rs:31
Functionblock_non_read_only
Check if the flag is READ_ONLY
crates/tauri-fuzz-policies/src/policies/filesystem.rs:35
Functionblock_non_read_only_flag
Checks if the flag is READ_ONLY NOTE: flag values seems to differ from the documentation: https://learn.microsoft.com/en-us/windows/win32/api/winternl
crates/tauri-fuzz-policies/src/policies/filesystem.rs:165
Functionblock_non_write_only
Check if the flag is WRITE_ONLY
crates/tauri-fuzz-policies/src/policies/filesystem.rs:60
Functionblock_non_write_only_flag
Checks if the flag is WRITE_ONLY NOTE: flag values seems to differ from the documentation. Refer to the diary for more details
crates/tauri-fuzz-policies/src/policies/filesystem.rs:186
Functionblock_read_foo
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/read_foo_file_tests.rs:12
Functioncommand
(options: Options)
crates/tauri-fuzz-cli/src/init.rs:89
Functioncrash_fopen
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/fopen_tests.rs:12
Functioncrash_tauri_cmd_1
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/tauri_cmd_1_tests.rs:12
Functioncrash_tauri_cmd_2
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/tauri_cmd_2_tests.rs:12
Functioncreate_invoke_request_with_input_as_string
( command_name: &str, bytes: &[u8], )
tests/fuzz-mini-app/src/utils.rs:95
Functioncreate_invoke_request_with_input_as_u32
(command_name: &str, bytes: &[u8])
tests/fuzz-mini-app/src/utils.rs:103
Functioncs_instr_details
(capstone: &Capstone, cs_instr: &capstone::Insn)
crates/tauri-fuzz/src/runtime/instruction_listener_rt.rs:40
Methoddeinit
(&mut self, _gum: &Gum)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:207
Functiondirect_panic
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/direct_panic_tests.rs:12
Functiondirect_panic
Crash automatically
examples/mini-app/src-tauri/src/tauri_commands/basic.rs:35
Functionexport_details_to_string
(e: &ExportDetails)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:408
Functionexports_in_module
(module_name: &str)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:390
next →1–100 of 203, ranked by callers