File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,29 +79,29 @@ def getBanner(self):
7979 if not conf .getBanner :
8080 return
8181
82- kb .dbmsDetected = True
82+ if kb .data .banner is None :
83+ kb .dbmsDetected = True
8384
84- infoMsg = "fetching banner"
85- logger .info (infoMsg )
85+ infoMsg = "fetching banner"
86+ logger .info (infoMsg )
8687
87- if kb .data .banner is None :
8888 if conf .unionTest :
8989 conf .dumper .technic ("inband injection payload" , unionTest ())
9090
9191 query = queries [kb .dbms ].banner .query
9292 kb .data .banner = inject .getValue (query )
9393 bannerParser (kb .data .banner )
9494
95- if conf .os and conf .os == "windows" :
96- kb .bannerFp ["type" ] = set ([ "Windows" ])
95+ if conf .os and conf .os == "windows" :
96+ kb .bannerFp ["type" ] = set ([ "Windows" ])
9797
98- elif conf .os and conf .os == "linux" :
99- kb .bannerFp ["type" ] = set ([ "Linux" ])
98+ elif conf .os and conf .os == "linux" :
99+ kb .bannerFp ["type" ] = set ([ "Linux" ])
100100
101- elif conf .os :
102- kb .bannerFp ["type" ] = set ([ "%s%s" % (conf .os [0 ].upper (), conf .os [1 :]) ])
101+ elif conf .os :
102+ kb .bannerFp ["type" ] = set ([ "%s%s" % (conf .os [0 ].upper (), conf .os [1 :]) ])
103103
104- setOs ()
104+ setOs ()
105105
106106 return kb .data .banner
107107
You can’t perform that action at this time.
0 commit comments