Skip to content

-d or -c not working  #160

@imfloflo

Description

@imfloflo

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions