资源简介
sqlmap工具测试sql注入非常方便,使用非常简单。sqlmap漏洞测试。
代码片段和文件信息
#!/usr/bin/env python
“““
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
See the file ‘doc/COPYING‘ for copying permission
“““
import sys
sys.dont_write_bytecode = True
from lib.utils import versioncheck # this has to be the first non-standard import
import bdb
import inspect
import logging
import os
import re
import shutil
import sys
import thread
import time
import traceback
import warnings
warnings.filterwarnings(action=“ignore“ message=“.*was already imported“ category=UserWarning)
warnings.filterwarnings(action=“ignore“ category=DeprecationWarning)
from lib.controller.controller import start
from lib.core.common import banner
from lib.core.common import createGithubIssue
from lib.core.common import dataToStdout
from lib.core.common import getSafeExString
from lib.core.common import getUnicode
from lib.core.common import maskSensitiveData
from lib.core.common import setPaths
from lib.core.common import weAreFrozen
from lib.core.data import cmdLineOptions
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
from lib.core.data import paths
from lib.core.common import unhandledExceptionMessage
from lib.core.exception import SqlmapbaseException
from lib.core.exception import SqlmapShellQuitException
from lib.core.exception import SqlmapSilentQuitException
from lib.core.exception import SqlmapUserQuitException
from lib.core.option import initOptions
from lib.core.option import init
from lib.core.profiling import profile
from lib.core.settings import LEGAL_DISCLAIMER
from lib.core.testing import smokeTest
from lib.core.testing import liveTest
from lib.parse.cmdline import cmdLineParser
from lib.utils.api import setRestAPILog
from lib.utils.api import StdDbOut
def modulePath():
“““
This will get us the program‘s directory even if we are frozen
using py2exe
“““
try:
_ = sys.executable if weAreFrozen() else __file__
except NameError:
_ = inspect.getsourcefile(modulePath)
return getUnicode(os.path.dirname(os.path.realpath(_)) encoding=sys.getfilesystemencoding())
def main():
“““
Main function of sqlmap when running from command line.
“““
try:
paths.SQLMAP_ROOT_PATH = modulePath()
try:
os.path.isdir(paths.SQLMAP_ROOT_PATH)
except UnicodeEncodeError:
errMsg = “your system does not properly handle non-ASCII paths. “
errMsg += “Please move the sqlmap‘s directory to the other location“
logger.error(errMsg)
raise SystemExit
setPaths()
banner()
# Store original command line options for possible later restoration
cmdLineOptions.update(cmdLineParser().__dict__)
initOptions(cmdLineOptions)
if hasattr(conf “api“):
# Overwrite system standard output and standard error to write
# to an IPC database
sys.stdout = StdDbOut(conf.taskid messagetype=“stdout“)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-12 21:24 sqlmap\
文件 179 2016-04-22 16:54 sqlmap\.gitattributes
文件 48 2016-04-22 16:54 sqlmap\.gitignore
文件 107 2016-04-22 16:54 sqlmap\.travis.yml
文件 3883 2016-04-22 16:54 sqlmap\README.md
目录 0 2018-09-12 21:24 sqlmap\doc\
文件 190 2016-04-22 16:54 sqlmap\doc\AUTHORS
文件 32842 2016-04-22 16:54 sqlmap\doc\CHANGELOG.md
文件 3935 2016-04-22 16:54 sqlmap\doc\CONTRIBUTING.md
文件 20153 2016-04-22 16:54 sqlmap\doc\COPYING
文件 312210 2016-04-22 16:54 sqlmap\doc\FAQ.pdf
文件 494226 2016-04-22 16:54 sqlmap\doc\README.pdf
文件 24700 2016-04-22 16:54 sqlmap\doc\THANKS.md
文件 14807 2016-04-22 16:54 sqlmap\doc\THIRD-PARTY.md
目录 0 2018-09-12 21:24 sqlmap\doc\translations\
文件 3619 2016-04-22 16:54 sqlmap\doc\translations\README-es-MX.md
文件 4407 2016-04-22 16:54 sqlmap\doc\translations\README-gr-GR.md
文件 3329 2016-04-22 16:54 sqlmap\doc\translations\README-hr-HR.md
文件 3179 2016-04-22 16:54 sqlmap\doc\translations\README-id-ID.md
文件 3333 2016-04-22 16:54 sqlmap\doc\translations\README-pt-BR.md
文件 3154 2016-04-22 16:54 sqlmap\doc\translations\README-tr-TR.md
文件 3061 2016-04-22 16:54 sqlmap\doc\translations\README-zh-CN.md
目录 0 2018-09-12 21:24 sqlmap\extra\
文件 150 2016-04-22 16:54 sqlmap\extra\__init__.py
目录 0 2018-09-12 21:24 sqlmap\extra\beep\
文件 150 2016-04-22 16:54 sqlmap\extra\beep\__init__.py
文件 2554 2016-04-22 16:54 sqlmap\extra\beep\beep.py
文件 46772 2016-04-22 16:54 sqlmap\extra\beep\beep.wav
目录 0 2018-09-12 21:24 sqlmap\extra\cloak\
文件 732 2016-04-22 16:54 sqlmap\extra\cloak\README.txt
文件 150 2016-04-22 16:54 sqlmap\extra\cloak\__init__.py
............此处省略587个文件信息
- 上一篇:luitan.sql
- 下一篇:学生成绩管理系统+sql
评论
共有 条评论