Mergded database function. Scanner now function. nmap added to util. Commands.src created.

This commit is contained in:
2025-02-21 19:02:58 +01:00
parent 5147628ecd
commit 13299b04bb
9 changed files with 146 additions and 17 deletions

View File

@@ -0,0 +1,33 @@
import_code("/dev/scanner/libbindb.src")
import_code("/dev/scanner/database.src")
myDB = database()
export = "/database/export"
computer = get_shell.host_computer
file = computer.File(export + "/export.txt")
if(file) then file.delete
kernel = myDB.fetch("kernel_router.so")
ssh = myDB.fetch("libssh.so")
ftp = myDB.fetch("libftp.so")
sql = myDB.fetch("libsql.so")
smtp = myDB.fetch("libsmtp.so")
http = myDB.fetch("libhttp.so")
cam = myDB.fetch("libcam.so")
repo = myDB.fetch("librepository.so")
touch(computer,export,"export.txt")
file = computer.File(export + "/export.txt")
file.set_content(file.get_content() + "kernel: " + kernel + char(10))
file.set_content(file.get_content() + "ssh: " + ssh + char(10))
file.set_content(file.get_content() + "ftp: " + ftp + char(10))
file.set_content(file.get_content() + "sql: " + sql + char(10))
file.set_content(file.get_content() + "smtp: " + smtp + char(10))
file.set_content(file.get_content() + "http: " + http + char(10))
file.set_content(file.get_content() + "cam: " + cam + char(10))
file.set_content(file.get_content() + "repo: " + repo + char(10))