Skip to content

Incredibly fast crawler designed for OSINT.

make calls to native os functions instead of system

Filippo Claudib28c0d7487a6
diff --git a/photon.py b/photon.py
index cccd290..1459599 100644
--- a/photon.py
+++ b/photon.py
@@ -324,8 +324,8 @@ flash(jscanner, scripts)
# Step 4. Save the results
if os.path.exists(name):
- os.system('rm -r %s' % name)
-os.system('mkdir %s' % name)
+ os.rmdir(name)
+os.mkdir(name)
with open('%s/links.txt' % name, 'w+') as f:
for x in storage: