clean up
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
// import database lib
|
|
||||||
import_code("/scanner/libbindb.src")
|
|
||||||
|
|
||||||
// connect to database
|
// connect to database
|
||||||
myDB = BinDB.connect("vuln", "Fizeta7-Nyzi0=Sinuvi5-Golepa4", ["kernel_router.so", "libssh.so", "libftp.so","libsql.so","libsmtp.so","libhttp.so","libcam.so","librepository.so"], "/database")
|
database = function()
|
||||||
|
myDB = BinDB.connect("vuln", "Fizeta7-Nyzi0=Sinuvi5-Golepa4", ["kernel_router.so", "libssh.so", "libftp.so","libsql.so","libsmtp.so","libhttp.so","libcam.so","librepository.so"], "/database")
|
||||||
|
end function
|
||||||
|
|
||||||
// insert exploit with check if it already exists.
|
// insert exploit with check if it already exists.
|
||||||
// TODO: Add option to update missing data (requirments)
|
// TODO: Add option to update missing data (requirments)
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
// name import Database/functions
|
// name import Database/functions
|
||||||
import_code("/root/myprogram")
|
import_code("/dev/scanner/libbindb.src")
|
||||||
|
import_code("/dev/scanner/database.src")
|
||||||
|
|
||||||
|
myDB = database()
|
||||||
|
|
||||||
if params.len == 0 then exit("<b>Usage: </b>scanner [IP/WEB_Address]")
|
if params.len == 0 then exit("<b>Usage: </b>scanner [IP/WEB_Address]")
|
||||||
|
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
|
//comment out if using a stand alone tool
|
||||||
nmap = function(target_ip)
|
nmap = function(target_ip)
|
||||||
|
|
||||||
|
//uncomment is not using as import.
|
||||||
|
//if params.len != 1 or params[0] == "-h" or params[0] == "--help" then exit("<b>Usage: "+program_path.split("/")[-1]+" [ip_address]</b>")
|
||||||
|
|
||||||
target_ip = params[0]
|
target_ip = params[0]
|
||||||
if not is_valid_ip(target_ip) then exit(target_ip + " is not a valid ip")
|
if not is_valid_ip(target_ip) then exit(target_ip + " is not a valid ip")
|
||||||
|
|
||||||
@@ -24,4 +28,5 @@ nmap = function(target_ip)
|
|||||||
|
|
||||||
return router_data
|
return router_data
|
||||||
|
|
||||||
|
//comment out if using a stand alone tool
|
||||||
end function
|
end function
|
||||||
Reference in New Issue
Block a user