Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt changes/fixes to CMS detection #380

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions checks/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

class Checker(AbstractChecker):

# IP address of the newthinking GCMS server
gcms_ip = "91.102.13.20"
# IP address of the main verdigado eG GCMS server
gcms_ip = "168.119.31.10"

def __init__(self, config, previous_results=None):
super().__init__(config, previous_results)

def depends_on_results(self):
return ['page_content', 'html_head', 'dns_resolution']

Expand Down Expand Up @@ -51,15 +51,15 @@ def get_generator(self, url):
generator = 'joomla'
if 'drupal' in generator:
generator = 'drupal'

# Qualify certain CMS flavours in more detail
if generator == "typo3":
# typo3-gruene and verdigado GCMS
if 'Developed by die-netzmacher.de and verdigado eG.' in page_content['content']:
generator = "typo3-gcms"
# Typo3-Gruene advertises in the page content
if 'typo3-gruene.de' in page_content['content']:
elif 'typo3-gruene.de' in page_content['content']:
generator = "typo3-gruene"
# newthinking GCMS in some page hrefs
elif 'ntc_gcms' in page_content['content']:
generator = "typo3-gcms"
# check if one of the IPs matches the well-known GCMS Server IP
elif url in dns_resolution:
for addr in dns_resolution[url]['ipv4_addresses']:
Expand All @@ -79,8 +79,8 @@ def get_generator(self, url):
elif ('/themes/sunflower' in page_content['content']):
generator = 'wordpress-sunflower'

elif ('/themes/sunflower' in page_content['content']):
generator = 'wordpress-sunflower'
elif ('/themes/gruenesinternet' in page_content['content']):
generator = 'wordpress-gruenesinternet'

elif ('josephknowsbest' in page_content['content'] or
'Joseph-knows-best' in page_content['content']):
Expand Down