MCPcopy
hub / github.com/jaykali/hackerpro / getServerBanner

Method getServerBanner

hackerpro.py:1294–1306  ·  view source on GitHub ↗

simply gets the server banner the attacker may benefit from it like getting the server side software

(self)

Source from the content-addressed store, hash-verified

1292 pass
1293
1294 def getServerBanner(self):
1295 """
1296 simply gets the server banner
1297 the attacker may benefit from it
1298 like getting the server side software
1299 """
1300 clearScr()
1301 try:
1302 s = 'http://' + self.serverip
1303 httpresponse = urllib.urlopen(s)
1304 print ' [*] Server header -> ', httpresponse.headers.getheader('server')
1305 except:
1306 pass
1307
1308 def grabSqli(self):
1309 """

Callers 1

__init__Method · 0.95

Calls 1

clearScrFunction · 0.85

Tested by

no test coverage detected