/// <summary> /// Initializes a new instance of the HttpListener class. /// </summary> /// <param name="status">Possible values include: 'Uninitialized', /// 'Active', 'Stopped'</param> public HttpListener(bool useSSL, IList <string> urls, string name, string guid, string description, string bindAddress, int bindPort, IList <string> connectAddresses, int connectPort, int profileId, int listenerTypeId, ListenerStatus status, string sslCertificate = default(string), string sslCertificatePassword = default(string), string sslCertHash = default(string), int?id = default(int?), Profile profile = default(Profile), ListenerType listenerType = default(ListenerType), string covenantUrl = default(string), string covenantToken = default(string), System.DateTime?startTime = default(System.DateTime?)) { UseSSL = useSSL; SslCertificate = sslCertificate; SslCertificatePassword = sslCertificatePassword; SslCertHash = sslCertHash; Urls = urls; Id = id; Name = name; Guid = guid; Description = description; BindAddress = bindAddress; BindPort = bindPort; ConnectAddresses = connectAddresses; ConnectPort = connectPort; ProfileId = profileId; Profile = profile; ListenerTypeId = listenerTypeId; ListenerType = listenerType; Status = status; CovenantUrl = covenantUrl; CovenantToken = covenantToken; StartTime = startTime; CustomInit(); }
/// <summary> /// Initializes a new instance of the Listener class. /// </summary> /// <param name="status">Possible values include: 'Uninitialized', /// 'Active', 'Stopped'</param> public Listener(string name, string guid, string description, string bindAddress, int bindPort, string connectAddress, int profileId, int listenerTypeId, ListenerStatus status, int?id = default(int?), Profile profile = default(Profile), ListenerType listenerType = default(ListenerType), string covenantToken = default(string), System.DateTime?startTime = default(System.DateTime?)) { Id = id; Name = name; Guid = guid; Description = description; BindAddress = bindAddress; BindPort = bindPort; ConnectAddress = connectAddress; ProfileId = profileId; Profile = profile; ListenerTypeId = listenerTypeId; ListenerType = listenerType; Status = status; CovenantToken = covenantToken; StartTime = startTime; CustomInit(); }
/// <summary> /// Initializes a new instance of the BridgeListener class. /// </summary> /// <param name="status">Possible values include: 'Uninitialized', /// 'Active', 'Stopped'</param> public BridgeListener(string name, string guid, string description, string bindAddress, int bindPort, IList <string> connectAddresses, int connectPort, int profileId, int listenerTypeId, ListenerStatus status, bool?isBridgeConnected = default(bool?), string implantReadCode = default(string), string implantWriteCode = default(string), int?id = default(int?), Profile profile = default(Profile), ListenerType listenerType = default(ListenerType), string covenantToken = default(string), System.DateTime?startTime = default(System.DateTime?)) { IsBridgeConnected = isBridgeConnected; ImplantReadCode = implantReadCode; ImplantWriteCode = implantWriteCode; Id = id; Name = name; Guid = guid; Description = description; BindAddress = bindAddress; BindPort = bindPort; ConnectAddresses = connectAddresses; ConnectPort = connectPort; ProfileId = profileId; Profile = profile; ListenerTypeId = listenerTypeId; ListenerType = listenerType; Status = status; CovenantToken = covenantToken; StartTime = startTime; CustomInit(); }