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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#!/usr/bin/python
"""
Inguma Penetration Testing Toolkit
Copyright (c) 2006, 2007 Joxean Koret, joxeankoret [at] yahoo.es
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"""
"""
NOTE: Should be rewritten from scratch!!!
"""
import sys
import pprint
baseVars = ["target", "otherTargets", "services", "port", "covert",
"timeout", "waittime", "wizard", "user", "password"]
def generateReport(data):
if data.has_key("hosts"):
for host in data["hosts"]:
title = "Report for host %s" % host
print title
print "-"*len(title)
print
for x in data:
if x.startswith(host + "_"):
field = str(x[len(host)+1:]).upper()
if type(data[x][0]) is dict:
print str(field) + ":"
for y in data[x][0]:
print "\t", str(y).upper() +':', data[x][0][y]
else:
print field + ':', data[x]
print
|