The unified diff between revisions [e169911e..] and [51afdf76..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "plugins/postgresql.py"
# from [17398831d14a40f40eff73a7ce65cb9c5921e24f]
# to [73a8e9961aa44a965ace8280f8c859a34dc5ce53]
#
# patch "plugins/snmp.py"
# from [647555be4841b1d47649502a03825fb7eddaba3c]
# to [02dd8e65909008be41ca6c632d1826f46414c15f]
#
# patch "plugins/textoutput.py"
# from [d7166ad950f5f8ec8fbf79d5c7847c3bde00836b]
# to [804202941057db950659d159ccaaf71459c8c1fc]
#
# patch "scan.py"
# from [85bb05ed536ffc795a58d7bad3821cb1b92189a6]
# to [4b763dedd86d4f4544589f700e19b6ad82b75711]
#
============================================================
--- plugins/postgresql.py 17398831d14a40f40eff73a7ce65cb9c5921e24f
+++ plugins/postgresql.py 73a8e9961aa44a965ace8280f8c859a34dc5ce53
@@ -22,12 +22,10 @@ def initialise(library):
def initialise(library):
global cnx
cnx = libpq.PQconnectdb(library.config.connect_str)
-# cnx.query("BEGIN")
def finalise(library):
return
-# cnx.query("COMMIT")
-
+
def write_results(library, host, results):
lock.acquire()
for result in results:
============================================================
--- plugins/snmp.py 647555be4841b1d47649502a03825fb7eddaba3c
+++ plugins/snmp.py 02dd8e65909008be41ca6c632d1826f46414c15f
@@ -42,7 +42,6 @@ def host_callback(library, host, tcp_por
sysDescrs.append(value)
response.short_mesg = "SNMP access allowed via community '%s' (sysDescr=%s)" % (community, ','.join(sysDescrs))
response.udp_ports = udp_ports
- response.long_mesg = result
rv.append(response)
return rv
============================================================
--- plugins/textoutput.py d7166ad950f5f8ec8fbf79d5c7847c3bde00836b
+++ plugins/textoutput.py 804202941057db950659d159ccaaf71459c8c1fc
@@ -16,10 +16,9 @@ def initialise(library):
error_fd = None
def initialise(library):
- global result_fd
+ global result_fd, error_fd
result_fd = open(library.config.result_log, 'w')
- global error_fd
- error_fd = open(library.config.result_log, 'w')
+ error_fd = open(library.config.error_log, 'w')
def finalise(library):
result_fd.close()
============================================================
--- scan.py 85bb05ed536ffc795a58d7bad3821cb1b92189a6
+++ scan.py 4b763dedd86d4f4544589f700e19b6ad82b75711
@@ -164,7 +164,7 @@ class Scanner:
def notify(self, str):
print "%s" % (str)
def scan(self):
- nmap_command = self.config.nmap_command
+ nmap_command = self.config.nmap_command + ' ' + self.config.nmap_options
ports = []
tcp_ports, udp_ports = self.library.get_ports()
if len(tcp_ports): ports.append("T:" + ','.join([str(t) for t in tcp_ports]))