Skip to content

Commit

Permalink
Fixes #26 (CMS detection)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored Apr 4, 2019
1 parent 7ea2c71 commit 9e1a5fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/detectCMS.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@


def detectCMS(domain):
response = get('https://whatcms.org/?s=%s' % domain).text
match = search(r'<a href="/c/\w+" class="nowrap" title="\w+">(.*?)</a></div>', response)
response = get('https://whatcms.org/?gpreq=json&jsoncallback=jQuery1124008091494457806547_1554361369057&s=%s&na=&nb=1cg805dlm7d7e5eickf67rzxrn12mju6bnch3a99hrt88v7n8rhf0lovwr8d0zm1&verified=&_=1554361369059' % domain).text
match = search(r'uses<\\/div>[^>]+>(.*?)<\\/a>', response)
try:
sys.stdout.write(good + ' ' + match.group(1).split('</a>')[0] + '\n')
sys.stdout.write(good + ' ' + match.group(1) + '\n')
except:
sys.stdout.write('%s Target doesn\'t seem to use a CMS' % info + '\n')

0 comments on commit 9e1a5fc

Please sign in to comment.