diff --git a/myShit/betterDec.gs b/myShit/betterDec.gs new file mode 100644 index 0000000..877908e --- /dev/null +++ b/myShit/betterDec.gs @@ -0,0 +1,40 @@ +homePW = #envar homePW + +myShell = get_shell("root", homePW) +myComputer = myShell.host_computer + +crypto = include_lib("/lib/crypto.so") +if not crypto then exit("
There is no crypto.so in you /lib\n
") + +passFile = user_input("Path to encrypted file: \n") +fullString = myComputer.File(passFile).get_content +lines = fullString.split(char(10)) + + +/* TODO + Fix logic to properly display name:pass combo + I think I'm deciphering too late + I think I should decipher first, then split +*/ + +userNames = [] +hashes = [] +passes = [] + +for line in lines + line = line.trim + if line == "" then continue + parts = line.split(":") + //if parts.len < 2 then continue + userNames.push(parts[0]) + hashes.push(parts[1]) +end for + +for entry in hashes + passes.push(crypto.decipher(entry)) +end for + +for line in userNames + if not passes[indexOf(line)] then passes.indexOf(line) = "|no password found|" + print(userNames[indexOf(line)] + " has the password " + passes[indexOf(line)]) +end for \ No newline at end of file diff --git a/myShit/start.gs b/myShit/start.gs index b41462c..179fbff 100644 --- a/myShit/start.gs +++ b/myShit/start.gs @@ -1,26 +1,46 @@ homePW = #envar homePW doomKey = #envar doomKey +g = get_custom_object + doomPath = "/root/doom" myShell = get_shell("root", homePW) -if not myShell then print("Unable to get root shell\n") +/* +g.count = 0 + +while g.count < 2 + myShell.launch("/usr/bin/Terminal.exe", "doom") + print("Launched terminal #" + g.count + "\n") + g.count += 1 + wait 2 +end while +*/ + +if not myShell then + exit("Not able to get root shell...\n") +else + print("Root shell obtained") +end if i = 0 -while i < 4 - myShell.start_terminal +while (i < 4) + myShell.launch("usr/bin/Terminal.exe", "some terminal launch arg") wait 2 - i = i + 1 + i += 1 end while i = 0 -// Debug for my own curiosity somePath = launch_path -print("\n Debug log: \n Parent path: " + parent_path(somePath)) +print("\n Debug log: \n Parent path: " + parent_path(somePath) + "\n\n") -myShell.launch("/usr/bin/Chat.exe") +// uncomment for MP +//myShell.launch("/usr/bin/Chat.exe") myShell.launch("/usr/bin/AdminMonitor.exe") +wait 2 myShell.launch("/usr/bin/FileExplorer.exe") +wait 2 myShell.launch("/usr/bin/Mail.exe") +wait 2 myShell.launch("/usr/bin/Notepad.exe")