forked from tatanus/apt2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdictload.py
More file actions
22 lines (19 loc) · 727 Bytes
/
Copy pathdictload.py
File metadata and controls
22 lines (19 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from core.inputModule import inputModule
from core.keystore import KeyStore as kb
import re
class dictload(inputModule):
def __init__(self, config, display, lock):
super(dictload, self).__init__(config, display, lock)
self.requirements = []
self.title = "Load DICT Input File"
self.description = "Load an DICT Input file"
self.type = "dict"
def process(self, inputfile):
contents = []
with open (inputfile, "r") as myfile:
contents = myfile.readlines()
for line in contents:
parts = line.strip().split(':=')
kb.add("osint/" + parts[0].lower() + "/" + parts[1])
self.fire("new" + parts[0])
return