Struts2-Scan icon indicating copy to clipboard operation
Struts2-Scan copied to clipboard

建议检测前时规范下url格式

Open Meimdege opened this issue 4 years ago • 0 comments

建议检测前时规范下url格式,缺少前面的"http://"和后面的"/"就会报错。 我在scan_one函数下插入了下面这个

if "://" not in url:
  url = "http://" + url.strip()

url = url.rstrip("/") + "/"

Meimdege avatar Jan 21 '21 02:01 Meimdege