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

-d or -c not working #160

Open
imfloflo opened this issue Oct 25, 2024 · 1 comment
Open

-d or -c not working #160

imfloflo opened this issue Oct 25, 2024 · 1 comment

Comments

@imfloflo
Copy link

Hi,
i tried to use the -c or -d option with the default commande line : .\Snaffler.exe -d myCustomDomain -s (or with -o and a output file) but it keeps launching the Snaffler on my primary domain without taking it into account.

[F\Flo] 2024-10-25 09:06:35Z [Info] Parsing args...
[F\Flo] 2024-10-25 09:06:35Z [Info] Parsed args successfully.
[F\Flo] 2024-10-25 09:06:36Z [Info] Invoking DFS Discovery because no ComputerTargets or PathTargets were specified
[F\Flo] 2024-10-25 09:06:36Z [Info] Getting DFS paths from AD.
[F\Flo] 2024-10-25 09:06:36Z [Info] Found 200 DFS Shares in 10 namespaces.
[F\Flo] 2024-10-25 09:06:36Z [Info] Invoking full domain computer discovery.
[F\Flo] 2024-10-25 09:06:36Z [Info] Getting computers from AD.
[F\Flo] 2024-10-25 09:06:37Z [Info] Got 1000 computers from AD.
[F\Flo] 2024-10-25 09:06:37Z [Info] Starting to look for readable shares...

when i tried to launch without -s or -o option it seems that the -c or -d option is read correctly and the domain seems to be taking into account this time but i have another message of error which seems logical as i didn't enter output option

   à Snaffler.Config.ParseImpl(String[] args)
   à Snaffler.Config.Parse(String[] args)
   à Snaffler.SnaffleRunner.Run(String[] args)
Parsing args...
Enabled logging to stdout.
Target domain is myCustomDomain  

You didn't enable output to file or to the console so you won't see any results or debugs or anything. Your l0ss.
System.ArgumentException: Pointless argument combination.
   à Snaffler.Config.ParseImpl(String[] args)
Something went wrong parsing args.
I snaffled 'til the snafflin was done.```

How can i launch Snaffler on a specific domain and have an output file, please ?
@l0ss
Copy link
Contributor

l0ss commented Nov 12, 2024

Have you tried using both -c and -d? I don't think it's explicitly stated in the documentation but you need to provide both args for 'custom' domain to work.

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