From 8ff7bffcfde5eabea78e164a1d9a4b2579987c84 Mon Sep 17 00:00:00 2001 From: Alexander Georgiev Date: Wed, 15 Mar 2023 20:17:02 +0100 Subject: [PATCH 1/2] Update Program.cs made clear enc key is 32 byte --- SharpSocksServer/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SharpSocksServer/Program.cs b/SharpSocksServer/Program.cs index 13c35a0..8a7f88f 100644 --- a/SharpSocksServer/Program.cs +++ b/SharpSocksServer/Program.cs @@ -60,7 +60,7 @@ private static SharpSocksConfig ParseArgs(string[] args) var optSocksServerUri = app.Option("-s|--socksserveruri", "IP:Port for SOCKS to listen on, default is *:43334", CommandOptionType.SingleValue); var optCmdChannelId = app.Option("-c|--cmdid", "Command Channel Identifier, needs to be shared with the server", CommandOptionType.SingleValue); var optHttpServer = app.Option("-l|--httpserveruri", "Uri to listen on, default is http://127.0.0.1:8081", CommandOptionType.SingleValue); - var optEncKey = app.Option("-k|--encryptionkey", "The encryption key used to secure comms", CommandOptionType.SingleValue); + var optEncKey = app.Option("-k|--encryptionkey", "The encryption key used to secure comms (32 bytes)", CommandOptionType.SingleValue); var optSessionCookie = app.Option("-sc|--sessioncookie", "The name of the cookie to pass the session identifier", CommandOptionType.SingleValue); var optPayloadCookie = app.Option("-pc|--payloadcookie", "The name of the cookie to pass smaller requests through", CommandOptionType.SingleValue); var optSocketTimeout = app.Option("-st|--socketTimeout", "How long should SOCKS sockets be held open for, default is 30s", CommandOptionType.SingleValue); @@ -77,4 +77,4 @@ private static SharpSocksConfig ParseArgs(string[] args) return config; } } -} \ No newline at end of file +} From 9150f0add40b3a6d2207314cdf7ef26b8624dcff Mon Sep 17 00:00:00 2001 From: Alexander Georgiev Date: Wed, 15 Mar 2023 20:17:26 +0100 Subject: [PATCH 2/2] Update Program.cs made clear enc key is 32 byte --- SharpSocksImplant/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SharpSocksImplant/Program.cs b/SharpSocksImplant/Program.cs index 0f73769..b06a52b 100644 --- a/SharpSocksImplant/Program.cs +++ b/SharpSocksImplant/Program.cs @@ -81,7 +81,7 @@ private static void StartSocks(string[] args) }, { "k=|encryption-key=", - "The encryption key, leave blank to be asked", + "The encryption key (32 byte), leave blank to be asked", v => key = v }, { @@ -269,4 +269,4 @@ private static void Banner() COMMS.BannerMessage("\r\nSharpSocks Proxy Client\r\n=======================\r\n"); } } -} \ No newline at end of file +}