Skip to content

Commit

Permalink
Merge pull request #81 from SnaffCon/emergency-octoparrot-fix
Browse files Browse the repository at this point in the history
Update SnaffCon.cs
  • Loading branch information
l0ss committed Jan 20, 2022
2 parents 783a9c3 + db18753 commit 5ba6cce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SnaffCore/SnaffCon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,15 @@ public void Execute()
DomainTargetDiscovery();
}
// if we've been told what computers to hit...
else if (MyOptions.ComputerTargets != null)
else if (MyOptions.ComputerTargets != null && MyOptions.PathTargets == null)
{
ShareDiscovery(MyOptions.ComputerTargets);
}
// otherwise we should have a set of path targets...
else if (MyOptions.PathTargets != null && MyOptions.ComputerTargets != null)
{
FileDiscovery(MyOptions.PathTargets);
}
// but if that hasn't been done, something has gone wrong.
else
{
Expand Down

0 comments on commit 5ba6cce

Please sign in to comment.