Commit Graph

279 Commits

Author SHA1 Message Date
MaxXor 1ddc248fa3 Merge pull request #146 from MaxXor/pr/145
Improved UnsafeStreamCodec code
2015-05-18 18:08:06 +02:00
MaxXor 8866103318 Reformatted UnsafeStreamCodec 2015-05-18 18:07:22 +02:00
yankejustin af20dd54e3 Disposing IDisposable Resources
Dispose of unmanaged resources used by the server's UnsafeStreamCodec
and JpgCompression (because it is pretty related to the
UnsafeStreamCodec). Made sure that the UnsafeStreamCodec was being
disposed of before being re-assigned.
Note: I did not reflect these changes to the client's UnsafeStreamCodec
because the implementation of the client's codec is a bit different in
the CommandHandler. This different implementation caused instability in
the client. In the server, I noticed decreased memory consumption and
decreased fluctuation in the memory used.
2015-05-18 01:10:25 -04:00
yankejustin af591e1d3a Formatted code of UnsafeStreamCodec
Formatted the code for UnsafeStreamCodec for readability and consistency
with the rest of the code in the program.
2015-05-18 00:37:12 -04:00
yankejustin d1e04a98a8 Removed clearing of local lists + setting to null
Setting objects to null would be optimized out. Clearing lists probably
would not be optimized out. There is no need to explicitly clear a list
of items or setting objects to null in C#. We must let the Garbage
Collector have its way.
2015-05-17 23:58:08 -04:00
yankejustin 95a271554b Removed unnecessary comment
Removed commented-out (archived) code.
2015-05-17 23:54:40 -04:00
yankejustin ab19a9fbef Make the lock readonly
Made the lock for the codec readonly. This makes it impossible for a
spot (excluding constructors) from touching the lock. Tampering with the
lock means that, if something acquires the lock and enters critical
code, the lock can be changed and the critical code's thread safety can
be violated.
2015-05-17 23:24:13 -04:00
ShittyAdvice 8f208fe05d Fixed null reference crash
Closing this form without doing anything causes a crash because RefreshTimer hasn't been initialized yet
2015-05-17 12:11:40 +02:00
MaxXor 4fcdf3b4d4 Merge pull request #141 from AnguisCaptor/master
Reverse Proxy Updates & Load Balancer
2015-05-16 21:22:09 +02:00
DragonHunter 42d7382fff Reverse Proxy Updates & Load Balancer
Added a Load Balancer, this will try balancing all the proxy connections
over multiple clients (keep refreshing ipchicken.com to see the cool
effect)
Resolve the DNS Hostname of the Target server at the Remote Client to
reduce DNS Leaks
2015-05-16 20:39:35 +02:00
MaxXor 6e49359542 Merge pull request #139 from yankejustin/SeparateCommandHandlers
Separated the command handlers
2015-05-16 18:27:25 +02:00
DragonHunter 4bdfb18b8e Improved Reverse Proxy UI
Ability to kill connections
Improved the refreshing of the OpenConnection ListView
2015-05-16 17:41:28 +02:00
yankejustin ac93887af3 Separated the CommandHandler
Divided the server's CommandHandler class into partial classes.
2015-05-15 21:15:44 -04:00
MaxXor ce72b4edc9 Revert "CPU/RAM usage of each process" 2015-05-15 18:58:50 +02:00
MaxXor a5f35130f6 Merge pull request #136 from yankejustin/CpuRamUsage
CPU/RAM usage of each process
2015-05-15 18:28:03 +02:00
MaxXor f8a28a74d0 Fixed crash in Remote Desktop
Fixed crash in Remote Desktop Form when pressing start and the client
didn't send a list with available monitors yet
2015-05-15 10:10:53 +02:00
MaxXor b7a8efc1ba Small change 2015-05-15 09:37:37 +02:00
yankejustin ae04753f0d Changed server packets for CPU and memory usage
Added two more properties on the GetProcessesResponse packet to provide
properties on CPU and memory usage.
2015-05-14 14:04:46 -04:00
yankejustin 464e6cc343 Changes to AsyncReceive
Improved a bit...
See if it fixed https://github.com/MaxXor/xRAT/issues/131
2015-05-14 13:39:29 -04:00
MaxXor 4b4c7d6441 Minor fixes 2015-05-14 11:06:17 +02:00
tidusjar 35077b6327 Made changes as requested 2015-05-14 09:26:28 +01:00
MaxXor 72a453b2d4 Edited Reverse Proxy 2015-05-13 00:06:28 +02:00
MaxXor 4aef0554ff Fixed disconnection of clients
fixed #125
2015-05-12 23:24:25 +02:00
d3agle a87c2bd153 Reverse Proxy Form fix 2015-05-10 12:42:17 -05:00
MaxXor c6afc0c24e Merge pull request #116 from MaxXor/pr/113
Added Socks5 Reverse Proxy
closes #103
2015-05-10 19:03:09 +02:00
MaxXor a2a5f59c67 Improved Reverse Proxy 2015-05-10 19:02:10 +02:00
DragonHunter 6b581b731c Fixed Stopping the proxy server
A error will occur when stopping the proxy server when there are clients
connected
2015-05-10 18:14:07 +02:00
MaxXor 11032266c9 Improved NoIP.org Integration 2015-05-10 18:11:22 +02:00
DragonHunter 58fcbe96f0 Target Server/Port fixed in ListView 2015-05-10 17:39:20 +02:00
Abdullah Saleem 4f8bd1b431 NoIP.org Integration 2015-05-10 20:38:08 +05:00
DragonHunter b7cad28b83 Tiny fix for class re-namer
Class re-namer fix for Reverse Proxy
2015-05-10 17:34:02 +02:00
Abdullah Saleem 5f83df91e5 NoIP.org Integration 2015-05-10 20:28:02 +05:00
DragonHunter ce7c75c56c More error checks & more reliable
Proxy is now more reliable and works a lot better
More error checks
2015-05-10 15:34:49 +02:00
DragonHunter ee74b6112d Initial release of the Reverse Proxy
Supports HTTPS
Supports Socks5
Tested both HTTPS and Socks5 with Proxifier
2015-05-10 13:11:27 +02:00
MaxXor 73f32520a5 Added File Manager menu item "Open in Remote Shell"
#84
2015-05-06 15:18:56 +02:00
MaxXor e776e1dab9 Merge pull request #82 from yankejustin/master
Added documentation for the Server's Build folder
2015-05-05 20:01:21 +02:00
yankejustin ad115dd5cd Added documentation for Renamer
Added a little bit of documentation for the Server's Renamer.
2015-05-05 12:21:45 -04:00
yankejustin 7b5ef8a15c Added documentation for IconInjector
Added documentation for most of the Server's IconInjector.
2015-05-05 12:17:08 -04:00
yankejustin 7b2667d7ea Added documentation for Clientbuilder
Added documentation for the Server's ClientBuilder.
2015-05-05 12:08:20 -04:00
MaxXor e50ea69d43 Fixed crash when downloading files over 2MB (#75) 2015-05-05 09:19:08 +02:00
yankejustin 88f6495ded Fixed server crash on invalid upload/execute
Fixed an issue that caused the server to crash when attempting to upload
then execute on a file on a client when no file was selected.
2015-05-04 20:37:53 -04:00
MaxXor 0e6ad51dd1 Small fix 2015-05-04 19:50:37 +02:00
MaxXor b1ffa97a85 Added ability to enable/disable keylogger 2015-05-04 18:29:21 +02:00
MaxXor 89389d7325 Edited About-Form 2015-05-04 17:23:39 +02:00
MaxXor c39bff3a6f Merge pull request #73 from MaxXor/dev
Added Keylogger
2015-05-04 16:22:28 +02:00
MaxXor 7cb3a406ff Improved adding of new Logs to Listview 2015-05-03 13:38:46 +02:00
MaxXor aa24f98f20 Added image to Keylogger-ToolStripMenuItem 2015-05-01 15:17:00 +02:00
MaxXor e8d8e8d58e More fixes to Keylogger 2015-05-01 15:09:45 +02:00
MaxXor 770d194ba9 Improved implementation of keylogger 2015-05-01 14:50:38 +02:00
MaxXor b1f6ba7ffd Correctly read and append blocks 2015-04-29 22:00:02 +02:00
MaxXor a08e002f84 Changed max packet size
Prevents crash in Remote Desktop for packets bigger than 1MB
2015-04-29 21:58:47 +02:00
d3agle 53e2096deb FrmMain instance null check
Added FrmMain instance null check to safely exit a thread in the
FrmKeylogger form in the case of client-server disconnection.  The
FrmKeylogger spawns a thread that waits for the enabled button to be set
to true, after successfully receiving all the log files from the client.
If the server were to somehow not process the button being enabled it
would hang in the while loop leaving the entire process to be left in
memory due to the thread being open.
2015-04-23 12:50:02 -05:00
d3agle f1942aa253 Fixed some logic
fixed a few logic errors
2015-04-23 10:46:54 -05:00
d3agle 62826a39e6 Added Hookless Keylogger
-added hookless keylogger class with unicode support
-logs on keylogger class are saved in html format
-added keylogger form using webbrowser to load the log as an html file
-added context menu keylogger option under surveillance
-started keylogger setting enable/disable on client file execution
(didn't complete this, wasn't sure how to do it properly.  just added
the setting in the settings class and in program class for the logic.
only thing left is the server side stuff)

left todo:
-encryption/decryption of logs if desired
-options to enable/disable when building client, etc...
2015-04-22 14:39:52 -05:00
MaxXor 01cfe5076c Code consistency 2015-04-22 15:56:26 +02:00
MaxXor 0600ac1707 Removed unused variable 2015-04-22 15:52:58 +02:00
MaxXor c4b0ba3fc3 Fixed & improved some cross thread calls (#66) 2015-04-22 15:45:03 +02:00
MaxXor 64a9156d41 Added option to enable/disable Client Tooltips 2015-04-21 21:46:48 +02:00
Abdullah Saleem bfb20ce933 SystemInfo as ToolTip 2015-04-22 00:08:55 +05:00
MaxXor df5ce2f893 Fixed code formatting
Replaced all tabs in code with 4 spaces and did some general renaming.
2015-04-21 20:27:52 +02:00
MaxXor 574cce11c2 Revert 'Terms of Use Form closes in a better way'
There exists a bug, when you decline the license the server crashs. Safe
exit is not needed anyways in the terms of use form as nothing special
happend yet.
2015-04-14 20:50:11 +02:00
MaxXor 3237a80924 Closed #60 2015-04-14 20:42:48 +02:00
MaxXor 496e60e004 Minor fixes 2015-04-14 20:36:44 +02:00
MaxXor 21cdd34546 Removed redundant type cast 2015-04-14 20:36:32 +02:00
MaxXor 4c0894dbb3 Merge pull request #61 from d3agle/master
Bugfix with Remote Desktop
2015-04-14 20:25:59 +02:00
d3agle abd31f9a94 Fixed Remote Desktop Bug
Fixed a bug where changing resolutions while Remote Desktop is running
would crash both the client + server.  This fix ensures that the Remote
Desktop features continues to run accurately after changing resolutions
on the client.
2015-04-14 04:58:48 -05:00
Justin Yanke 6af33c5d5a Merge pull request #1 from MaxXor/master
Merge with base
2015-04-13 08:35:29 -04:00
MaxXor b360e2d91f Reverted few changes
- Get selected clients after disconnectecd client is removed from the
clients list
2015-04-13 10:25:45 +02:00
d3agle 26392acb13 MainForm fixes
fixed mainform getting real selected item count on client disconnection
from server.

added threading to upload and execute form dialogresult ok
2015-04-13 03:16:45 -05:00
MaxXor 27cda8f80b Fixed Remote Desktop crash
- Fixed Remote Desktop crash when using multiple monitors with different
resolution
2015-04-13 09:16:44 +02:00
yankejustin 40b2b8db5b Rewrote a method and improved behavior
Rewrote the File Manager Form's 'lstDirectory_DoubleClick' method so it
is more clear, to prevent unnecessary strings being recreated, and
because it was making the same decision twice when it didn't need to.
Also placed the Setting Form's 'btnListen_Click' method in a try-finally
block so if anything goes wrong in the method, the state of it won't be
frozen (before, you would have to click out of the Form, discard
changes, then re-open. Perhaps it would be advisable to notify the user
of an issue with the listening if it failed...
2015-04-12 22:19:08 -04:00
yankejustin 0624500555 Terms of Use Form closes in a better way
Instead of killing the process (which will cause finally-blocks and even
finalizers to not be executed!), we close the application correctly.
2015-04-12 21:46:36 -04:00
MaxXor 95e18abf25 Fixed #54 2015-04-10 21:27:33 +02:00
MaxXor bc12b91f15 Fixed #52 2015-04-09 19:24:56 +02:00
Justin Yanke d495eddac5 Fixed a possible CrossThreadException
Fixed a potential CrossThreadException. Would have gotten an error if this method was called by a different Thread because FrmSi's 'lstSystem' would be accessed by the wrong Thread.
2015-04-09 12:46:12 -04:00
Justin Yanke 7acde73f3d Removed unnecessary null check
Removed unnecessary null check for FrmSi (already checked in the method).
2015-04-09 12:23:56 -04:00
yankejustin e720d20811 Compacted Builder method
Compacted the validation on frmBuilder's btnBuild_Click(object,
EventArgs) method. This is a slight optimization, but it does help
remove the repetitive else statements.
2015-04-07 14:07:42 -04:00
yankejustin d5cb5b9c92 Performance and clean-up for both SafeQuickLZ
Slightly improved performance for the SafeQuickLZ on the server and
client, code clean-up, and consistency improvements.
2015-04-07 13:23:09 -04:00
yankejustin 295daca123 Some code consistency improvements
Made some code more consistent to the code in the solution.
2015-04-07 12:46:14 -04:00
yankejustin 8ecd568acf Fixed the loop that attempts to forward a port
If the endpoint was null, the loop would break anyways, not allowing up
to 5 retries (only got 1 try).
2015-04-07 12:38:34 -04:00
yankejustin b927aae0f8 Make sure to dispose of old Socket
Made sure the server disposed of the Socket when Server.Listen(ushort)
is called if the Socket was created before (called Server.Listen(ushort)
previously but stopped listening).
2015-04-07 12:27:56 -04:00
MaxXor 539a9b3d5b Changed KeepAlive Interval 2015-04-06 20:49:34 +02:00
MaxXor 12a0da6288 Improved KeepAlive and Extension Methods 2015-04-06 20:33:34 +02:00
MaxXor 29a5a258ea Fixed another cross threading bug 2015-04-06 20:33:00 +02:00
MaxXor aacd1e0f33 Merge pull request #46 from Abdullah2993/master
Added new KeepAlive method
2015-04-06 19:58:09 +02:00
Abdullah Saleem 957ae2c0ef New KeepAlive Added
Previous method of keep alive removed.
2015-04-06 22:40:54 +05:00
MaxXor a2091564fd Fixed tabs 2015-04-06 19:35:48 +02:00
d3agle f624028755 Small fix for RDP
moved static field to property so command handler gets the initial -1
check starting rdp
2015-04-06 12:20:00 -05:00
Abdullah Saleem 46bd17c4fa Cross-Thread exception handled
Cross-Thread exception  on Uninstall
2015-04-06 22:12:56 +05:00
MaxXor ee19378725 Use object initializer 2015-04-06 10:46:10 +02:00
MaxXor c61de89cea Merge pull request #43 from d3agle/master
Fixed Server crash when closing the Remote Desktop form while it's still running
2015-04-06 10:38:20 +02:00
MaxXor 2ba4ed82ff Merge pull request #41 from d3agle/master
Form disposal on client disconnection
2015-04-06 10:35:26 +02:00
MaxXor bec3e7daab Fixed File Upload & Execute (#39) 2015-04-06 10:06:33 +02:00
Abdullah Saleem 860b59ac7d Configurable KeepAlive added 2015-04-05 15:41:26 +05:00
d3agle d2530396e4 Bugfix #2 with Remote Desktop
added try catch blocks due to server application crashing while closing
the remote desktop form.  If timed right, while closing the remote
desktop form, the command handler would be in the midst of accessing an
already disposed form causing server to hang.
2015-04-04 21:10:42 -05:00
d3agle 9058ec53cc Form disposal on client disconnection
Added disposal method to dispose of all userstate forms for client upon
disconnection of the client from the server
2015-04-04 16:48:52 -05:00
MaxXor 5d20aad9d6 Fixed File Download in File Manager (#36) 2015-04-04 17:22:20 +02:00
MaxXor 3bdab0b9e7 Improved Statistics 2015-04-04 17:04:53 +02:00
MaxXor b3f63d0a79 Fixed cross threading bug 2015-04-03 10:18:57 +02:00
MaxXor 720930f583 Fixed #38 2015-04-03 10:18:52 +02:00