learning - slowly, but learning

This commit is contained in:
Chris Sanden
2026-04-29 04:17:22 +02:00
parent 371599919e
commit e35eaa3ad2
2 changed files with 67 additions and 7 deletions

40
myShit/betterDec.gs Normal file
View 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

View File

@@ -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("<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.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<b> Debug log: <b>\n Parent path: " + parent_path(somePath))
print("\n<b> Debug log: <b>\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")