aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Objects
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-07-27 16:34:27 -0700
committerwilliam341 <[email protected]>2017-07-27 16:34:27 -0700
commit18079c6f43981f1bf9fc093b3c5b68873fe90348 (patch)
tree7be93f2caeaca5208a02be627cb50d36e718cad1 /ShiftOS.Objects
parent86dde20529e926ee75af2b1e3a574f6729bd8771 (diff)
downloadshiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.tar.gz
shiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.tar.bz2
shiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.zip
hacking p1
Diffstat (limited to 'ShiftOS.Objects')
-rw-r--r--ShiftOS.Objects/Hacking/Exploit.cs30
-rw-r--r--ShiftOS.Objects/Hacking/Hackable.cs (renamed from ShiftOS.Objects/Hackable.cs)0
-rw-r--r--ShiftOS.Objects/Hacking/Payload.cs31
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})";
+ }
+ }
+
+}