Skip to content

Commit

Permalink
Fixed updated urllib syntax for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mnmustafa1109 authored May 5, 2024
1 parent 3611133 commit 137722f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webattack/tabnabbing/tabnabbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

if attack_vector == "tabnabbing":
# grab favicon
favicon = urllib.urlopen("%s/favicon.ico" % (URL))
favicon = urllib.request.urlopen("%s/favicon.ico" % (URL))
output = open(userconfigpath + '/web_clone/favicon.ico', 'wb')
output.write(favicon.read())
output.close()
Expand Down

0 comments on commit 137722f

Please sign in to comment.