Skip to content

Commit

Permalink
fix encoding errors
Browse files Browse the repository at this point in the history
  • Loading branch information
inc0d3 committed Nov 30, 2020
1 parent 4e38096 commit 7da9f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Options
- Update database of vulnerabilities and versions
- Update version scan algorithm
- Update vulnerability report
- Add Random user-agent support
- Fix encoding errors

0.5

Expand Down
4 changes: 2 additions & 2 deletions moodlescan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-


import datetime
import hashlib
Expand Down Expand Up @@ -289,9 +291,7 @@ def getversion(url, proxy, agent):
for x in candidatos:
tmp = x.split(";")
if tmp[2] != z[0]:

c = re.findall(tmp[0] + ";" + str(z[1]) + ".*", data)

if len(c) > 0:
version = c[0]
occ = occ + 1
Expand Down

0 comments on commit 7da9f08

Please sign in to comment.