From 7effd0c301821b7ad7961c42bfc723a765acd441 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 25 Oct 2010 22:54:56 +0000 Subject: [PATCH] Cosmetics --- lib/core/common.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index ff13c1aa9..811cdb054 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -641,8 +641,8 @@ def setPaths(): paths.SQLMAP_CONFIG = os.path.join(paths.SQLMAP_ROOT_PATH, "sqlmap-%s.conf" % randomStr()) paths.COMMON_OUTPUTS = os.path.join(paths.SQLMAP_TXT_PATH, 'common-outputs.txt') paths.COMMON_TABLES = os.path.join(paths.SQLMAP_TXT_PATH, "common-tables.txt") - paths.SQL_KEYWORDS = os.path.join(paths.SQLMAP_TXT_PATH, "keywords.txt") - paths.PHPIDS_RULES_XML = os.path.join(paths.SQLMAP_XML_PATH, "phpids_rules.xml") + paths.SQL_KEYWORDS = os.path.join(paths.SQLMAP_TXT_PATH, "keywords.txt") + paths.PHPIDS_RULES_XML = os.path.join(paths.SQLMAP_XML_PATH, "phpids_rules.xml") paths.ERRORS_XML = os.path.join(paths.SQLMAP_XML_PATH, "errors.xml") paths.INJECTIONS_XML = os.path.join(paths.SQLMAP_XML_PATH, "injections.xml") paths.LIVE_TESTS_XML = os.path.join(paths.SQLMAP_XML_PATH, "livetests.xml") @@ -1500,12 +1500,15 @@ def beep(): Does an audible beep sound Reference: http://de3.aminet.net/dev/src/clr.py.txt """ - if sys.platform=='linux2': + + if sys.platform == 'linux2': try: - audio=file('/dev/audio', 'wb') + audio = file('/dev/audio', 'wb') + for i in xrange(250): audio.write(chr(32) * 4) audio.write(chr(0) * 4) + audio.close() except: print '\a'