From 10d2c0bbaa2b5c933a37056c784d3de84fa82eaf Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 2 Aug 2017 09:30:39 -0400 Subject: sploitset ftpwn mounts ftp directory on breach --- ShiftOS.Frontend/Apps/FileSkimmer.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ShiftOS.Frontend/Apps') diff --git a/ShiftOS.Frontend/Apps/FileSkimmer.cs b/ShiftOS.Frontend/Apps/FileSkimmer.cs index c4dbb09..58a9908 100644 --- a/ShiftOS.Frontend/Apps/FileSkimmer.cs +++ b/ShiftOS.Frontend/Apps/FileSkimmer.cs @@ -21,6 +21,27 @@ namespace ShiftOS.Frontend.Apps public void OnLoad() { + if(Hacking.CurrentHackable != null) + { + if (Hacking.CurrentHackable.VectorsUnlocked.Contains(Objects.SystemType.FileServer)) + { + if(Mounts.Count > 2) + { + Mounts.RemoveAt(2); + } + var dir = new Objects.ShiftFS.Directory(); + dir.Name = $"{Hacking.CurrentHackable.Data.SystemName} (ftp)"; + Mounts.Add(dir); + foreach (var loot in Hacking.CurrentHackable.ServerFTPLoot) + { + if(!FileExists("2:/" + loot.LootName)) + { + var bytes = Hacking.GetLootBytes(loot.PointTo); + } + } + } + } + Width = 720; Height = 480; _fList = new GUI.ListBox(); -- cgit v1.2.3