47 lines
952 B
Lua
47 lines
952 B
Lua
homePW = #envar homePW
|
|
doomKey = #envar doomKey
|
|
|
|
g = get_custom_object
|
|
|
|
doomPath = "/root/doom"
|
|
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")
|