File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,28 @@ def output_normal_likely(self):
46
46
47
47
def output_json (self , filename ):
48
48
file = file_helper (filename )
49
- list = dict ()
49
+ output = dict ()
50
+ output ['Start Time' ] = '{} {}' .format (time .strftime ("%d/%m/%Y" ), time .strftime ("%H:%M:%S" ))
51
+ output ['Target' ] = self .scanner .target
52
+ output ['Base Host' ] = self .scanner .base_host
53
+ output ['Port' ] = self .scanner .port
54
+ output ['Real Port' ] = self .scanner .real_port
55
+ output ['Ignore HTTP Codes' ] = self .scanner .ignore_http_codes
56
+ output ['Ignore Content Length' ] = self .scanner .ignore_content_length
57
+ output ['Wordlist' ] = self .scanner .wordlist
58
+ output ['Unique Depth' ] = self .scanner .unique_depth
59
+ output ['SSL' ] = self .scanner .ssl
60
+ result = dict ()
50
61
for host in self .scanner .hosts :
51
- headers = {}
62
+ headers = dict ()
52
63
for header in host .keys :
53
64
headers [header .split (':' )[0 ]] = header .split (':' )[1 ].strip ()
54
65
55
- list [host .hostname ] = {'Code' : host .response_code ,
66
+ result [host .hostname ] = {'Code' : host .response_code ,
56
67
'Hash' : host .hash ,
57
68
'Headers' : headers }
58
- file .write_file (json .dumps (list ))
69
+ output ['Result' ] = result
70
+ file .write_file (json .dumps (output ))
59
71
60
72
61
73
def output_fuzzy (self ):
You can’t perform that action at this time.
0 commit comments