forked from dvopsway/datasploit
-
Notifications
You must be signed in to change notification settings - Fork 457
Expand file tree
/
Copy pathtemplate.py
More file actions
executable file
·38 lines (31 loc) · 914 Bytes
/
template.py
File metadata and controls
executable file
·38 lines (31 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
try:
from ..core.style import style
from ..core.config import get_config_value
except ImportError: # pragma: no cover - legacy script execution
from core.style import style
from core.config import get_config_value
import sys
# Control whether the module is enabled or not
ENABLED = True
MODULE_NAME = "Template"
REQUIRES = ()
def banner():
return f"Running {MODULE_NAME}"
def main(domain):
# Use the domain variable to do some stuff and return the data
print(domain)
return []
def output(data, domain=""):
# Use the data variable to print(out to console as you like)
for i in data:
print(i)
if __name__ == "__main__":
try:
domain = sys.argv[1]
banner()
result = main(domain)
output(result, domain)
except Exception as e:
print(e)
print("Please provide a domain name as argument")