Skip to content

Incredibly fast crawler designed for OSINT.

added exporter plugin

Somdev Sangwan53070c92acb0
diff --git a/plugins/exporter.py b/plugins/exporter.py
new file mode 100644
index 0000000..6d93237
--- /dev/null
+++ b/plugins/exporter.py
@@ -0,0 +1,24 @@
+import json
+
+json_dict = {
+'files' : [],
+'intel' : [],
+'robots' : [],
+'custom' : [],
+'failed' : [],
+'storage' : [],
+'scripts' : [],
+'external' : [],
+'fuzzable' : [],
+'endpoints' : [],
+'processed' : []
+}
+
+def exporter(method, *datasets):
+ if method.lower() == 'json':
+ for data, json_list in zip(datasets, json_dict): # iterating over two two arrays at once
+ json_dict[json_list] = data # replace blank lists in json_dict with results
+ json_string = json.dumps(json_dict, indent=4) # convert json_dict to a json styled string
+ savefile = open('exported.json', 'w+')
+ savefile.write(json_string)
+ savefile.close()
\ No newline at end of file