Grey Hack
Local library version?
Hi all, let's start saying that i love this game!

But is there a way (even with scripts) to see what version a lib is in a host machine?
I've tried to load library in the scripts and tried to do a typeof of that library but it gives me it's class and not any command about (eg. load_module("metaxploit.so") returns a MetaxploitLib object and there is no wiki about)

Thanks!
< >
Visualizzazione di 1-6 commenti su 6
I believe this should print the version of whatever you put in path/to/lib but I haven't tested it
metaxploit = include_lib("/lib/metaxploit.so") lib = metaxploit.load("path/to/lib.so") print(lib.version)
Just tested this. Get a type error on line 3
it is "lib_version" but not sure atm but yes, it can be done, tested on my own :D
quick and dirty code I just wrote for looking up version numbers of what's in /lib must have metaxploit.so in same path unless the code is altered.
============================================
metaxploit = include_lib(current_path + "/metaxploit.so")
// net.so
nlib = metaxploit.load("lib/net.so")
if not nlib then print ("net.so not found!")
print("net.so " + nlib.version)
// init.so
ilib = metaxploit.load("lib/init.so")
if not ilib then print ("init.so not found!")
print("init.so " + ilib.version)
// aptlib.so
aptlib = metaxploit.load("lib/aptclient.so")
if not aptlib then print ("aptlib.so not found!")
print ("aptlib.so " + aptlib.version)
// kernelmodule.so
klib = metaxploit.load("lib/kernel_module.so")
if not klib then print ("kernel_module.so not found!")
print("kernel_module.so " + klib.version)
// kernel_router.so
krlib = metaxploit.load("lib/kernel_router.so")
if not krlib then print ("kernel_router.so not found!")
print("kernel_router.so " + krlib.version)
=======================================
Messaggio originale di ςдŋςЄя:
I believe this should print the version of whatever you put in path/to/lib but I haven't tested it
metaxploit = include_lib("/lib/metaxploit.so") lib = metaxploit.load("path/to/lib.so") print(lib.version)

This is kind of weird but do you have any idea how to do the albatross achievement in 4d golf? no holes seem to allow 3 under, unless im missing obvious shortcuts
Get versions of all the local libs in /lib:

hostComputer = get_shell.host_computer
metaxploit = include_lib("/lib" + "/metaxploit.so")
if metaxploit == null then metaxploit = include_lib(current_path + "/metaxploit.so")
if not metaxploit then exit("Error. Metaxploit not found.")
libFolder = hostComputer.File("/lib")
libs = libFolder.get_files
for lib in libs
nlib = metaxploit.load(lib.path)
print(lib.name + ": " + nlib.version)
end for
< >
Visualizzazione di 1-6 commenti su 6
Per pagina: 1530 50