added the ability to add new configs to separate projects, like work vs personal. Also added a way to switch between these configs.
23 lines
610 B
Plaintext
23 lines
610 B
Plaintext
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;
|