This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
greyhack-public/rss.src
2022-12-29 18:06:14 -08:00

27 lines
No EOL
905 B
Text

COB=get_custom_object
root=get_shell.host_computer.File("/")
mxf=null
newFiles=[]
newFiles=newFiles+root.get_folders+root.get_files
while newFiles.len
currFile=newFiles.pull
if currFile.is_folder then newFiles=currFile.get_folders+currFile.get_files+newFiles
test=include_lib(currFile.path)
if typeof(test) == "MetaxploitLib" and not mxf then mxf=currFile.path
end while
if not mxf then exit("metaxploit not found")
mx=include_lib(mxf)
rss=include_lib("/lib/librshell.so")
if not rss then exit("no rshell server installed")
sfile=get_shell.host_computer.File(current_path+"/shell")
if not sfile then get_shell.host_computer.touch(current_path,"shell")
sfile=get_shell.host_computer.File(current_path+"/shell")
rsinfo = "num pubip locip user\n"
shells=[]
print("Waiting for connections. . .")
while shells.len == 0
shells=mx.rshell_server
if shells.len == 0 then wait(2)
end while
COB.rshells=shells