Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NetSession = function(x,y)
- if is_valid_ip(x) then
- Session = {"Router":"no_service","Service":"no_service","Libs":{"Kernel":"no_lib","Meta":"no_lib"}};
- metaxploit = include_lib("/lib/metaxploit.so");
- Session.Router = metaxploit.net_use(x);
- Session.Libs.Kernel = Session.Router.dump_lib;
- if y != "no_port" then
- Session.Service = metaxploit.net_use(x,y.to_int);
- Session.Libs.Meta = Session.Service.dump_lib;
- else
- Session.Service = "no_session";
- end if
- return Session;
- end if
- end function
Advertisement
Add Comment
Please, Sign In to add comment