aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend
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.Frontend
parent86dde20529e926ee75af2b1e3a574f6729bd8771 (diff)
downloadshiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.tar.gz
shiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.tar.bz2
shiftos_thereturn-18079c6f43981f1bf9fc093b3c5b68873fe90348.zip
hacking p1
Diffstat (limited to 'ShiftOS.Frontend')
-rw-r--r--ShiftOS.Frontend/Hacking/HackableProvider.cs (renamed from ShiftOS.Frontend/HackableProvider.cs)10
-rw-r--r--ShiftOS.Frontend/Hacking/HackerTestCommands.cs (renamed from ShiftOS.Frontend/HackerTestCommands.cs)0
-rw-r--r--ShiftOS.Frontend/Properties/Resources.Designer.cs53
-rw-r--r--ShiftOS.Frontend/Resources/Exploits.txt13
-rw-r--r--ShiftOS.Frontend/Resources/Payloads.txt14
5 files changed, 79 insertions, 11 deletions
diff --git a/ShiftOS.Frontend/HackableProvider.cs b/ShiftOS.Frontend/Hacking/HackableProvider.cs
index 1c57f37..6198b0c 100644
--- a/ShiftOS.Frontend/HackableProvider.cs
+++ b/ShiftOS.Frontend/Hacking/HackableProvider.cs
@@ -16,6 +16,16 @@ namespace ShiftOS.Frontend
return JsonConvert.DeserializeObject<Hackable[]>(Properties.Resources.Hackables);
}
+ public Exploit[] GetExploits()
+ {
+ return JsonConvert.DeserializeObject<Exploit[]>(Properties.Resources.Exploits);
+ }
+
+ public Payload[] GetPayloads()
+ {
+ return JsonConvert.DeserializeObject<Payload[]>(Properties.Resources.Payloads);
+ }
+
public byte[] GetLootFromResource(string resId)
{
return new byte[] { 0xDE, 0xAD, 0xBE, 0xEF }; //nyi
diff --git a/ShiftOS.Frontend/HackerTestCommands.cs b/ShiftOS.Frontend/Hacking/HackerTestCommands.cs
index 675356a..675356a 100644
--- a/ShiftOS.Frontend/HackerTestCommands.cs
+++ b/ShiftOS.Frontend/Hacking/HackerTestCommands.cs
diff --git a/ShiftOS.Frontend/Properties/Resources.Designer.cs b/ShiftOS.Frontend/Properties/Resources.Designer.cs
index 3d40c29..e21b46e 100644
--- a/ShiftOS.Frontend/Properties/Resources.Designer.cs
+++ b/ShiftOS.Frontend/Properties/Resources.Designer.cs
@@ -22,7 +22,7 @@ namespace ShiftOS.Frontend.Properties {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
+ public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
@@ -36,7 +36,7 @@ namespace ShiftOS.Frontend.Properties {
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
+ public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ShiftOS.Frontend.Properties.Resources", typeof(Resources).Assembly);
@@ -51,7 +51,7 @@ namespace ShiftOS.Frontend.Properties {
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
+ public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@@ -63,7 +63,7 @@ namespace ShiftOS.Frontend.Properties {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
- internal static System.Drawing.Bitmap cursor_9x_pointer {
+ public static System.Drawing.Bitmap cursor_9x_pointer {
get {
object obj = ResourceManager.GetObject("cursor_9x_pointer", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@@ -71,6 +71,15 @@ namespace ShiftOS.Frontend.Properties {
}
/// <summary>
+ /// Looks up a localized string similar to .
+ /// </summary>
+ public static string Exploits {
+ get {
+ return ResourceManager.GetString("Exploits", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to /* ShiftOS hackables data file
/// *
/// * This file contains information about all hackable systems in the game&apos;s campaign.
@@ -93,7 +102,7 @@ namespace ShiftOS.Frontend.Properties {
/// }
///].
/// </summary>
- internal static string Hackables {
+ public static string Hackables {
get {
return ResourceManager.GetString("Hackables", resourceCulture);
}
@@ -102,7 +111,7 @@ namespace ShiftOS.Frontend.Properties {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
- internal static System.Drawing.Bitmap justthes {
+ public static System.Drawing.Bitmap justthes {
get {
object obj = ResourceManager.GetObject("justthes", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@@ -114,16 +123,38 @@ namespace ShiftOS.Frontend.Properties {
///
///[].
/// </summary>
- internal static string LootInfo {
+ public static string LootInfo {
get {
return ResourceManager.GetString("LootInfo", resourceCulture);
}
}
/// <summary>
+ /// Looks up a localized string similar to /* ShiftOS Payloads data file
+ /// *
+ /// * This file contains information about all payloads in the game&apos;s campaign.
+ /// *
+ /// */
+ ///
+ ///[
+ /// {
+ /// FriendlyName: &quot;FTP Exploit&quot;,
+ /// PayloadName: &quot;ftpull&quot;
+ /// EffectiveAgainstFirewall: 1,
+ /// EffectiveAgainstPort: &quot;FileServer&quot;,
+ /// }
+ ///].
+ /// </summary>
+ public static string Payloads {
+ get {
+ return ResourceManager.GetString("Payloads", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to [].
/// </summary>
- internal static string Shiftorium {
+ public static string Shiftorium {
get {
return ResourceManager.GetString("Shiftorium", resourceCulture);
}
@@ -140,7 +171,7 @@ namespace ShiftOS.Frontend.Properties {
///
///Commands können mit argumenten versehen werden, indem du ein key-value Paar in einem {} Block hinter dem command angibst. Zum Be [rest of string was truncated]&quot;;.
/// </summary>
- internal static string strings_de {
+ public static string strings_de {
get {
return ResourceManager.GetString("strings_de", resourceCulture);
}
@@ -165,7 +196,7 @@ namespace ShiftOS.Frontend.Properties {
/// &quot;{GEN_PASSWORD}&quot;: &quot;Password&quot;,
/// &quot;{GEN_LPROMPT [rest of string was truncated]&quot;;.
/// </summary>
- internal static string strings_en {
+ public static string strings_en {
get {
return ResourceManager.GetString("strings_en", resourceCulture);
}
@@ -189,7 +220,7 @@ namespace ShiftOS.Frontend.Properties {
/// &quot;{GEN_SYSTEMNAME}&quot;: &quot;Nom de système&quot;,
/// &quot;{GEN_PASSWORD}&quot;: &quot;Mot de [rest of string was truncated]&quot;;.
/// </summary>
- internal static string strings_fr {
+ public static string strings_fr {
get {
return ResourceManager.GetString("strings_fr", resourceCulture);
}
diff --git a/ShiftOS.Frontend/Resources/Exploits.txt b/ShiftOS.Frontend/Resources/Exploits.txt
new file mode 100644
index 0000000..0e0dd64
--- /dev/null
+++ b/ShiftOS.Frontend/Resources/Exploits.txt
@@ -0,0 +1,13 @@
+/* ShiftOS Exploits data file
+ *
+ * This file contains information about all exploits in the game's campaign.
+ *
+ */
+
+[
+ {
+ FriendlyName: "FTP Exploit",
+ ExploitName: "ftpwn"
+ EffectiveAgainstPort: "FileServer",
+ }
+] \ No newline at end of file
diff --git a/ShiftOS.Frontend/Resources/Payloads.txt b/ShiftOS.Frontend/Resources/Payloads.txt
new file mode 100644
index 0000000..926a23f
--- /dev/null
+++ b/ShiftOS.Frontend/Resources/Payloads.txt
@@ -0,0 +1,14 @@
+/* ShiftOS Payloads data file
+ *
+ * This file contains information about all payloads in the game's campaign.
+ *
+ */
+
+[
+ {
+ FriendlyName: "FTP Exploit",
+ PayloadName: "ftpull"
+ EffectiveAgainstFirewall: 1,
+ EffectiveAgainstPort: "FileServer",
+ }
+] \ No newline at end of file