diff options
Diffstat (limited to 'Inveigh/Support/Output.cs')
-rw-r--r-- | Inveigh/Support/Output.cs | 65 |
1 files changed, 51 insertions, 14 deletions
diff --git a/Inveigh/Support/Output.cs b/Inveigh/Support/Output.cs index d44c10f..3d86a1a 100644 --- a/Inveigh/Support/Output.cs +++ b/Inveigh/Support/Output.cs @@ -592,12 +592,12 @@ namespace Inveigh lock (Program.IPCaptureList) { - Program.IPCaptureList.Add(string.Concat(host)); + Program.IPCaptureList.Add(sourceIP); } lock (Program.HostCaptureList) { - Program.HostCaptureList.Add(string.Concat(host)); + Program.HostCaptureList.Add(host); } } @@ -642,12 +642,12 @@ namespace Inveigh lock (Program.IPCaptureList) { - Program.IPCaptureList.Add(string.Concat(host)); + Program.IPCaptureList.Add(sourceIP); } lock (Program.HostCaptureList) { - Program.HostCaptureList.Add(string.Concat(host)); + Program.HostCaptureList.Add(host); } } @@ -680,6 +680,43 @@ namespace Inveigh } + public static void CleartextOutput(string protocol, string listenerPort, string clientIP, string clientPort, string credentials) + { + + bool isUnique = false; + + if (Program.cleartextList.Any(str => str.Contains(credentials))) + { + isUnique = true; + } + + lock (Program.cleartextList) + { + Program.cleartextList.Add(string.Concat(clientIP, ",", credentials)); + } + + if (Program.enabledConsoleUnique && isUnique) + { + Queue(string.Format("[+] [{0}] {1}({2}) cleartext credentials captured from {3}({4}):\r\n[not unique]", Timestamp(), protocol, listenerPort, clientIP, clientPort)); + } + else + { + Queue(string.Format("[+] [{0}] {1}({2}) cleartext credentials captured from {3}({4}):\r\n{5}", Timestamp(), protocol, listenerPort, clientIP, clientPort, credentials)); + } + + if (Program.enabledFileOutput && (!Program.enabledFileUnique || !isUnique)) + { + + lock (Program.cleartextFileList) + { + Program.cleartextFileList.Add(string.Concat(clientIP, ",", credentials)); + } + + Queue(string.Format("[+] [{0}] {1}({2}) cleartext credentials written to {3}", Timestamp(), protocol, listenerPort, String.Concat(Program.argFilePrefix, "-Cleartext.txt"))); + } + + } + public static void FileOutput() { @@ -1005,10 +1042,10 @@ namespace Inveigh OutputHelp(argument, description); } - if (nullarg || string.Equals(arg, "IGNOREHOSTS")) + if (nullarg || string.Equals(arg, "IGNOREQUERIES")) { - string argument = "IgnoreHosts"; - string description = "Default=None: Comma separated list of hostnames to ignore when spoofing."; + string argument = "IgnoreQueries"; + string description = "Default=None: Comma separated list of name queries to ignore when spoofing."; OutputHelp(argument, description); } @@ -1117,13 +1154,6 @@ namespace Inveigh OutputHelp(argument, description); } - if (nullarg || string.Equals(arg, "REPLYTOHOSTS")) - { - string argument = "ReplyToHosts"; - string description = "Default=All: Comma separated list of hostnames to respond to when spoofing."; - OutputHelp(argument, description); - } - if (nullarg || string.Equals(arg, "REPLYTOIPS")) { string argument = "ReplyToIPs"; @@ -1138,6 +1168,13 @@ namespace Inveigh OutputHelp(argument, description); } + if (nullarg || string.Equals(arg, "REPLYTOQUERIES")) + { + string argument = "ReplyToqueries"; + string description = "Default=All: Comma separated list of name queries to respond to when spoofing."; + OutputHelp(argument, description); + } + if (nullarg || string.Equals(arg, "SPOOFERIP")) { string argument = "SpooferIP"; |