Compare commits
2 Commits
44b1657542
...
e35eaa3ad2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e35eaa3ad2 | ||
|
|
371599919e |
40
myShit/betterDec.gs
Normal file
40
myShit/betterDec.gs
Normal file
@@ -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("<center><color=red>There is no crypto.so in you /lib\n</color></center>")
|
||||||
|
|
||||||
|
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
|
||||||
@@ -1,5 +1,46 @@
|
|||||||
homePW = #envar homePW
|
homePW = #envar homePW
|
||||||
doomKey = #envar doomKey
|
doomKey = #envar doomKey
|
||||||
|
|
||||||
|
g = get_custom_object
|
||||||
|
|
||||||
doomPath = "/root/doom"
|
doomPath = "/root/doom"
|
||||||
myShell = get_shell
|
myShell = get_shell("root", homePW)
|
||||||
|
|
||||||
|
/*
|
||||||
|
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("<color=red><b>Not able to get root shell...\n</b></color>")
|
||||||
|
else
|
||||||
|
print("<color=green><b>Root shell obtained</b></color>")
|
||||||
|
end if
|
||||||
|
|
||||||
|
i = 0
|
||||||
|
while (i < 4)
|
||||||
|
myShell.launch("usr/bin/Terminal.exe", "some terminal launch arg")
|
||||||
|
wait 2
|
||||||
|
i += 1
|
||||||
|
end while
|
||||||
|
i = 0
|
||||||
|
|
||||||
|
somePath = launch_path
|
||||||
|
print("\n<b> Debug log: <b>\n Parent path: " + parent_path(somePath) + "\n\n")
|
||||||
|
|
||||||
|
|
||||||
|
// 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")
|
||||||
|
|||||||
Reference in New Issue
Block a user