Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodetect current domain just as SharpHound does #26

Open
muelli opened this issue Jan 9, 2024 · 2 comments
Open

Autodetect current domain just as SharpHound does #26

muelli opened this issue Jan 9, 2024 · 2 comments
Assignees

Comments

@muelli
Copy link
Contributor

muelli commented Jan 9, 2024

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
Copy link
Contributor Author

muelli commented Jan 9, 2024

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
Copy link
Collaborator

g0h4n commented Jan 9, 2024

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.

@g0h4n g0h4n self-assigned this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants