summary["english"] = "Gets the list of remote shares"; summary["francais"] = "Obtention de la liste des shares distantes"; script_summary(english:summary["english"], francais:summary["francais"]);
# # Set up our session # r = smb_session_setup(soc:soc, login:login, password:pass, domain:domain, prot:prot); if(!r){ close(soc); return(FALSE); } # and extract our uid UID = session_extract_uid(reply:r);
UID_hi = UID/256; UID_low = UID%256;
# # Connect to the remote IPC and extract the TID # we are attributed # r = smb_tconx(soc:soc, name:name, uid:UID, share:"IPC$"); # and extract our tree id TID = tconx_extract_tid(reply:r);