added a new module and the ability to specify a config file if you want

to.
This commit is contained in:
2026-08-12 17:05:35 -05:00
parent 4ce461025c
commit 7b1f9f9d4e
10 changed files with 208 additions and 33 deletions
+1
View File
@@ -2,3 +2,4 @@ name: info
output_type: String,
new_thread: false
args: config_file,config,projects
calls: none
@@ -0,0 +1,5 @@
name: print_host_discovery
output_type: String,
new_thread: false
args: project
calls: none
@@ -0,0 +1 @@
parse the scope file in your notes and save the host discovery targets to a file then print the cmd one-liner to perform a simple ping sweep scan.
@@ -0,0 +1,28 @@
let ips = [];
let scope_path = find_scope_file(project.notes);
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 expand_target(data){
ips.push(host);
}
}
}
}
let output = project.files.display + "/host_discovery_targets.txt";
let ip_string = "";
for ip in ips{
ip_string = ip + "\n" + ip_string;
}
if write_file(output, ip_string){
let out_string = "Upload " + output + " to the target host then run the following command:\nfor /f %i in (host_discovery_targets.txt) do @ping -n 1 -w 1000 %i | find \"TTL=\" > nul && echo %i>>alive.txt";
return out_string;
}
else{
return "Error writing host_target file!";
}