PyxYuYu / MyBlog

记录和分享学习的旅程!
286 stars 101 forks source link

DSCAN的问题 #109

Open hhhhhon opened 7 years ago

hhhhhon commented 7 years ago

运用sqlmapapi出现问题 Traceback (most recent call last): File "C:\Python27\sqlmap\thirdparty\bottle\bottle.py", line 935, in _inner_handle return route.call(*args) File "C:\Python27\sqlmap\thirdparty\bottle\bottle.py", line 1888, in wrapper rv = callback(a, **ka) File "C:\Python27\sqlmap\lib\utils\api.py", line 483, in scan_start DataStore.tasks[taskid].engine_start() File "C:\Python27\sqlmap\lib\utils\api.py", line 175, in engine_start self.process = Popen(["sqlmap", "--api", "-c", configFile], shell=False, close_fds=not IS_WIN) File "C:\Python27\lib\subprocess.py", line 390, in init errread, errwrite) File "C:\Python27\lib\subprocess.py", line 640, in _execute_child startupinfo) WindowsError: [Error 2] 是什么问题啊

问题已经解决,需要在管理员的权限下运行sqlmapapi.py -s

PyxYuYu commented 7 years ago

@hhhhhon WindowsError: [Error 2],查了下是系统找不到指定文件,看看是否有什么缺失,或者下个新版的 Sqlmap 试试看

hhhhhon commented 7 years ago

@PyxYuYu 我的sqlmap和python都是新下的 请问您的path路径里是单独配置sqlmap.py的路径还是直接配置python的路径

PyxYuYu commented 7 years ago

@hhhhhon 我没有配置路径啊,先在 cmd 下运行 Sqlmapapi.py,它会在 http://127.0.0.1:8775 运行,/sqliscan/sqls.py 中会直接调用这个 API,对了这个轮子不太全,或者说是个半成品 - -,有时间会继续写

OldFatBoy commented 7 years ago

大神,请教一下这个在linux下怎么运行? 我环境上已经下载了django和python2.7,您能不能提供个演示案例,或者使用说明。

Linux上已经解决。 windows上运行的时候出现,django.db.utils.OperationalError: unable to open database file 不知道你有没有碰到过?


已解决,修改settings.py 中的DATABASES DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3',

'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),

    'NAME': '../db.sqlite3',
}

}


继续碰到问题 DjangoUnicodeDecodeError at /'utf8' codec can't decode byte 0xcf in position 3: invalid continuation byte. You passed in 'E:\\xcf\xee\xc4\xbf\xb4\xfa\xc2\xeb\MyBlog-master\DjangoProject-DSScan\DSScan\templates' (<type 'str'>) 有碰到过问题吗?

PyxYuYu commented 7 years ago

@OldFatBoy 编码问题,试试简单点的英文路径,我是直接放在根目录下的所以没遇过这些问题