Skip to content

Commit

Permalink
Handlng non-ascii chars, Fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored Jul 23, 2018
1 parent 2b466fb commit 992cf43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions photon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Let's import what we need
import os
Expand Down Expand Up @@ -349,17 +350,17 @@ def flash(function, links): # This shit is complicated, move on

with open('%s/links.txt' % name, 'w+') as f:
for x in storage:
f.write(x + '\n')
f.write(x + '\n')
f.close()

with open('%s/robots.txt' % name, 'w+') as f:
for x in storage:
f.write(x + '\n')
f.write(x + '\n')
f.close()

with open('%s/scripts.txt' % name, 'w+') as f:
for x in scripts:
f.write(x + '\n')
f.write(x + '\n')
f.close()

with open('%s/fuzzable.txt' % name, 'w+') as f:
Expand Down

0 comments on commit 992cf43

Please sign in to comment.