Skip to content

Commit f848cc7

Browse files
committed
adding legal disclaimer as latest situation (these days news headlines) seems out of control
1 parent a5a70f0 commit f848cc7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/core/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,5 @@
346346
# These MySQL keywords can't go (alone) into versioned comment form (/*!...*/)
347347
# Reference: http://dev.mysql.com/doc/refman/5.1/en/function-resolution.html
348348
IGNORE_SPACE_AFFECTED_KEYWORDS = ("CAST", "COUNT", "EXTRACT", "GROUP_CONCAT", "MAX", "MID", "MIN", "SESSION_USER", "SUBSTR", "SUBSTRING", "SUM", "SYSTEM_USER", "TRIM")
349+
350+
LEGAL_DISCLAIMER = "usage of sqlmap for attacking web servers without prior mutual consistency can be considered as an illegal activity. it is the final user's responsibility to obey all applicable local, state and federal laws. authors assume no liability and are not responsible for any misuse or damage caused by this program."

sqlmap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from lib.core.exception import sqlmapUserQuitException
4242
from lib.core.option import init
4343
from lib.core.profiling import profile
44+
from lib.core.settings import LEGAL_DISCLAIMER
4445
from lib.core.testing import smokeTest
4546
from lib.core.testing import liveTest
4647
from lib.core.xmldump import closeDumper
@@ -69,6 +70,8 @@ def main():
6970
# Store original command line options for possible later restoration
7071
cmdLineOptions.update(cmdLineParser().__dict__)
7172

73+
dataToStdout("[!] Legal Disclaimer: %s\n\n" % LEGAL_DISCLAIMER, forceOutput=True)
74+
7275
dataToStdout("[*] starting at: %s\n\n" % time.strftime("%X"), forceOutput=True)
7376

7477
try:

0 commit comments

Comments
 (0)