Class Hit
Represents the outcome of a successful check, used as Data Type in a Database.
Inheritance
System.Object
Hit
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.Models
Assembly: RuriLib.dll
Syntax
public class Hit
Constructors
| Improve this Doc View SourceHit()
Needed for NoSQL deserialization.
Declaration
public Hit()
Hit(String, VariableList, String, String, String, String)
Creates a Hit given its details.
Declaration
public Hit(string data, VariableList capturedData, string proxy, string type, string configName, string wordlistName)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The data line used |
VariableList | capturedData | The VariableList of all captured data |
System.String | proxy | The proxy used |
System.String | type | The type of the Hit |
System.String | configName | The Config's name |
System.String | wordlistName | The Wordlist's name |
Properties
| Improve this Doc View SourceCapturedData
The list of all variables marked as Capture.
Declaration
public VariableList CapturedData { get; set; }
Property Value
Type | Description |
---|---|
VariableList |
CapturedString
The list of all variables marked as Capture as a chained string.
Declaration
[JsonIgnore]
public string CapturedString { get; }
Property Value
Type | Description |
---|---|
System.String |
ConfigName
The name of the Config that was used.
Declaration
public string ConfigName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Data
The data line that was used.
Declaration
public string Data { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Date
The timestamp of when the Hit was found.
Declaration
public DateTime Date { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Id
Needed for NoSQL storage.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Proxy
The proxy that was used.
Declaration
public string Proxy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of Hit.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
WordlistName
The name of the Wordlist that was used.
Declaration
public string WordlistName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToFormattedString(String)
Outputs the Hit details in a given format.
Declaration
public string ToFormattedString(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format in which variables should be replaced |
Returns
Type | Description |
---|---|
System.String | The formatted string with all variables replaced |