mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-02-13 08:56:35 +00:00
Introducing 'new style classes' (idea from Pull request #284)
This commit is contained in:
@@ -25,7 +25,7 @@ from lib.request.connect import Connect as Request
|
||||
from thirdparty.beautifulsoup.beautifulsoup import BeautifulSoup
|
||||
from thirdparty.oset.pyoset import oset
|
||||
|
||||
class Crawler:
|
||||
class Crawler(object):
|
||||
"""
|
||||
This class defines methods used to perform crawling (command
|
||||
line option '--crawl'
|
||||
|
||||
@@ -5,7 +5,7 @@ Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
class _Getch:
|
||||
class _Getch(object):
|
||||
"""
|
||||
Gets a single character from standard input. Does not echo to
|
||||
the screen (reference: http://code.activestate.com/recipes/134892/)
|
||||
@@ -22,7 +22,7 @@ class _Getch:
|
||||
def __call__(self): return self.impl()
|
||||
|
||||
|
||||
class _GetchUnix:
|
||||
class _GetchUnix(object):
|
||||
def __init__(self):
|
||||
import tty
|
||||
|
||||
@@ -38,7 +38,7 @@ class _GetchUnix:
|
||||
return ch
|
||||
|
||||
|
||||
class _GetchWindows:
|
||||
class _GetchWindows(object):
|
||||
def __init__(self):
|
||||
import msvcrt
|
||||
|
||||
@@ -47,7 +47,7 @@ class _GetchWindows:
|
||||
return msvcrt.getch()
|
||||
|
||||
|
||||
class _GetchMacCarbon:
|
||||
class _GetchMacCarbon(object):
|
||||
"""
|
||||
A function which returns the current ASCII key that is down;
|
||||
if no ASCII key is down, the null string is returned. The
|
||||
|
||||
@@ -26,7 +26,7 @@ from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.settings import URI_INJECTABLE_REGEX
|
||||
from lib.request.basic import decodePage
|
||||
|
||||
class Google:
|
||||
class Google(object):
|
||||
"""
|
||||
This class defines methods used to perform Google dorking (command
|
||||
line option '-g <google dork>'
|
||||
|
||||
Reference in New Issue
Block a user