7FO2D5SSE3BHZFJU3PU2PEOIMDS6HSUVYAPVZQ5QPCPA32DF56XQC void_open_ports_try(ns, string_server_unrooted);
for (let integer_index_exploit = 0;integer_index_exploit < array_exploits_length;++integer_index_exploit) {try {array_exploits[integer_index_exploit](string_server_unrooted);} catch (error) {ns.print(JSON.stringify(error));}}
}};// functionsconst array_get_exploits = function (ns) {return [ns.brutessh,ns.ftpcrack,ns.relaysmtp,ns.httpworm,ns.sqlinject];};// tries to open ports of serverconst void_open_ports_try = function (ns, string_server_target) {constarray_exploits = array_get_exploits(ns),array_exploits_length = array_exploits.length;for (let integer_index_exploit = 0;integer_index_exploit < array_exploits_length;++integer_index_exploit) {try {array_exploits[integer_index_exploit](string_server_target);} catch (error) {ns.print(JSON.stringify(error));}