added a module to copy the command to run a portscan for the scope, and

added the ability to add new configs to separate projects, like work vs
personal. Also added a way to switch between these configs.
This commit is contained in:
2026-08-19 16:56:27 -05:00
parent e28306d07d
commit 8ab7a2bec4
10 changed files with 759 additions and 291 deletions
@@ -0,0 +1,5 @@
name: csps
output_type: String,
new_thread: false
args: project
calls: clipboard
@@ -0,0 +1 @@
Parse the scope file in your notes and print the cobalt strike portscan command to run.
@@ -0,0 +1,22 @@
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;