mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
23 lines
610 B
Python
23 lines
610 B
Python
import re
|
|
|
|
import lib.core.common
|
|
|
|
|
|
__product__ = "3dcart"
|
|
__description__ = (
|
|
"The 3dcart Shopping Cart Software is a complete e-commerce solution for anyone."
|
|
)
|
|
|
|
|
|
def search(html, **kwargs):
|
|
html = str(html)
|
|
headers = kwargs.get("headers", None)
|
|
plugin_detection_schema = (
|
|
re.compile(r"3dcart.stats", re.I),
|
|
re.compile(r"/3dvisit/", re.I)
|
|
)
|
|
for plugin in plugin_detection_schema:
|
|
if plugin.search(html) is not None:
|
|
return True
|
|
if plugin.search(headers.get(lib.core.common.HTTP_HEADER.SET_COOKIE, "")) is not None:
|
|
return True
|