Skip to content
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
14 changes: 12 additions & 2 deletions modules/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ def executeAll(target, soup):
get_dot_htaccess(target)
except Exception:
cprint("Error""red")
#TODO: get_webpage_title()
try:
get_webpage_description(soup)
except Exception:
cprint("Error""red")


def get_robots_txt(target):
Expand Down Expand Up @@ -74,5 +77,12 @@ def get_dot_htaccess(target):
cprint(statcode)


def get_webpage_description(soup):
cprint("[*]Checking for description meta tag"'yellow')
metatags = soup.find_all('meta')
for meta in metatags:
if meta.has_attr('name'):
attributes = meta.attrs
if attributes['name'] == 'description':
cprint("Page description: " + attributes['content'])

#def get_webpage_title(target, soup):