NH-RED-TEAM/RustHound

Autodetect current domain just as SharpHound does

muelli opened this issue · 2 comments

muelli commented

With SharpHound, I just need to run the executable and it determines the domain of the current user automatically.
If RustHound did the same, I would need to think less and probably make fewer mistakes.
I haven't found a discussion about auto-detecting the domain, so I thought it is appropriate to ask for it here.

muelli commented

I'm seeing auto_args guarded by a feature flag:

pub fn auto_args() -> Options {

So this is compile time only?
Sounds like one could implement --auto to achieve this behaviour at run time.

g0h4n commented

Hi @muelli,

Indeed RustHound can determines the domain of the current user automatically.
You need to compile it with the following command:

make windows_noargs

Or directly with cargo and the feature: --features noargs like:

RUSTFLAGS="-C target-feature=+crt-static" cargo build --release --target x86_64-pc-windows-gnu --features noargs

I'll look into potentially adding the --auto option at runtime rather than having to go through a compile-time option.