diff options
Diffstat (limited to 'ShiftOS.Objects')
| -rw-r--r-- | ShiftOS.Objects/Hacking/Exploit.cs | 30 | ||||
| -rw-r--r-- | ShiftOS.Objects/Hacking/Hackable.cs (renamed from ShiftOS.Objects/Hackable.cs) | 0 | ||||
| -rw-r--r-- | ShiftOS.Objects/Hacking/Payload.cs | 31 |
3 files changed, 61 insertions, 0 deletions
diff --git a/ShiftOS.Objects/Hacking/Exploit.cs b/ShiftOS.Objects/Hacking/Exploit.cs new file mode 100644 index 0000000..7e83c3a --- /dev/null +++ b/ShiftOS.Objects/Hacking/Exploit.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.Objects +{ + public class Exploit + { + public string FriendlyName { get; set; } + public string ExploitName { get; set; } + public SystemType EffectiveAgainst { get; set; } + public string Dependencies { get; set; } + + public string ID + { + get + { + return ExploitName.ToLower().Replace(" ", "_"); + } + } + + public override string ToString() + { + return $"{FriendlyName} ({ExploitName})"; + } + } + +} diff --git a/ShiftOS.Objects/Hackable.cs b/ShiftOS.Objects/Hacking/Hackable.cs index 4596d2d..4596d2d 100644 --- a/ShiftOS.Objects/Hackable.cs +++ b/ShiftOS.Objects/Hacking/Hackable.cs diff --git a/ShiftOS.Objects/Hacking/Payload.cs b/ShiftOS.Objects/Hacking/Payload.cs new file mode 100644 index 0000000..a3800fa --- /dev/null +++ b/ShiftOS.Objects/Hacking/Payload.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.Objects +{ + public class Payload + { + public string FriendlyName { get; set; } + public string PayloadName { get; set; } + public int EffectiveAgainstFirewall { get; set; } + public SystemType EffectiveAgainstPort { get; set; } + public string Dependencies { get; set; } + + public string ID + { + get + { + return PayloadName.ToLower().Replace(" ", "_"); + } + } + + public override string ToString() + { + return $"{FriendlyName} ({PayloadName})"; + } + } + +} |
