xModders

NetSession.src

Jan 20th, 2025 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | Gaming | 0 0
  1. NetSession = function(x,y)
  2.  
  3. if is_valid_ip(x) then
  4.  
  5. Session = {"Router":"no_service","Service":"no_service","Libs":{"Kernel":"no_lib","Meta":"no_lib"}};
  6. metaxploit = include_lib("/lib/metaxploit.so");
  7.  
  8. Session.Router = metaxploit.net_use(x);
  9. Session.Libs.Kernel = Session.Router.dump_lib;
  10.  
  11. if y != "no_port" then
  12.  
  13. Session.Service = metaxploit.net_use(x,y.to_int);
  14. Session.Libs.Meta = Session.Service.dump_lib;
  15.  
  16. else
  17.  
  18. Session.Service = "no_session";
  19.  
  20. end if
  21.  
  22. return Session;
  23.  
  24. end if
  25.  
  26. end function
Tags: Script
Advertisement
Add Comment
Please, Sign In to add comment