소스 검색

more advanced anti false-positives check

epsylon 5 년 전
부모
커밋
9c5ad92b08
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/main.py

+ 1 - 1
core/main.py

@@ -1422,7 +1422,7 @@ class xsser(EncoderDecoder, XSSerReporter):
             self.report("[Info] Reply contains code [ --discode ] provided to be discarded -> [DISCARDING!]\n")
             self.add_failure(dest_url, payload, hashing, query_string, orig_url, method) # failed!
         else:
-            if str('/>' + hashing) in c_body or str('href=' + dest_url + hashing) in c_body or str('content=' + dest_url + hashing) in c_body:
+            if str('>' + hashing) in c_body or str('href=' + dest_url + hashing) in c_body or str('content=' + dest_url + hashing) in c_body:
                 self.report("[Info] Reply looks like a 'false positive' -> [DISCARDING!]\n")
                 self.add_failure(dest_url, payload, hashing, query_string, orig_url, method) # failed!
             elif str(hashing+",") in c_body or str(hashing+'","') in c_body: