AutoSqli icon indicating copy to clipboard operation
AutoSqli copied to clipboard

运行报错

Open m1911 opened this issue 8 years ago • 9 comments

./Autosqli.py:行13: application/json}: 没有那个文件或目录 ./Autosqli.py:行15: 未预期的符号 (' 附近有语法错误 ./Autosqli.py:行15:app=Flask(name)' 这啥情况

m1911 avatar Apr 11 '16 02:04 m1911

应该是第13—15行的代码有问题,第十三行:HEADER={'Content-Type': 'application/json'}的键、值都是字符串类型,要加上单引号,第15行app=Flask(name )最后面是没有单引号的。你再核对下代码看看,或者直接copy进去。

2016-04-11 10:31 GMT+08:00 m1911 [email protected]:

./Autosqli.py:行13: application/json}: 没有那个文件或目录 ./Autosqli.py:行15: 未预期的符号 (' 附近有语法错误 ./Autosqli.py:行15:app=Flask(name)' 这啥情况

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/LeeHDsniper/AutoSqli/issues/1

LeeHDsniper avatar Apr 11 '16 03:04 LeeHDsniper

我知道了 要Python Autosqli.py 这个才行 我是直接./了

m1911 avatar Apr 11 '16 03:04 m1911

Quickly Bulid 把url放进去直接卡主 浏览器了

m1911 avatar Apr 11 '16 05:04 m1911

你可以在运行Autosqli.py的终端里面看到运行时报告,看看哪里报错

2016-04-11 13:06 GMT+08:00 m1911 [email protected]:

Quickly Bulid 把url放进去直接卡主 浏览器了

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/LeeHDsniper/AutoSqli/issues/1#issuecomment-208164341

LeeHDsniper avatar Apr 11 '16 14:04 LeeHDsniper

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/home/chao/tools/autoSqli/autosqli.py", line 315, in handle_post_quickbuild taskid=new_Taskid() File "/home/chao/tools/autoSqli/autosqli.py", line 145, in new_Taskid responseData=json.loads(requests.get(url,None).text) TypeError: get() takes exactly 1 argument (2 given) 快速创建的报错

m1911 avatar Apr 14 '16 04:04 m1911

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/home/chao/tools/autoSqli/autosqli.py", line 342, in handle_post_customtask taskid=new_Taskid() File "/home/chao/tools/autoSqli/autosqli.py", line 145, in new_Taskid responseData=json.loads(requests.get(url,None).text) TypeError: get() takes exactly 1 argument (2 given)

这个是正常创建任务的时候

m1911 avatar Apr 14 '16 04:04 m1911

c4bbage avatar May 03 '16 12:05 c4bbage

@m1911 你的问题解决了吗?

hehe321 avatar May 16 '16 08:05 hehe321

有没有安装requests包?没有的话使用pip install requests安装

LeeHDsniper avatar May 16 '16 14:05 LeeHDsniper