使用 sqlmap 从 MySQL 个表中检索注释

Retrieving comments from MySQL tables with sqlmap

我在MySQL(northwind数据库)中添加了一条table评论如下

ALTER TABLE northwind.fornitori COMMENT = 'tabella fornitori';

我可以使用以下查询检索 table 评论

SELECT TABLE_COMMENT FROM information_schema.TABLES WHERE TABLE_NAME = 'fornitori';

显示正确的结果。

现在,我想用sqlmap检索table评论,然后我执行了

python sqlmap.py -d "mysql://root:pwd@localhost:3306/northwind" -D northwind -T fornitori --comments

但输出是

[11:23:54] [INFO] connection to mysql server localhost:3306 established
[11:23:54] [INFO] testing MySQL
[11:23:54] [INFO] confirming MySQL
[11:23:54] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.0
[11:23:54] [INFO] connection to mysql server localhost:3306 closed

在这里,我看不到任何table评论。这是错误还是我有什么地方 missing/doing 错了?

此问题已在1.2.5版本中解决。 此外,--comments 应与其他选项一起使用,如 --schema

python sqlmap.py -d "mysql://root:mypassword@localhost:3306/northwind" -D  northwind -T fornitori --schema --comments