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

BugFix For Detect Technologies Not Working. #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
21 changes: 18 additions & 3 deletions plugins/detectTech.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,25 @@


def detectTech(url):
data = get('https://api.wappalyzer.com/lookup-basic/beta/?url=' + url).text
api=''

# wappalyzer.txt will store API key for future use.
try:

with open('wappalyzer_api_key.txt') as f:
api=f.read()

except FileNotFoundError:

api=input('\nPlease Enter Wappalyzer API KEY:')
with open('wappalyzer_api_key.txt','w') as w:
w.write(api)

data=get('https://api.wappalyzer.com/lookup/v2/?urls='+url,headers={'x-api-key':api}).text
jsoned_data = json.loads(data)
technologies = []
for one in jsoned_data:
for one in jsoned_data[0]['technologies']:
technologies.append(one['name'])
for tech in technologies:
sys.stdout.write(tech)
sys.stdout.write(tech+'\n')