Incredibly fast crawler designed for OSINT.
Encode strings to utf-8 while saving to file #16
Somdev Sangwanb4481a7d08d0
diff --git a/photon.py b/photon.pyindex de12111..11fe5ae 100644--- a/photon.py+++ b/photon.py@@ -391,43 +391,43 @@ os.mkdir(name) # create a new directorywith open('%s/links.txt' % name, 'w+') as f:for x in storage:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/files.txt' % name, 'w+') as f:for x in files:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/intel.txt' % name, 'w+') as f:for x in intel:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/robots.txt' % name, 'w+') as f:for x in storage:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/failed.txt' % name, 'w+') as f:for x in failed:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/custom.txt' % name, 'w+') as f:for x in custom:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/scripts.txt' % name, 'w+') as f:for x in scripts:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/fuzzable.txt' % name, 'w+') as f:for x in fuzzable:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/external.txt' % name, 'w+') as f:for x in external:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')with open('%s/endpoints.txt' % name, 'w+') as f:for x in endpoints:- f.write(x.encode('utf-8') + '\n')+ f.write(str(x.encode('utf-8')) + '\n')# Printing out resultsprint ('''%s