let ips = []; let scope_path = find_file(project.notes, "scope"); let scope_text = open_file(scope_path); for line in scope_text.split("\n"){ if line.contains("|") && !line.contains("//"){ let cols = line.split("|"); let data = cols[1]; if data.len() > 0{ for host in filter_ips(data){ ips.push(host); } } } } let target_string = ""; for ip in ips{ target_string = target_string + "," + ip; } let out_string = "portscan " + target_string + " 1-1024,1433,2222,3306,3389,5000-6000,8000,8080,8443 icmp 512"; return out_string;