From b4c4c106d650182c2ff4f890fddaf21f8eece485 Mon Sep 17 00:00:00 2001 From: l0ss Date: Wed, 24 Nov 2021 00:00:51 +0000 Subject: [PATCH] boy i am a stupid --- SnaffCore/Config/DefaultRules/PathRules.cs | 54 +++++++++++----------- Snaffler/Config.cs | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/SnaffCore/Config/DefaultRules/PathRules.cs b/SnaffCore/Config/DefaultRules/PathRules.cs index 382f757..180ff92 100644 --- a/SnaffCore/Config/DefaultRules/PathRules.cs +++ b/SnaffCore/Config/DefaultRules/PathRules.cs @@ -18,33 +18,33 @@ private void BuildPathRules() WordList = new List() { // these are directory names that make us skip a dir instantly when walking a tree. - "\\winsxs\\", - "\\syswow64\\", - "\\system32\\", - "\\systemapps\\", - "\\windows\\servicing", - "\\servicing\\", - "Microsoft.NET\\Framework", - "windows\\immersivecontrolpanel", - "windows\\diagnostics", - "windows\\debug", - "node_modules", - "vendor\\bundle", - "vendor\\cache", - "locale\\", - "chocolatey\\helpers", - "sources\\sxs", - "localization\\", - "\\AppData\\Local\\Microsoft\\", - "\\AppData\\Roaming\\Microsoft\\", - "\\wsuscontent", - "\\Application Data\\Microsoft\\CLR Security Config\\", - "\\doc\\openssl", - "\\puppet\\share\\doc", - "\\lib\\ruby\\", - "\\lib\\site-packages", - "\\usr\\share\\doc", - "\\servicing\\LCU\\" + @"\\winsxs\\", + @"\\syswow64\\", + @"\\system32\\", + @"\\systemapps\\", + @"\\windows\\servicing", + @"\\servicing\\", + @"Microsoft.NET\\Framework", + @"windows\\immersivecontrolpanel", + @"windows\\diagnostics", + @"windows\\debug", + @"node_modules", + @"vendor\\bundle", + @"vendor\\cache", + @"locale\\", + @"chocolatey\\helpers", + @"sources\\sxs", + @"localization\\", + @"\\AppData\\Local\\Microsoft\\", + @"\\AppData\\Roaming\\Microsoft\\", + @"\\wsuscontent", + @"\\Application Data\\Microsoft\\CLR Security Config\\", + @"\\doc\\openssl", + @"\\puppet\\share\\doc", + @"\\lib\\ruby\\", + @"\\lib\\site-packages", + @"\\usr\\share\\doc", + @"\\servicing\\LCU\\" }, }); diff --git a/Snaffler/Config.cs b/Snaffler/Config.cs index 8a6fb6f..87f6573 100644 --- a/Snaffler/Config.cs +++ b/Snaffler/Config.cs @@ -67,7 +67,7 @@ private static Options ParseImpl(string[] args) ValueArgument grepContextArg = new ValueArgument('j', "grepcontext", "How many bytes of context either side of found strings in files to show, e.g. -j 200"); SwitchArgument domainUserArg = new SwitchArgument('u', "domainusers", "Makes Snaffler grab a list of interesting-looking accounts from the domain and uses them in searches.", false); - ValueArgument maxThreadsArg = new ValueArgument('a', "maxthreads", "How many threads to be snaffling with. Any less than 4 and you're gonna have a bad time."); + ValueArgument maxThreadsArg = new ValueArgument('x', "maxthreads", "How many threads to be snaffling with. Any less than 4 and you're gonna have a bad time."); SwitchArgument tsvArg = new SwitchArgument('y', "tsv", "Makes Snaffler output as tsv.", false); SwitchArgument dfsArg = new SwitchArgument('f', "dfs", "Limits Snaffler to finding file shares via DFS, for \"OPSEC\" reasons.", false); SwitchArgument findSharesOnlyArg = new SwitchArgument('a', "sharesonly",