Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 003d21e

Browse files
committed
Minor style update (capitalization of leftover class names)
1 parent bb397f3 commit 003d21e

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/parse/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from lib.core.data import paths
1616
from lib.core.threads import getCurrentThreadData
1717

18-
class htmlHandler(ContentHandler):
18+
class HTMLHandler(ContentHandler):
1919
"""
2020
This class defines methods to parse the input HTML page to
2121
fingerprint the back-end database management system
@@ -50,7 +50,7 @@ def htmlParser(page):
5050

5151
xmlfile = paths.ERRORS_XML
5252
checkFile(xmlfile)
53-
handler = htmlHandler(page)
53+
handler = HTMLHandler(page)
5454

5555
parseXmlFile(xmlfile, handler)
5656

lib/takeover/abstraction.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
from lib.request import inject
2121
from lib.takeover.udf import UDF
2222
from lib.takeover.web import Web
23-
from lib.takeover.xp_cmdshell import xp_cmdshell
23+
from lib.takeover.xp_cmdshell import Xp_cmdshell
2424

2525

26-
class Abstraction(Web, UDF, xp_cmdshell):
26+
class Abstraction(Web, UDF, Xp_cmdshell):
2727
"""
2828
This class defines an abstraction layer for OS takeover functionalities
29-
to UDF / xp_cmdshell objects
29+
to UDF / Xp_cmdshell objects
3030
"""
3131

3232
def __init__(self):
@@ -35,7 +35,7 @@ def __init__(self):
3535

3636
UDF.__init__(self)
3737
Web.__init__(self)
38-
xp_cmdshell.__init__(self)
38+
Xp_cmdshell.__init__(self)
3939

4040
def execCmd(self, cmd, silent=False):
4141
if self.webBackdoorUrl and not isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED):

lib/takeover/xp_cmdshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from lib.core.threads import getCurrentThreadData
3333
from lib.request import inject
3434

35-
class xp_cmdshell:
35+
class Xp_cmdshell:
3636
"""
3737
This class defines methods to deal with Microsoft SQL Server
3838
xp_cmdshell extended procedure for plugins.

0 commit comments

Comments
 (0)