aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Robertson <Kevin-Robertson@users.noreply.github.com>2021-06-21 22:55:48 -0400
committerKevin Robertson <Kevin-Robertson@users.noreply.github.com>2021-06-21 22:55:48 -0400
commit037f341f8e2b1d68cdd934c907a8abdb21a49cca (patch)
tree9d883b5a1dd8ccc56297614d369a281139b24127
parent9dbc47d9ebc319a208bd9a6fd197132f4645b86a (diff)
downloadInveigh-037f341f8e2b1d68cdd934c907a8abdb21a49cca.tar.gz
Inveigh-037f341f8e2b1d68cdd934c907a8abdb21a49cca.zip
HTTP listener update
Remove unneeded code
-rw-r--r--Inveigh/Listeners/HTTPListener.cs24
-rw-r--r--Inveigh/Program.cs2
-rw-r--r--Inveigh/Support/Arguments.cs2
3 files changed, 2 insertions, 26 deletions
diff --git a/Inveigh/Listeners/HTTPListener.cs b/Inveigh/Listeners/HTTPListener.cs
index fe19e59..be929b2 100644
--- a/Inveigh/Listeners/HTTPListener.cs
+++ b/Inveigh/Listeners/HTTPListener.cs
@@ -251,29 +251,6 @@ namespace Inveigh
response.WWWAuthenticate = string.Concat("Basic realm=", Program.argHTTPRealm);
}
- /*
- if (!string.Equals(request.URI, "/wpad.dat") && string.Equals(Program.argHTTPAuth, "ANONYMOUS") || string.Equals(request.URI, "/wpad.dat") && string.Equals(Program.argWPADAuth, "ANONYMOUS") || wpadAuthIgnoreMatch)
- {
- response.StatusCode = "200";
- response.ReasonPhrase = "OK";
- }
- else
- {
- if (String.Equals(type, "Proxy"))
- {
- response.StatusCode = "407";
- response.ProxyAuthenticate = "NTLM";
- response.WWWAuthenticate = "";
- response.Connection = "close";
- }
- else
- {
- //response.StatusCode = "401";
- //response.WWWAuthenticate = "NTLM";
- }
- }
- */
-
if ((!string.IsNullOrEmpty(request.Authorization) && request.Authorization.ToUpper().StartsWith("NTLM ")) || (!string.IsNullOrEmpty(request.ProxyAuthorization)) && request.ProxyAuthorization.ToUpper().StartsWith("NTLM "))
{
string authorization = request.Authorization;
@@ -326,7 +303,6 @@ namespace Inveigh
byte[] timestamp = new byte[8];
Buffer.BlockCopy(ntlmResponse.NtChallengeResponse, 24, timestamp, 0, 8);
string sessionTimestamp = BitConverter.ToString(timestamp).Replace("-", "");
- Console.WriteLine(sessionTimestamp);
ntlmChallenge = Program.httpSessionTable[sessionTimestamp].ToString();
}
diff --git a/Inveigh/Program.cs b/Inveigh/Program.cs
index 3ae0293..80b5ca1 100644
--- a/Inveigh/Program.cs
+++ b/Inveigh/Program.cs
@@ -170,7 +170,7 @@ namespace Inveigh
public static string netbiosDomain = Environment.UserDomainName;
public static string dnsDomain = "";
public static ulong smb2Session = 5548434740922023936; // todo check
- public static string version = "2.0";
+ public static string version = "2.0.1";
static void Main(string[] arguments)
{
diff --git a/Inveigh/Support/Arguments.cs b/Inveigh/Support/Arguments.cs
index 1de3da8..b1d6302 100644
--- a/Inveigh/Support/Arguments.cs
+++ b/Inveigh/Support/Arguments.cs
@@ -314,7 +314,7 @@ namespace Inveigh
if (Program.enabledProxy)
{
- Program.argWPADResponse = string.Concat("function FindProxyForURL(url,host){", "return \"PROXY ", Program.argSnifferIP, ":", Program.argProxyPort, "; PROXY ", Program.argSnifferIP, ":", (int.Parse(Program.argProxyPort) + 1).ToString(), "; DIRECT\";}");
+ Program.argWPADResponse = string.Concat("function FindProxyForURL(url,host) {", "return \"PROXY ", Program.argSnifferIP, ":", Program.argProxyPort, "; PROXY ", Program.argSnifferIP, ":", (int.Parse(Program.argProxyPort) + 1).ToString(), "; DIRECT\";}");
}
else if (string.IsNullOrEmpty(Program.argWPADResponse))
{