Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Irate-Walrus/stardust-rs
/ functions
Functions
65 in github.com/Irate-Walrus/stardust-rs
⨍
Functions
65
◇
Types & classes
10
↓ 10 callers
Function
resolve_function
Finds a function by its hash from the export directory of a module. # Arguments `module_base` - The base address of the module. `function_hash` - The
stardust/src/stcore/os/windows/resolve.rs:108
↓ 4 callers
Method
handle
(&self)
stardust/src/stcore/os/windows/allocator.rs:19
↓ 2 callers
Function
data_offset
()
stardust/src/stcore/mod.rs:18
↓ 2 callers
Function
epilogue_offset
()
stardust/src/stcore/mod.rs:34
↓ 2 callers
Function
got_offset
()
stardust/src/stcore/mod.rs:26
↓ 2 callers
Function
log_str
Log &str to stdout
stardust/src/stcore/os/linux/mod.rs:16
↓ 2 callers
Function
resolve_module
Finds and returns the base address of a module by its hash. # Arguments `module_hash` - The hash of the module name to locate. Returns the base addr
stardust/src/stcore/os/windows/resolve.rs:66
↓ 2 callers
Function
rip_end
()
stardust/src/stcore/arch/i686/mod.rs:24
↓ 2 callers
Function
rip_start
()
stardust/src/stcore/arch/i686/mod.rs:9
↓ 2 callers
Method
rtl_allocate_heap
(&self)
stardust/src/stcore/os/windows/ntdll.rs:29
↓ 1 callers
Function
alloc_rw
()
runner/src/main.rs:44
↓ 1 callers
Function
close
Closes a file using the `close` syscall
stardust/src/stcore/os/linux/resolve.rs:30
↓ 1 callers
Function
djb2_hash
(buf: bytes)
stardust/scripts/djb2.py:3
↓ 1 callers
Function
djb2_hash_u8
(data: &[u8])
djb2_macro/src/lib.rs:49
↓ 1 callers
Function
find_peb
()
stardust/src/stcore/os/windows/resolve.rs:12
↓ 1 callers
Function
get_cstr_len
Calculates the length of a C-style null-terminated string. This function counts the number of characters in the string until it encounters a null byt
stardust/src/stcore/os/windows/resolve.rs:163
↓ 1 callers
Function
get_nt_headers
Retrieves the NT headers from the base address of a module. # Arguments `base_addr` - The base address of the module. Returns a pointer to `ImageNtH
stardust/src/stcore/os/windows/resolve.rs:41
↓ 1 callers
Function
initialize
()
stardust/src/stcore/os/linux/mod.rs:58
↓ 1 callers
Method
initialize
(&self)
stardust/src/stcore/os/windows/allocator.rs:27
↓ 1 callers
Method
nt_protect_virtual_memory
(&self)
stardust/src/stcore/os/windows/ntdll.rs:54
↓ 1 callers
Function
open
Opens a file using the `open` syscall
stardust/src/stcore/os/linux/resolve.rs:20
↓ 1 callers
Function
patch_got_offsets
(ptr: *mut c_void)
stardust/src/stcore/os/windows/mod.rs:35
↓ 1 callers
Function
patch_got_offsets
Patch hardcoded memory addresses in the GLOBAL_OFFSET_TABLE this has the side effect of changing the values of *_offset() to their actual addresses bu
stardust/src/stcore/os/linux/mod.rs:45
↓ 1 callers
Function
read
Reads from a file using the `read` syscall
stardust/src/stcore/os/linux/resolve.rs:25
↓ 1 callers
Function
resolve_function
(module_base: *const c_void, sym_hash: u32)
stardust/src/stcore/os/linux/resolve.rs:159
↓ 1 callers
Function
resolve_module
(sym_hash: u32)
stardust/src/stcore/os/linux/resolve.rs:39
↓ 1 callers
Method
rtl_create_heap
(&self)
stardust/src/stcore/os/windows/ntdll.rs:24
↓ 1 callers
Method
rtl_free_heap
(&self)
stardust/src/stcore/os/windows/ntdll.rs:34
↓ 1 callers
Method
rtl_re_allocate_heap
(&self)
stardust/src/stcore/os/windows/ntdll.rs:39
↓ 1 callers
Function
rw_page
Set data, bss, and got page to RW really this only protects `size_of::<usize>()` but it'll flip the entire page including `rip_end()`, so don't call t
stardust/src/stcore/os/linux/mod.rs:36
↓ 1 callers
Function
set_rx
(ptr: *mut usize)
runner/src/main.rs:67
↓ 1 callers
Function
write
Write to file descriptor using the `write` syscall
stardust/src/stcore/os/linux/mod.rs:29
↓ 1 callers
Method
write_file
(&self)
stardust/src/stcore/os/windows/kernel32.rs:26
Function
_Unwind_Resume
()
stardust/src/main.rs:39
Function
_stmain
()
stardust/src/main.rs:54
Method
alloc
(&self, layout: Layout)
stardust/src/stcore/os/windows/allocator.rs:47
Method
alloc
(&self, layout: Layout)
stardust/src/stcore/os/linux/allocator.rs:13
Method
alloc_zeroed
(&self, layout: Layout)
stardust/src/stcore/os/windows/allocator.rs:52
Method
dealloc
(&self, ptr: *mut u8, _layout: Layout)
stardust/src/stcore/os/windows/allocator.rs:57
Method
dealloc
(&self, ptr: *mut u8, layout: Layout)
stardust/src/stcore/os/linux/allocator.rs:39
Function
define_djb2_hash_fn
(input: TokenStream)
djb2_macro/src/lib.rs:10
Function
djb2_hash
(input: TokenStream)
djb2_macro/src/lib.rs:33
Method
from_local
Initializes the global INSTANCE with a provided stack-initialized instance. This should only be called once.
stardust/src/stcore/instance.rs:48
Method
get
()
stardust/src/stcore/instance.rs:70
Function
initialize
()
stardust/src/stcore/os/windows/mod.rs:48
Function
log_str
Log &str to stdout
stardust/src/stcore/os/windows/mod.rs:17
Function
main
()
runner/src/main.rs:17
Function
main
()
stardust/build.rs:4
Method
new
()
stardust/src/stcore/instance.rs:28
Method
new
()
stardust/src/stcore/os/windows/ntdll.rs:19
Method
new
()
stardust/src/stcore/os/windows/kernel32.rs:11
Method
new
()
stardust/src/stcore/os/linux/libc.rs:9
Method
nt_terminate_process
(&self)
stardust/src/stcore/os/windows/ntdll.rs:49
Method
output_debug_string_a
(&self)
stardust/src/stcore/os/windows/kernel32.rs:16
Method
output_debug_string_w
(&self)
stardust/src/stcore/os/windows/kernel32.rs:21
Function
panic
(_: &core::panic::PanicInfo)
stardust/src/main.rs:45
Method
realloc
(&self, ptr: *mut u8, _layout: Layout, new_size: usize)
stardust/src/stcore/os/windows/allocator.rs:62
Function
rip_end
()
stardust/src/stcore/arch/x86_64/mod.rs:29
Function
rip_start
()
stardust/src/stcore/arch/x86_64/mod.rs:14
Method
rtl_destroy_heap
(&self)
stardust/src/stcore/os/windows/ntdll.rs:44
Function
rust_eh_personality
()
stardust/src/main.rs:29
Function
rust_oom
()
stardust/src/stcore/os/windows/allocator.rs:69
Function
rust_oom
()
stardust/src/stcore/os/linux/allocator.rs:47
Function
usize_to_hex_str
(num: usize)
stardust/src/stcore/macros.rs:45
Function
usize_to_int_str
(num: usize)
stardust/src/stcore/macros.rs:77