0

hai all ,

i have a string
s= The POST variable NM_xwTapCtl%24_img_Banner is vulnerable.,The POST variable NM_xwTapCtl%24scrollTop is vulnerable.

I dont know the procedure to modify that s to

s = NM_xwTapCtl%24_img_Banner,NM_xwTapCtl%24scrollTop


HELP ME PLEASE!!!!!!!!!!!!!!

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by woooee
0

check string method .replace(old, new)

Like:

target = 's= The POST variable NM_xwTapCtl%24_img_Banner is vulnerable.,The POST variable NM_xwTapCtl%24scrollTop is vulnerable.'
target = target.replace('The POST variable','').replace(' is vulnerable.','').replace(' ','')
print target

Edited by pyTony: n/a

0

some times the s= 'The POST variable NM_xwTapCtl$xwTap_txtFocus has been set to ACUstart446634811491',",;ACUend .,The POST variable NM_xwTapCtl$xwTap_txtFocus has been set to ACUstart448344811981',",;ACUend.'

0

What exactly are you looking for and what exactly to do want to replace it with? You can also use string.find which will return the starting position or -1. If you want to remove "The POST" and "is vulnerable" then replace() is the simplest way to go.

Edited by woooee: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.