2016-05-12 118 views
0

我试图用POST方法的SqlMap运行,但我得到这个错误:SQLMAP后数据

[CRITICAL] no parameter(s) found for testing in the provided data (e.g. GET parameter 'id' in 'www.site.com/index.php?id=1')

现在,我知道,POST方法我必须用数据标志的SqlMap运行(如--data="name=value"
但我的表单输入数据没有名称,数据以字符串形式发送。

如何在这种情况下使用sqlmap?

回答

1

您可以使用星号*指定您的注射点。试试这个:

python sqlmap.py -u "http://www.example.com/index.php?id=1" --data="POST_STRING_HERE*" --dbs 

注意数据字符串中的*。 SQL地图会询问你是否想处理通配符,在那里输入Y。它将忽略所有参数并注入有效载荷来代替*

docs

Append an asterisk, *, to the place where sqlmap should check for injections in URI itself. For example, ./sqlmap.py -u " http://target.tld/id1/1*/id2/2 ", sqlmap will inject its payloads at that place marked with * character. This feature also applies to POST data. Multiple injection points are supported and will be assessed sequentially.