Commit Graph

470 Commits

Author SHA1 Message Date
MaxXor cbf162825a Updated version 2015-07-12 09:47:55 +02:00
MaxXor f63e2fe65c Updated uac-shield with transparent background 2015-07-11 19:24:01 +02:00
MaxXor c148172976 Reverted background color of Builder
- changed from White to SystemColors.Control
2015-07-11 19:17:28 +02:00
MaxXor de08893260 Set Proxy to null when sending the No-Ip DNS Update request 2015-07-11 09:35:52 +02:00
MaxXor 3e72590d23 Fixed small grammar mistake 2015-07-10 20:12:00 +02:00
MaxXor d093843cfe Corrected TabIndex in Settings Form 2015-07-10 20:10:13 +02:00
MaxXor 03a19ce8aa Improved No-Ip.com Updater
- Removed getting own WANIP before sending the No-Ip update request, it
will either way take the connecting WANIP according to
https://www.noip.com/integrate/response
2015-07-10 19:50:41 +02:00
MaxXor 9092cc513a Corrected documentation 2015-07-10 16:49:11 +02:00
MaxXor ad75e9a760 Moved ConnectedTime to Client
- Added more documentation
2015-07-10 16:45:41 +02:00
MaxXor 9993ff0f89 Added ConnectedTime property to Client's UserState
- Fixed cross threading bug on form closing
2015-07-10 16:36:34 +02:00
MaxXor deaca4af40 Fixed not counting sent bytes 2015-07-10 15:58:26 +02:00
MaxXor bca273dc5e Fixed networking code
ref #275
2015-07-10 12:45:24 +02:00
MaxXor 6e280037f1 No negative file transfer IDs 2015-07-10 12:42:05 +02:00
MaxXor 44d81ed35e Reduced block size of file transfers 2015-07-10 12:41:48 +02:00
MaxXor 9a145b602b Better handling of packets with invalid header 2015-07-09 22:39:33 +02:00
MaxXor 9722744a75 Renamed MAX_PACKET_SIZE to BUFFER_SIZE 2015-07-09 22:28:07 +02:00
DragonHunter 00d9061d03 Merge remote-tracking branch 'upstream/master' 2015-07-09 22:04:23 +02:00
DragonHunter 0e6cafdc75 Reduced header to 3 bytes & Max Payload is 16MB
Reduced the Header from 4 bytes to 3
The server or client should not be able to allocate 2GB memory from the
header, max is now 16MB
2015-07-09 22:01:39 +02:00
MaxXor 82abd35282 Added more documentation to main form.
not complete yet
2015-07-09 21:16:21 +02:00
MaxXor a3f9599630 Improved GetClient methods 2015-07-08 20:32:40 +02:00
MaxXor 06b55bd302 Added method to get all connected clients
changed some method access modifiers
2015-07-08 11:14:12 +02:00
MaxXor d785fc32a8 Fixed networking code
fixes #272
fixes #273
2015-07-08 11:13:43 +02:00
MaxXor a6ecbf55c1 Improved setting of window titles of new forms 2015-06-25 22:22:45 +02:00
MaxXor e82fd5669c Improved updating of Remote Desktop Image 2015-06-20 18:50:02 +02:00
yankejustin 615c9dbcc3 Clone Bitmap on FrmRemoteDesktop
Clone the Bitmap on the "UpdateImage" method. It should be the
responsibility of "UpdateImage" anyways because it is the method
responsible for specifying how to manage the Bitmap provided. This also
serves an issue where the call to clone the Bitmap and cast it to a
Bitmap object was no longer in a try-catch block as it used to be (and
should be once more).
2015-06-19 21:20:38 -04:00
MaxXor cf0de1597f Removed redundant setting of NoDelay option 2015-06-18 16:11:33 +02:00
MaxXor 927982d493 Updated version 2015-06-14 20:56:09 +02:00
MaxXor f4835ee68b Removed whitespace 2015-06-14 14:20:50 +02:00
MaxXor b9d11c3b24 Fixed async receive in client & server using a queue 2015-06-11 10:20:11 +02:00
MaxXor ce22e66703 Only get SystemInfo when ShowToolTip option is enabled 2015-06-11 10:19:42 +02:00
MaxXor dde4336e1c Don't handle ObjectDisposedEx. as normal Exceptions 2015-06-10 19:53:03 +02:00
MaxXor 3fc03a7788 More send & receive fixes for client & server 2015-06-10 19:33:02 +02:00
MaxXor ca2f4c550b Added lock object for free buffer stack in PooledBufferManager.cs 2015-06-10 16:31:14 +02:00
MaxXor fd221f2e42 Don't show popup when when client instantly disconnects 2015-06-10 15:38:13 +02:00
MaxXor 8df408cf4b Fixed disconnection 2015-06-10 15:31:51 +02:00
MaxXor 6d75eac831 Fixed situations which could break the server 2015-06-10 15:24:18 +02:00
MaxXor 5fb9905d05 Renamer fixes (#266) 2015-06-09 20:06:04 +02:00
MaxXor 1e0a1d8b2c Fixed #266
#209
2015-06-09 08:35:49 +02:00
MaxXor 8284da5830 Small fix 2015-06-07 16:50:37 +02:00
MaxXor 83ec8c2a87 Added improvements to client 2015-06-07 16:35:30 +02:00
MaxXor 70618e91cb Improved memory management in server
- Fixed handling packets wih payload bigger than the buffersize of the
receiving socket
- Added locks to FileSplit class
2015-06-07 16:28:33 +02:00
MaxXor c5353d2d81 Added missing return 2015-06-06 09:30:18 +02:00
MaxXor 3abc4c5f82 Improved Buffer Manager 2015-06-06 09:28:43 +02:00
MaxXor b0d68c851d Improved handling of invalid clients 2015-06-06 09:28:31 +02:00
MaxXor 3e457d8a06 Improved reusing of buffers after restarting listen 2015-06-05 23:27:59 +02:00
MaxXor 9aef2df7f7 Small fix 2015-06-05 23:12:10 +02:00
MaxXor 3bdd5aa294 Implemented pooled buffer manager to socket 2015-06-05 23:07:37 +02:00
MaxXor fcf25b76a0 Fixed #265 2015-06-05 18:40:15 +02:00
MaxXor 242ff96e7f Removed redundant variable 2015-06-04 20:09:19 +02:00
MaxXor 9085cd6cb6 Merge pull request #259 from yankejustin/ClientInputSafety
Better server validation
2015-06-03 20:05:48 +02:00
MaxXor 58b2c2d2d4 Fixed getting startup items with same name 2015-06-03 15:18:37 +02:00
yankejustin 2d083782fc Moved validation a bit higher
If the packet's "Filename" property is null or empty, we can avoid
making an unnecessary string for the downloadPath by placing the
validation above it.
2015-06-02 18:30:44 -04:00
yankejustin 81c9b238c8 MiscHandler validation
Added more restrictive validation for the "Misc" Handlers.
2015-06-02 18:21:15 -04:00
yankejustin bf5b517eca SurveillanceHandler validation
Added more restrictive validation for the "Surveillance" handlers.
2015-06-02 18:14:45 -04:00
yankejustin a4defce568 SystemHandler validation
Added more restrictive validation for the "System" handlers.
2015-06-02 18:06:16 -04:00
yankejustin 51464e6d28 Fixed possible server crash
If the client cannot give us anything, don't crash over it. :)
We can't use these entries so just leave.
2015-06-02 13:19:35 -04:00
MaxXor 836b77d13e Improved check for illegal chars in path 2015-06-01 18:50:20 +02:00
MaxXor 90f30caafb Improved Download Path
Using now "User@PC" instead of "IP".
2015-06-01 11:44:48 +02:00
Justin Yanke 2083fcbc2e Start Position Fix 2015-06-01 02:04:52 -04:00
yankejustin b9c6caa95d Multi-Cast Delegates
Removed a great deal of incredibly-repetitive code by implementing
multi-cast delegates to handle a changed setting.
2015-06-01 00:04:09 -04:00
MaxXor 42113fb1d8 Small change 2015-05-31 21:24:17 +02:00
MaxXor 0b55140bcf Fixed bug when server stops listening 2015-05-31 21:12:00 +02:00
MaxXor 51979463f5 Fixed Listview Column order (#248) 2015-05-31 20:36:40 +02:00
MaxXor f30ebef324 Fixed memory leak (#209) 2015-05-31 20:21:25 +02:00
MaxXor 3ff0b38585 Added #245
Improved client & server
closes #245
2015-05-31 19:22:00 +02:00
MaxXor 6a4125cf18 Added more documentation to Client 2015-05-30 09:23:35 +02:00
MaxXor f195e9fb51 Documentation fix 2015-05-30 08:47:27 +02:00
MaxXor 9051a9ff2b Listview flickering fix (#231) 2015-05-30 08:47:19 +02:00
yankejustin a254164424 Documented OnClientState for Server's client
Added documentation for the Server's client's OnClientState.
2015-05-29 20:06:25 -04:00
yankejustin 978b64b564 Final tweaks to the server documentation 2015-05-29 20:02:06 -04:00
yankejustin 0f281d4af3 Added and fixed some server documentation
Changed a few lines of documentation and added some more documentation
on another part.
2015-05-29 19:59:54 -04:00
yankejustin 8edeb8b968 Added more documentation for the server
Added some more documentation for the Server's server object.
2015-05-29 19:55:13 -04:00
yankejustin 4be0073f83 Added documentation for the server
Added some documentation for the Server's server object.
2015-05-29 19:03:24 -04:00
yankejustin 5450421900 Added documentation for server's client
Added some documentation for the server's client object.
2015-05-29 18:39:18 -04:00
MaxXor 971708f17b Fixed small typo 2015-05-29 23:39:22 +02:00
MaxXor 5c6f6d89d7 Added missing file 2015-05-29 23:35:11 +02:00
MaxXor 39f9618f21 Fixed cross-thread issues & added lock to Clients
ref #231
2015-05-29 23:34:57 +02:00
MaxXor 556c2c46f9 Added static modifier 2015-05-29 10:27:18 +02:00
MaxXor 7babeb4afc Limited Show MessageBox Text & Caption Length
closes #236
2015-05-29 00:27:47 +02:00
MaxXor 24673509c5 Partial fix #231 2015-05-29 00:25:40 +02:00
MaxXor 8a6709ba9f Improved client removal from listview 2015-05-28 11:01:29 +02:00
Skid 0d36c37ed8 Performance enhancement 2015-05-28 10:01:08 +09:30
MaxXor 9d29ed9803 Merged changes from master 2015-05-27 22:49:00 +02:00
MaxXor 47de4f8aa0 Small corrections 2015-05-27 22:46:07 +02:00
yankejustin d402d7833f Fixed client breaking on shell close
Fixed a situation where a break in the output-handler chain would not
correctly terminate, causing an exception to be thrown.
2015-05-27 15:37:07 -04:00
yankejustin 320172a126 Perfected handling of exiting
Perfected how handling an exit command is determined.
Also removed a command to execute an "exit" command on the client
because we call "this.Close()". On FormClosing(object,
FormClosingEventArgs), we send an "exit" command anyways. Two of them
should not be sent to close the client's shell...
2015-05-27 15:11:44 -04:00
yankejustin 39a717c626 Correctly colorize errors 2015-05-27 15:04:14 -04:00
yankejustin 007296e24c Changed how exiting is determined
Changed when to decide we should exit (using Linq).
2015-05-27 14:56:06 -04:00
yankejustin be78162f63 Changes to output handling of commands
Added an "IsError" property to the ShellCommandResponse to denote if the
response should be handled a certain way (if it is a response to a
ShellCommand error, then print it differently).
Also correctly queues up two different threads on shell initialization.
These ManualResetEvents now will signal the Shell's redirected output to
handle either the output, or the error output. Not at the same time
(will cause deadlocking).
We now append the text instead of concatenating. Not sure how much more
efficient this is, but it is certainly more readable.
2015-05-27 14:46:10 -04:00
MaxXor e363dce7ce Fixed #230 2015-05-27 20:31:59 +02:00
MaxXor 6688d917ae Trim also end of Remote Shell commands (#216) 2015-05-27 20:03:27 +02:00
MaxXor bf42e9c4f1 Trim start of Remote Shell commands (#216) 2015-05-27 19:50:27 +02:00
yankejustin 2e761af6f1 Fixed Remote Shell Flickering
Fixed screen flickering issue in the Remote Shell Form
2015-05-27 13:03:15 -04:00
d3agle 21b805518b #220 fix
Fixes disconnection/removal of clients when stopping listen server
2015-05-27 12:00:50 -05:00
Skid 902bdb5db3 Added Password Recovery
Password Recovery for Firefox (36+), Chrome, Yandex, Internet Explorer
and Opera
2015-05-27 23:57:57 +09:30
Skid 1d2b838b78 Password Recovery Server Side
Work in progress, so don't think this'll work
2015-05-27 21:00:35 +09:30
MaxXor fb2a981e8d Added #217 2015-05-27 09:26:04 +02:00
MaxXor 84fb045c55 Added disposing of NotifyIcon (#218) 2015-05-27 09:05:05 +02:00
MaxXor 896026d630 Fixed #216 2015-05-27 08:54:12 +02:00
MaxXor bceaf04811 Added Removing of Programs from Autostart 2015-05-26 23:11:16 +02:00
MaxXor ad7fd821af Merge pull request #215 from MaxXor/pr/214
UPnP fix
2015-05-26 22:13:59 +02:00
MaxXor dbd95e4398 UPnP fix 2015-05-26 22:13:11 +02:00
MaxXor bda545c614 Fixed Add to Autostart Command 2015-05-26 22:02:56 +02:00
MaxXor b3baad6d98 Fixed #212 2015-05-26 22:02:18 +02:00
d3agle 7e13fa080e small behavior fix #213 update 2015-05-26 14:55:23 -05:00
d3agle a2fb891e97 small behavior fix
only try to remove upnp settings if the server is listening, if you have this checked, closing the form will stall for a second or two even if the server is not listening
2015-05-26 14:05:10 -05:00
d3agle 94836476c9 small form edit 2015-05-26 13:18:33 -05:00
MaxXor 7752149aff Added Icon to Reverse Proxy Context Menu Item #209 2015-05-26 20:11:02 +02:00
MaxXor 3e009117af Fixed #207 2015-05-26 19:35:28 +02:00
MaxXor 1f55275c2b More settings and profile fixes
ref #197
2015-05-26 16:26:04 +02:00
MaxXor 7a1e6a82ab Fixed #197 2015-05-26 16:14:03 +02:00
MaxXor de11c7e7c4 Moved methods into ContextMenu region 2015-05-26 16:01:36 +02:00
MaxXor c9facfc295 Added #121 (Update from File)
closes #121
2015-05-26 15:55:52 +02:00
MaxXor 2e146620dd Fixed #118 2015-05-26 14:16:19 +02:00
MaxXor 043cfac6b7 Merge pull request #191 from yankejustin/Improvements
Builder Code Improvements
2015-05-25 09:11:42 +02:00
yankejustin 94e50641cb Detecting illegal characters efficiently
Instead of wasting lots of time creating a string from a char array,
creating a string from another char array, concatenating them both into
a new string, and casting the keychar to a string to see if the string
contains it, make the operation natural and very efficient by creating a
new char array that has both invalid characters and making sure the
illegal character array does not contain the element.
2015-05-24 00:38:58 -04:00
yankejustin f5d671d93a Removed some repetitive code 2015-05-24 00:27:29 -04:00
MaxXor 227cfed057 Fixed bug in Builder
Fixed prompt to save Profile not shown when changing the timeout.
2015-05-23 12:54:24 +02:00
yankejustin a1a49e9eec Increase in keylogger form constructor
Now we actually use the ListViewItem object we create on every iteration
instead of creating one and only passing the string property value. ~38%
speed increase each iteration on DEBUG and RELEASE configurations.
2015-05-23 00:13:02 -04:00
MaxXor 4a38415f98 Small version fix 2015-05-22 22:39:35 +02:00
MaxXor 6a6b253c0e Added extension methods 2015-05-22 22:12:30 +02:00
MaxXor 3886e06430 Updated references 2015-05-22 22:12:19 +02:00
MaxXor 8ec1ec1947 Changed Target Framework to 3.5 Client Profile 2015-05-22 21:09:54 +02:00
MaxXor a18e799f9a Merge pull request #162 from MaxXor/pr/161
Code Improvements
2015-05-21 20:55:15 +02:00
MaxXor 4fe601a87b Small changes to code 2015-05-21 20:35:57 +02:00
yankejustin 9e175378fc Must use static readonly instead of const
Instead of using const, we must use static readonly...
2015-05-21 12:23:54 -04:00
yankejustin 8cbab66bf8 Forgot to initialize const string array 2015-05-21 12:20:45 -04:00
yankejustin 21261270d8 Moved string array to class-level
Moved string array for file size units to a class-level const string
array for performance.
2015-05-21 12:14:41 -04:00
yankejustin 8b20dee5e1 More meaningful exceptions
FileSplit provides more meaningful exceptions.
2015-05-21 12:12:02 -04:00
MaxXor ac3718fa08 Merge pull request #160 from MaxXor/pr/159
Add support for mouse input for multiple monitors
2015-05-21 18:00:52 +02:00
MaxXor d7d9bee64e Removed condition which is always true 2015-05-21 17:41:42 +02:00
MaxXor f9b0c17850 Merge pull request #157 from yankejustin/Fix
Fixed server crash on FrmKeylogger
2015-05-21 17:38:20 +02:00
UbbeLoL 6f316655dd Add support for mouse input for multiple monitors 2015-05-21 10:32:24 +02:00
Justin Yanke 706c7e38b6 Fixed server crash on FrmKeylogger
<h1>Reproduction of the issue</h1>
- Open up a keylogger form and make sure no entries are selected.
- Invoke the "ItemActivate" method by pressing enter.
- Since no items are selected, it cannot index the 0th item of lstLogs' SelectedItems, causing an exception that is uncaught and crashes the server.
2015-05-21 00:07:58 -04:00
yankejustin d022e55cc7 Slight performance boost
Break out of the loop when a subtype's derived type is found to match.
2015-05-20 09:52:26 -04:00
MaxXor 3a80b3459c Improved code readability in Renamer 2015-05-20 09:27:11 +02:00
d3agle 4e390742a5 IDisposable TypeloadException fix
Ignore renaming types that implement interfaces.

I hope this is the correct way to do this, I couldn't find a way to find
a specific interface to exclude from obfuscation
2015-05-19 18:06:10 -05:00
DragonzMaster 88f67c717a Small Change to Reverse Proxy
Changing the way was used to calculate send/received data by reverse
proxy
-This change will view the value with decimal point (2 num) to make the
values more accurate
-Changing the func name used from "GetFileSize" to "GetDataSize" ( Found
in xServer.Core.Helper )
2015-05-19 22:17:03 +02:00
yankejustin 983068e0ec Fixed redundant type specification
Fixed redundant type specification for the rest of the packets.
2015-05-18 21:53:25 -04:00
yankejustin 3990494d47 Fixed redundant type specification
Fixed redundant type specification for the server's packets.
2015-05-18 21:01:38 -04:00
yankejustin 6c12e0b7ec Respect the packet's type
One of the overloaded Send methods for the client and the server now
accepts the generic parameter.
2015-05-18 20:43:15 -04:00
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