From 15b0ab1b44ade7ab3ad325668eb735a2e9d12cc1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 22 Jan 2013 14:08:19 +0100 Subject: [PATCH] Fix for a 'no parameter found' problem when user says N on 'custom injection mark found in POST...' --- lib/core/target.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/core/target.py b/lib/core/target.py index eb1115705..b66b7bdee 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -171,6 +171,14 @@ def _setRequestParams(): conf.url = conf.url.split('?')[0] conf.paramDict[PLACE.GET] = paramDict testableParameters = True + elif place == PLACE.CUSTOM_POST: + conf.parameters[PLACE.POST] = conf.data + paramDict = paramToDict(PLACE.POST, conf.data) + + if paramDict: + conf.paramDict[PLACE.POST] = paramDict + testableParameters = True + else: conf.parameters[place] = value conf.paramDict[place] = OrderedDict()