MCPcopy Create free account
hub / github.com/Nariod/RustPacker / test_get_source_binary_filename

Function test_get_source_binary_filename

src/tools.rs:207–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205
206 #[test]
207 fn test_get_source_binary_filename() {
208 let order = arg_parser::Order {
209 shellcode_path: PathBuf::from("/tmp/test.bin"),
210 execution: arg_parser::Execution::NtCreateRemoteThread,
211 encryption: arg_parser::Encryption::Xor,
212 format: arg_parser::Format::Dll,
213 target_process: "dllhost.exe".to_string(),
214 sandbox: None,
215 output: None,
216 proxy_dll: None,
217 };
218 let path = get_source_binary_filename(&order, Path::new("/output"));
219 assert!(path.to_string_lossy().contains("ntCRT.dll"));
220 }
221}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected