|
27 | 27 | warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning) |
28 | 28 | warnings.filterwarnings(action="ignore", category=DeprecationWarning) |
29 | 29 |
|
30 | | -from lib.controller.controller import start |
31 | | -from lib.core.common import banner |
32 | | -from lib.core.common import createGithubIssue |
33 | | -from lib.core.common import dataToStdout |
34 | | -from lib.core.common import getSafeExString |
35 | | -from lib.core.common import getUnicode |
36 | | -from lib.core.common import maskSensitiveData |
37 | | -from lib.core.common import setPaths |
38 | | -from lib.core.common import weAreFrozen |
39 | | -from lib.core.data import cmdLineOptions |
40 | | -from lib.core.data import conf |
41 | | -from lib.core.data import kb |
42 | 30 | from lib.core.data import logger |
43 | | -from lib.core.data import paths |
44 | | -from lib.core.common import unhandledExceptionMessage |
45 | | -from lib.core.exception import SqlmapBaseException |
46 | | -from lib.core.exception import SqlmapShellQuitException |
47 | | -from lib.core.exception import SqlmapSilentQuitException |
48 | | -from lib.core.exception import SqlmapUserQuitException |
49 | | -from lib.core.option import initOptions |
50 | | -from lib.core.option import init |
51 | | -from lib.core.profiling import profile |
52 | | -from lib.core.settings import IS_WIN |
53 | | -from lib.core.settings import LEGAL_DISCLAIMER |
54 | | -from lib.core.settings import VERSION |
55 | | -from lib.core.testing import smokeTest |
56 | | -from lib.core.testing import liveTest |
57 | | -from lib.parse.cmdline import cmdLineParser |
58 | | -from lib.utils.api import setRestAPILog |
59 | | -from lib.utils.api import StdDbOut |
| 31 | + |
| 32 | +try: |
| 33 | + from lib.controller.controller import start |
| 34 | + from lib.core.common import banner |
| 35 | + from lib.core.common import createGithubIssue |
| 36 | + from lib.core.common import dataToStdout |
| 37 | + from lib.core.common import getSafeExString |
| 38 | + from lib.core.common import getUnicode |
| 39 | + from lib.core.common import maskSensitiveData |
| 40 | + from lib.core.common import setPaths |
| 41 | + from lib.core.common import weAreFrozen |
| 42 | + from lib.core.data import cmdLineOptions |
| 43 | + from lib.core.data import conf |
| 44 | + from lib.core.data import kb |
| 45 | + from lib.core.data import paths |
| 46 | + from lib.core.common import unhandledExceptionMessage |
| 47 | + from lib.core.exception import SqlmapBaseException |
| 48 | + from lib.core.exception import SqlmapShellQuitException |
| 49 | + from lib.core.exception import SqlmapSilentQuitException |
| 50 | + from lib.core.exception import SqlmapUserQuitException |
| 51 | + from lib.core.option import initOptions |
| 52 | + from lib.core.option import init |
| 53 | + from lib.core.profiling import profile |
| 54 | + from lib.core.settings import IS_WIN |
| 55 | + from lib.core.settings import LEGAL_DISCLAIMER |
| 56 | + from lib.core.settings import VERSION |
| 57 | + from lib.core.testing import smokeTest |
| 58 | + from lib.core.testing import liveTest |
| 59 | + from lib.parse.cmdline import cmdLineParser |
| 60 | + from lib.utils.api import setRestAPILog |
| 61 | + from lib.utils.api import StdDbOut |
| 62 | +except KeyboardInterrupt: |
| 63 | + errMsg = "user aborted" |
| 64 | + logger.error(errMsg) |
| 65 | + |
| 66 | + raise SystemExit |
60 | 67 |
|
61 | 68 | def modulePath(): |
62 | 69 | """ |
|
0 commit comments