Comments (6)
I mostly use msvc, try to use the same flags for cargo and write the write arguments for cargo build and let me know cause I'm my case , it is totally fine without home dir
from offensiverust.
I tried the arguments, etc. you suggested (the only difference from mine were trim-path
and the build-std
flags) before I posted the issue. I also updated to the latest version to see if anything had changed. You can see my default configuration below.
# .cargo/config.toml
[profile.release]
codegen-units = 1
panic = "abort"
lto = true
opt-level = "z"
strip = "symbols"
# Cargo.toml
# cargo-features = ["strip"] isn't necessary since Rust 1.58
[package]
name = "something"
version = "0.1.0"
edition = "2021"
# standard [[bin]] and [dependencies], etc.
cargo build --release --target=x86_64-pc-windows-gnu -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort
If you are not seeing any references to the home directory, it could be due to different dependencies.
I ran the current samples with your suggested configuration and both with and without the build-std flags.
http-https-requests
seem to have the most instances of username. reqwest
, openssl
, and wmi
are the likely culprits.
Package | # | # with build-std |
---|---|---|
Allocate_With_Syscalls | 0 | 0 |
Create_DLL.dll | 0 | 0 |
DeviceIoControl | 0 | 0 |
EnableDebugPrivileges | 0 | 0 |
Exec_Shellcode_In_Memory | 0 | 0 |
Execute_Without_Create_Process | 0 | 0 |
ImportedFunctionCall | 0 | 0 |
Kernel_Driver_Exploit | 0 | 0 |
Named_Pipe_Client | 0 | 0 |
Named_Pipe_Server | 0 | 0 |
Process_Injection_CreateThread | 0 | 0 |
UUID_Shellcode_Execution | 0 | 0 |
asm_syscall | 0 | 0 |
base64_system_enum | 3 | 0 |
http-https-requests | 522 | 395 |
patch_etw | 0 | 0 |
ppid_spoof | 0 | 0 |
rust-unhooking | 0 | 0 |
tcp_ssl_client | 6 | 1 |
tcp_ssl_server | 6 | 1 |
wmi_execute | 5 | 3 |
This issue will be solved eventually when trim-paths
is merged into standard (likely in the next edition, 2024?) but in the meantime, strip
isn't enough for every case. It might be better to reword the section in the readme.
from offensiverust.
@trickster0 Anyway, this is your package and your advice in the readme. If you are comfortable with leaving it as it is, I don't mind. I just thought you should know.
from offensiverust.
Hey, yup I checked it and you are right depending on the libraries imported it still might include the path, so i updated the readme. thx man.
from offensiverust.
Thank you! Apologies if I came off standoffish 😅
from offensiverust.
You did but that is okay 😅 I had to check and verify yet.
from offensiverust.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offensiverust.