Skip to content

Instantly share code, notes, and snippets.

@powerexploit
Created December 26, 2021 10:53
Show Gist options
  • Save powerexploit/75f338671d311f3fddc0078ae00c976c to your computer and use it in GitHub Desktop.
Save powerexploit/75f338671d311f3fddc0078ae00c976c to your computer and use it in GitHub Desktop.

Revisions

  1. powerexploit created this gist Dec 26, 2021.
    34 changes: 34 additions & 0 deletions techanalyzer.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    #!/usr/bin/python3
    import json
    from Wappalyzer import Wappalyzer, WebPage
    from os import system
    import warnings
    import time,sys
    import argparse
    def techno(url):
    start = time.time()
    try:
    webpage = WebPage.new_from_url(url)
    warnings.simplefilter("ignore")
    wappalyzer = Wappalyzer.latest()
    tech = wappalyzer.analyze_with_versions_and_categories(webpage)
    data = json.dumps(tech, indent = 4)
    system('tput setaf 9')
    print(data)
    except:
    print("[+] Oops unable to connect..")

    end = time.time()
    print(f"\n[+] Total Execution Time: {end - start} seconds\n\n")

    if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--url',help='parse url to detect tech stack')
    args = parser.parse_args()

    if args.url:
    system('tput setaf 6')
    print("[+] Detecting CMS with Identified Technologies from target url\n")
    system('tput setaf 9')
    techno(args.url)
    sys.exit()