diff --git a/lib/phishemail.py b/lib/phishemail.py index a6f6e50..76aa229 100644 --- a/lib/phishemail.py +++ b/lib/phishemail.py @@ -24,16 +24,13 @@ def decodeEmailText(ENCODING): print bcolors.OKGREEN + "[+] " + bcolors.ENDC + "Decoding quoted-printable text." #Decode the quoted-printable text source = quopri.decodestring(encoded) - output = open('source.html', "w") - output.write(source) - output.close() if ENCODING in ['base64', 'Base64', 'b64', 'B64']: print bcolors.OKGREEN + "[+] " + bcolors.ENDC + "Decoding Base64 text." #Decode the Base64 text source = base64.b64decode(encoded) - output = open('source.html', "w") - output.write(source) - output.close() + output = open('source.html', "w") + output.write(source) + output.close() #This is Step 2 - URLs are replaced with our phishing URLs and new text is saved to source.html def replaceURL(): @@ -50,7 +47,7 @@ def replaceURL(): #Find all