()
| 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 | } |
nothing calls this directly
no test coverage detected