optimised code and modified for MP use
This commit is contained in:
@@ -1,46 +1,25 @@
|
|||||||
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("root", homePW)
|
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
|
if not myShell then
|
||||||
exit("<color=red><b>Not able to get root shell...\n</b></color>")
|
exit("<color=red><b>Not able to get root shell...\n</b></color>")
|
||||||
else
|
else
|
||||||
print("<color=green><b>Root shell obtained</b></color>")
|
print("<color=green><b>Root shell obtained</b></color>")
|
||||||
end if
|
end if
|
||||||
|
|
||||||
i = 0
|
filePath = "usr/bin/"
|
||||||
while (i < 4)
|
extension = ".exe"
|
||||||
myShell.launch("usr/bin/Terminal.exe", "some terminal launch arg")
|
|
||||||
wait 2
|
|
||||||
i += 1
|
|
||||||
end while
|
|
||||||
i = 0
|
|
||||||
|
|
||||||
somePath = launch_path
|
launchSequence = ["Terminal", "Terminal", "Terminal", "Terminal", "AdminMonitor", "FileExplorer", "Mail", "Notepad", "Chat"]
|
||||||
print("\n<b> Debug log: <b>\n Parent path: " + parent_path(somePath) + "\n\n")
|
argSequence = ["", "doom", "doom", "doom", "", "", "", "", ""]
|
||||||
|
|
||||||
|
if launchSequence.len != argSequence.len then exit(user_input("<center><b><color=red>Launch and args arent the same length...\n</color>Press enter to exit...</b></center>"))
|
||||||
|
|
||||||
// uncomment for MP
|
for lines in launchSequence
|
||||||
//myShell.launch("/usr/bin/Chat.exe")
|
myShell.launch(filePath + launchSequence[line] + extension, argSequence[line])
|
||||||
myShell.launch("/usr/bin/AdminMonitor.exe")
|
|
||||||
wait 2
|
wait 2
|
||||||
myShell.launch("/usr/bin/FileExplorer.exe")
|
end for
|
||||||
wait 2
|
exit()
|
||||||
myShell.launch("/usr/bin/Mail.exe")
|
|
||||||
wait 2
|
|
||||||
myShell.launch("/usr/bin/Notepad.exe")
|
|
||||||
Reference in New Issue
Block a user