mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
created a new plugin identifier for moodle
This commit is contained in:
parent
6e3d4b98f8
commit
0349835951
1 changed files with 19 additions and 0 deletions
19
lib/plugins/moodle.py
Normal file
19
lib/plugins/moodle.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import re
|
||||
|
||||
|
||||
__product__ = "Moodle"
|
||||
__description__ = (
|
||||
"Moodle is an opensource educational software written in PHP"
|
||||
)
|
||||
|
||||
|
||||
def search(html, **kwargs):
|
||||
html = str(html)
|
||||
plugin_detection_schema = (
|
||||
re.compile(r".moodle.", re.I),
|
||||
re.compile(r".moodlesession.", re.I),
|
||||
re.compile(r".php.moodlesession.(\w+)?(\d+)?", re.I)
|
||||
)
|
||||
for plugin in plugin_detection_schema:
|
||||
if plugin.search(html) is not None:
|
||||
return True
|
||||
Loading…
Reference in a new issue