Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从我的 HTML 源代码中提取一个值并将其用作 Grep 提取。
使用 Burp Suite 的“Grep - Extract”,我如何提取以下文本值(在这种情况下,文本是 hello,但它每次都会更改,我希望能够提取 text= 的值)?
<div id="CaptchaImage"> <img src="Captcha.ashx?text=hello"> </div>
在开始和结束时定义?或从正则表达式组中提取?
我似乎无法让它工作。
在开始和结束处定义,在表达式之后开始src="Captcha.ashx?text=,在分隔符处结束"。
src="Captcha.ashx?text=
"
或者,从 regex group 定义src="Captcha.ashx\?text=([^"]+)"。希望我没有忘记那里的任何反斜杠。
src="Captcha.ashx\?text=([^"]+)"