2016-05-12 121 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.