在 mac 上使用 sqlmap
useing sqlmap on mac
我已经在 mac 上安装了 python3。
但是当我使用 sqlmap 时,我得到
wrong initialization of pymsql detected (using Python3 dependencies)
你能展示一下你对sqlmap使用的命令吗?
在我的 Mac 上,我同时安装了 Python 2.7 和 Python 3,并且必须通过以下方式显式调用 Python3:
python3 <scriptName>
因为只使用 'python' 默认为 python 2.7.
参考 OP 关于脚本第一行使用 #!/usr/bin/env 的评论 python
这正是我的观点,在 Mac 上默认为 Python 2.7 但您需要 运行 sqlmap 和 Python3
下面2.7.10通知:
/usr/bin/env python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
我已经解决了这个问题。
可能是因为我在 mac 上安装了 python3,所以当我在 mac 上安装 pip 时,它下载了 PyMySQL 和 PyMySQL3 库。
有趣的是,当我使用命令"pip list"时,它显示list.But中的"PyMYSQL3"我无法使用"pip uninstall PyMySQL"卸载它。
当您尝试删除它时,它会告诉您路径。
error message
它不是 "Permission defined"。只需 cd 路径并删除 PyMysql3 库即可正常使用 sqlmap 和 pymysql。
我已经在 mac 上安装了 python3。
但是当我使用 sqlmap 时,我得到
wrong initialization of pymsql detected (using Python3 dependencies)
你能展示一下你对sqlmap使用的命令吗?
在我的 Mac 上,我同时安装了 Python 2.7 和 Python 3,并且必须通过以下方式显式调用 Python3:
python3 <scriptName>
因为只使用 'python' 默认为 python 2.7.
参考 OP 关于脚本第一行使用 #!/usr/bin/env 的评论 python
这正是我的观点,在 Mac 上默认为 Python 2.7 但您需要 运行 sqlmap 和 Python3
下面2.7.10通知:
/usr/bin/env python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
我已经解决了这个问题。
可能是因为我在 mac 上安装了 python3,所以当我在 mac 上安装 pip 时,它下载了 PyMySQL 和 PyMySQL3 库。
有趣的是,当我使用命令"pip list"时,它显示list.But中的"PyMYSQL3"我无法使用"pip uninstall PyMySQL"卸载它。 当您尝试删除它时,它会告诉您路径。 error message
它不是 "Permission defined"。只需 cd 路径并删除 PyMysql3 库即可正常使用 sqlmap 和 pymysql。