Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crabnebula-dev/tauri-fuzz
/ functions
Functions
203 in github.com/crabnebula-dev/tauri-fuzz
⨍
Functions
203
◇
Types & classes
15
↓ 36 callers
Function
fuzz_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 callers
Function
start_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 callers
Function
start_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 callers
Function
no_policy
()
crates/tauri-fuzz-policies/src/policies.rs:12
↓ 11 callers
Method
insert
Insert a key, value pair that will be converted into the correct json type.
crates/tauri-fuzz/src/tauri/utils.rs:225
↓ 8 callers
Function
create_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 callers
Function
no_file_access
()
crates/tauri-fuzz-policies/src/policies/filesystem.rs:16
↓ 6 callers
Function
block_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 callers
Function
block_on_entry
()
crates/tauri-fuzz-policies/src/policies.rs:16
↓ 5 callers
Function
invoke_command_minimal
Invoke a command but does not try to get the command return value
crates/tauri-fuzz/src/tauri/utils.rs:39
↓ 4 callers
Function
contains_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 callers
Function
fuzz_main
The main fn, usually parsing parameters, and starting the fuzzer
crates/tauri-fuzz/src/fuzzer.rs:58
↓ 3 callers
Function
block_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 callers
Method
deactivate
(&mut self)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:51
↓ 3 callers
Method
init
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 callers
Method
is_active
(&self)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:55
↓ 3 callers
Function
read_only_access
()
crates/tauri-fuzz-policies/src/policies/filesystem.rs:41
↓ 2 callers
Function
block_monitored_binaries_on_entry
( blocked_binaries: &[String], registers: &[usize], )
crates/tauri-fuzz-policies/src/policies/external_process.rs:35
↓ 2 callers
Function
command
(options: Options)
crates/tauri-fuzz-cli/src/fuzz.rs:21
↓ 2 callers
Function
fuzz_dir
()
tests/fuzz-mini-app/src/utils.rs:26
↓ 2 callers
Function
get_foo_path
Get the path to `assets/foo.txt`
examples/mini-app/src-tauri/src/tauri_commands/file_access.rs:30
↓ 2 callers
Function
invoke_command
Invoke a command and get the Tauri command return value
crates/tauri-fuzz/src/tauri/utils.rs:24
↓ 2 callers
Function
invoke_request_with_input
(command_name: &str, input: T)
tests/fuzz-mini-app/src/utils.rs:112
↓ 2 callers
Function
lpstr_to_string
(windows_str: *const i8)
crates/tauri-fuzz-policies/src/policies/external_process.rs:384
↓ 2 callers
Function
lpwstr_to_string
(windows_str: *const u16)
crates/tauri-fuzz-policies/src/policies/external_process.rs:399
↓ 2 callers
Function
no_access_to_filenames
Block access to file with name [`filename`].
crates/tauri-fuzz-policies/src/policies/filesystem.rs:97
↓ 2 callers
Function
path_to_foo
()
crates/tauri-fuzz/src/tauri/utils.rs:265
↓ 2 callers
Method
policy_should_block
(&mut self, invoc_context: &InvocationContext)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:102
↓ 2 callers
Function
setup_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 callers
Function
tauri_dir
()
crates/tauri-fuzz-cli/src/util.rs:30
↓ 2 callers
Function
write_only_access
()
crates/tauri-fuzz-policies/src/policies/filesystem.rs:66
↓ 1 callers
Method
activate
(&mut self)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:47
↓ 1 callers
Function
add_manifest
()
tests/fuzz-mini-app/build.rs:13
↓ 1 callers
Function
add_manifest
()
crates/tauri-fuzz-policies/build.rs:12
↓ 1 callers
Function
add_manifest
()
crates/tauri-fuzz/build.rs:12
↓ 1 callers
Function
block_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 callers
Function
block_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 callers
Function
block_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 callers
Function
block_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 callers
Function
connect_to_db
()
examples/mini-app/src-tauri/src/tauri_commands/sql.rs:34
↓ 1 callers
Function
create_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 callers
Function
create_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 callers
Function
create_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 callers
Function
find_symbol_in_modules
(policy: &FunctionPolicy)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:272
↓ 1 callers
Function
folder_has_tauri_config
(folder: &Path)
crates/tauri-fuzz-cli/src/util.rs:17
↓ 1 callers
Function
frida_to_cs
( capstone: &'a Capstone, frida_insn: &frida_gum_sys::Insn, )
crates/tauri-fuzz/src/runtime/instruction_listener_rt.rs:63
↓ 1 callers
Function
fuzz
( mut frida_harness: H, options: &FuzzerOptions, tauri_cmd_address: usize, policy: FuzzPolicy,
crates/tauri-fuzz/src/fuzzer.rs:84
↓ 1 callers
Function
fuzz_config
()
tests/fuzz-mini-app/src/utils.rs:19
↓ 1 callers
Function
fuzz_harness
( webview: &tauri::WebviewWindow<MockRuntime>, command_name: &str, args: &[(&str, T)], tauri_p
tests/fuzz-mini-app/src/utils.rs:143
↓ 1 callers
Function
fuzz_test
( mut frida_harness: H, options: &FuzzerOptions, tauri_cmd_address: usize, policy: FuzzPolicy,
crates/tauri-fuzz/src/fuzzer.rs:268
↓ 1 callers
Function
get_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 callers
Function
greet
()
examples/mini-app/src/main.js:15
↓ 1 callers
Function
is_syscall_instruction
(cs_instr: &capstone::Insn)
crates/tauri-fuzz/src/runtime/instruction_listener_rt.rs:33
↓ 1 callers
Function
is_tauri_config_file
(path: &Path)
crates/tauri-fuzz-cli/src/util.rs:23
↓ 1 callers
Function
mock_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 callers
Function
nth_argument_as_str
(registers: &[usize], index: usize)
crates/tauri-fuzz-policies/src/policies/utils.rs:8
↓ 1 callers
Function
path_to_foo
()
tests/fuzz-mini-app/src/utils.rs:31
↓ 1 callers
Method
policy_context_from_invoc_context
(&self, invoc_context: &InvocationContext)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:89
↓ 1 callers
Function
prettyprint_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 callers
Function
render
( handlebars: &mut Handlebars, data: &S, dir: &Dir<'_>, out_dir: P, )
crates/tauri-fuzz-cli/src/init.rs:60
↓ 1 callers
Function
render_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 callers
Function
run
()
examples/mini-app/src-tauri/src/lib.rs:29
↓ 1 callers
Function
run
()
crates/tauri-fuzz-cli/tests/tauri-app/src-tauri/src/lib.rs:8
↓ 1 callers
Function
setup_logger
(cli: &Cli)
crates/tauri-fuzz-cli/src/main.rs:61
↓ 1 callers
Function
setup_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 callers
Function
setup_mock
Setup the Tauri application mockruntime and an associated "main" webview
examples/mini-app/src-tauri/fuzz/fuzz_targets/_template_full_.rs:39
↓ 1 callers
Function
setup_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 callers
Function
setup_mock
Setup the Tauri application mockruntime and an associated "main" webview
crates/tauri-fuzz-cli/template/fuzz_targets/_template_full_.rs:41
↓ 1 callers
Method
should_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 callers
Function
tauri1
(v)
examples/mini-app/src/main.js:8
↓ 1 callers
Function
verbosity_level
This maps the occurrence of `--verbose` flags to the correct log level
crates/tauri-fuzz-cli/src/main.rs:75
Function
allow_fs_readFile
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/fs_readFile_tests.rs:20
Function
allow_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
Function
allow_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
Function
allow_read_foo
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/read_foo_file_tests.rs:19
Function
allowed_by_writeonly_policy
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:30
Function
block_all_file_access
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:12
Function
block_by_filename
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:18
Function
block_by_readonly_policy
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/write_foo_file_tests.rs:24
Function
block_fs_readFile
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/fs_readFile_tests.rs:30
Function
block_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
Function
block_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
Function
block_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
Function
block_non_read_only
Check if the flag is READ_ONLY
crates/tauri-fuzz-policies/src/policies/filesystem.rs:35
Function
block_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
Function
block_non_write_only
Check if the flag is WRITE_ONLY
crates/tauri-fuzz-policies/src/policies/filesystem.rs:60
Function
block_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
Function
block_read_foo
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/read_foo_file_tests.rs:12
Function
command
(options: Options)
crates/tauri-fuzz-cli/src/init.rs:89
Function
crash_fopen
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/fopen_tests.rs:12
Function
crash_tauri_cmd_1
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/tauri_cmd_1_tests.rs:12
Function
crash_tauri_cmd_2
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/tauri_cmd_2_tests.rs:12
Function
create_invoke_request_with_input_as_string
( command_name: &str, bytes: &[u8], )
tests/fuzz-mini-app/src/utils.rs:95
Function
create_invoke_request_with_input_as_u32
(command_name: &str, bytes: &[u8])
tests/fuzz-mini-app/src/utils.rs:103
Function
cs_instr_details
(capstone: &Capstone, cs_instr: &capstone::Insn)
crates/tauri-fuzz/src/runtime/instruction_listener_rt.rs:40
Method
deinit
(&mut self, _gum: &Gum)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:207
Function
direct_panic
()
tests/fuzz-mini-app/tests/mini_app_commands_tests/direct_panic_tests.rs:12
Function
direct_panic
Crash automatically
examples/mini-app/src-tauri/src/tauri_commands/basic.rs:35
Function
export_details_to_string
(e: &ExportDetails)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:408
Function
exports_in_module
(module_name: &str)
crates/tauri-fuzz/src/runtime/func_call_listener_rt.rs:390
next →
1–100 of 203, ranked by callers