aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-08-02 09:30:39 -0400
committerMichael <[email protected]>2017-08-02 09:30:39 -0400
commit10d2c0bbaa2b5c933a37056c784d3de84fa82eaf (patch)
treee8894d69a359721c1363e32b97d4ff855fd81ef2 /ShiftOS_TheReturn
parent52319b29eef65560a737353a71e1e4017dc87c09 (diff)
downloadshiftos_thereturn-10d2c0bbaa2b5c933a37056c784d3de84fa82eaf.tar.gz
shiftos_thereturn-10d2c0bbaa2b5c933a37056c784d3de84fa82eaf.tar.bz2
shiftos_thereturn-10d2c0bbaa2b5c933a37056c784d3de84fa82eaf.zip
sploitset ftpwn mounts ftp directory on breach
Diffstat (limited to 'ShiftOS_TheReturn')
-rw-r--r--ShiftOS_TheReturn/Hacking.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Hacking.cs b/ShiftOS_TheReturn/Hacking.cs
index 5c473df..e670756 100644
--- a/ShiftOS_TheReturn/Hacking.cs
+++ b/ShiftOS_TheReturn/Hacking.cs
@@ -81,6 +81,18 @@ namespace ShiftOS.Engine
}
}
+ public static byte[] GetLootBytes(string lootid)
+ {
+ foreach (var type in ReflectMan.Types.Where(x => x.GetInterfaces().Contains(typeof(IHackableProvider))))
+ {
+ var @interface = (IHackableProvider)Activator.CreateInstance(type, null);
+ var bytes = @interface.FindLootBytes(lootid);
+ if (bytes != null)
+ return bytes;
+ }
+ throw new NaughtyDeveloperException("Seems like the loot system's trying to work without any loot. This isn't normal.");
+ }
+
public static void InitHack(Objects.Hackable data)
{
var hsys = new HackableSystem();
@@ -212,6 +224,7 @@ namespace ShiftOS.Engine
Objects.Payload[] GetPayloads();
Objects.Port[] GetPorts();
Objects.Loot[] GetLoot();
+ byte[] FindLootBytes(string lootid);
}
public class HackableSystem