-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvulnscan.src
More file actions
36 lines (29 loc) · 858 Bytes
/
vulnscan.src
File metadata and controls
36 lines (29 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
lib = params[0];
currentPath = get_shell.host_computer.current_path
// LOAD METAXPLOIT
mx = include_lib("/lib/metaxploit.so")
if not mx then
currentPath = get_shell.host_computer.current_path
mx = include_lib(currentPath + "/metaxploit.so")
end if
if not mx then
exit("Error: Can't find metaxploit.so library in the /lib path or the current folder")
end if;
if lib[0] == "/" then
libPath = lib;
else
libPath = currentPath + "/" + lib;
end if;
library = mx.load(libPath);
if not library then
exit("Error: Can't load " + lib);
end if;
print("// Scanning: " + library.lib_name + "@" + library.version + " \\");
sectors = mx.scan(library);
print("Found " + sectors.len + " vulnerable sectors.");
print("");
for sector in sectors
print("// SECTOR: " + sector + " \\");
print(mx.scan_address(library, sector));
end for
print("// SCAN COMPLETE \\");