You've already forked greyhack
fixed meta
This commit is contained in:
59
meta.src
59
meta.src
@@ -1,33 +1,46 @@
|
|||||||
cp = get_shell.host_computer
|
cp = get_shell.host_computer
|
||||||
home = "/home/" + active_user
|
home = "/home/" + active_user
|
||||||
|
|
||||||
// decipher_bin = cp.File(home + "/decipher")
|
decipher_bin = cp.File(home + "/decipher")
|
||||||
// if not decipher_bin then exit("Missing decipher")
|
if not decipher_bin then
|
||||||
// decipher_bin.move("/bin", "decipher")
|
print "Missing decipher"
|
||||||
// decipher_bin = cp.File("/bin/decipher")
|
else
|
||||||
// if not decipher_bin then exit("Failed to install decipher")
|
decipher_bin.move "/bin", "decipher"
|
||||||
// decipher_bin.set_group("root")
|
decipher_bin = cp.File("/bin/decipher")
|
||||||
// decipher_bin.set_owner("root")
|
if not decipher_bin then print("Failed to install decipher")
|
||||||
// decipher_bin.chmod("u+rwx,g+rx,o+rx")
|
decipher_bin.set_group "root"
|
||||||
|
decipher_bin.set_owner "root"
|
||||||
|
decipher_bin.chmod "u+rwx,g+rx,o+rx"
|
||||||
|
end if
|
||||||
|
|
||||||
scanrouter_bin = cp.File(home + "/scanrouter")
|
scanrouter_bin = cp.File(home + "/scanrouter")
|
||||||
if not scanrouter_bin then exit("Missing scanrouter")
|
if not scanrouter_bin then
|
||||||
scanrouter_bin.move("/bin", "scanrouter")
|
print "Missing scanrouter"
|
||||||
scanrouter_bin = cp.File("/bin/scanrouter")
|
else
|
||||||
if not scanrouter_bin then exit("Failed to install scanrouter")
|
scanrouter_bin.move "/bin", "scanrouter"
|
||||||
scanrouter_bin.set_group("root")
|
scanrouter_bin = cp.File("/bin/scanrouter")
|
||||||
scanrouter_bin.set_owner("root")
|
if not scanrouter_bin then print("Failed to install scanrouter")
|
||||||
scanrouter_bin.chmod("u+rwx,g+rx,o+rx")
|
scanrouter_bin.set_group "root"
|
||||||
|
scanrouter_bin.set_owner "root"
|
||||||
|
scanrouter_bin.chmod "u+rwx,g+rx,o+rx"
|
||||||
|
end if
|
||||||
|
|
||||||
metaxploit_lib = cp.File(home + "/metaxploit.so")
|
metaxploit_lib = cp.File(home + "/metaxploit.so")
|
||||||
if not metaxploit_lib then exit("Missing metaxploit.so")
|
if not metaxploit_lib then
|
||||||
metaxploit_lib.copy(home + "/guest", "metaxploit.so")
|
print "Missing metaxploit.so"
|
||||||
metaxploit_lib.move("/lib", "metaxploit.so")
|
else
|
||||||
metaxploit_lib = cp.File("/lib/metaxploit.so")
|
metaxploit_lib.copy home + "/guest", "metaxploit.so"
|
||||||
if not metaxploit_lib then exit("Failed to install metaxploit.so")
|
metaxploit_guest = cp.File(home + "/guest/metaxploit.so")
|
||||||
metaxploit_lib.set_group("root")
|
metaxploit_guest.set_group "guest"
|
||||||
metaxploit_lib.set_owner("root")
|
metaxploit_guest.set_owner "guest"
|
||||||
metaxploit_lib.chmod("u+rwx,g+r,o+r")
|
metaxploit_guest.chmod "u+rwx,g+rx,o+rx"
|
||||||
|
metaxploit_lib.move "/lib", "metaxploit.so"
|
||||||
|
metaxploit_lib = cp.File("/lib/metaxploit.so")
|
||||||
|
if not metaxploit_lib then print("Failed to install metaxploit.so")
|
||||||
|
metaxploit_lib.set_group "root"
|
||||||
|
metaxploit_lib.set_owner "root"
|
||||||
|
metaxploit_lib.chmod "u+rwx,g+r,o+r"
|
||||||
|
end if
|
||||||
|
|
||||||
meta_source = cp.File(home + "/meta.src")
|
meta_source = cp.File(home + "/meta.src")
|
||||||
if meta_source then meta_source.delete
|
if meta_source then meta_source.delete
|
||||||
|
|||||||
Reference in New Issue
Block a user