mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2025-12-22 00:34:24 +01:00
changed to uniform tool install location; fixed minor bugs for new install
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import shlex
|
import shlex
|
||||||
import pickle
|
import pickle
|
||||||
@@ -8,6 +9,8 @@ import subprocess
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
os.environ["PYTHONPATH"] = f"{os.environ.get('PYTHONPATH')}:{str(Path(__file__).parent.resolve())}"
|
||||||
|
|
||||||
import cmd2
|
import cmd2
|
||||||
from cmd2.ansi import style
|
from cmd2.ansi import style
|
||||||
|
|
||||||
@@ -52,9 +55,12 @@ tools = {
|
|||||||
"dependencies": None,
|
"dependencies": None,
|
||||||
"commands": [
|
"commands": [
|
||||||
f"cp {str(Path(__file__).parent / 'luigid.service')} /lib/systemd/system/luigid.service",
|
f"cp {str(Path(__file__).parent / 'luigid.service')} /lib/systemd/system/luigid.service",
|
||||||
|
f"cp $(which luigi) /usr/local/bin/luigid",
|
||||||
|
"systemctl daemon-reload",
|
||||||
"systemctl start luigid.service",
|
"systemctl start luigid.service",
|
||||||
"systemctl enable luigid.service",
|
"systemctl enable luigid.service",
|
||||||
],
|
],
|
||||||
|
"shell": True,
|
||||||
},
|
},
|
||||||
"pipenv": {
|
"pipenv": {
|
||||||
"installed": False,
|
"installed": False,
|
||||||
@@ -67,7 +73,7 @@ tools = {
|
|||||||
"commands": [
|
"commands": [
|
||||||
"git clone https://github.com/robertdavidgraham/masscan /tmp/masscan",
|
"git clone https://github.com/robertdavidgraham/masscan /tmp/masscan",
|
||||||
"make -s -j -C /tmp/masscan",
|
"make -s -j -C /tmp/masscan",
|
||||||
"mv /tmp/bin/masscan /usr/bin/masscan",
|
"mv /tmp/masscan/bin/masscan /usr/local/bin/masscan",
|
||||||
"rm -rf /tmp/masscan",
|
"rm -rf /tmp/masscan",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -83,7 +89,7 @@ tools = {
|
|||||||
"mkdir /tmp/aquatone",
|
"mkdir /tmp/aquatone",
|
||||||
"wget -q https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip -O /tmp/aquatone/aquatone.zip",
|
"wget -q https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip -O /tmp/aquatone/aquatone.zip",
|
||||||
"unzip /tmp/aquatone/aquatone.zip -d /tmp/aquatone",
|
"unzip /tmp/aquatone/aquatone.zip -d /tmp/aquatone",
|
||||||
"mv /tmp/aquatone/aquatone /usr/bin/aquatone",
|
"mv /tmp/aquatone/aquatone /usr/local/bin/aquatone",
|
||||||
"rm -rf /tmp/aquatone",
|
"rm -rf /tmp/aquatone",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ defaults = {
|
|||||||
web_ports = {'80', '443', '8080', '8000', '8443'}
|
web_ports = {'80', '443', '8080', '8000', '8443'}
|
||||||
|
|
||||||
tool_paths = {
|
tool_paths = {
|
||||||
'aquatone': '/opt/aquatone',
|
'aquatone': '/usr/local/bin/aquatone',
|
||||||
'tko-subs': '~/go/bin/tko-subs',
|
'tko-subs': '~/go/bin/tko-subs',
|
||||||
'tko-subs-dir': '~/go/src/github.com/anshumanbh/tko-subs',
|
'tko-subs-dir': '~/go/src/github.com/anshumanbh/tko-subs',
|
||||||
'subjack': '~/go/bin/subjack',
|
'subjack': '~/go/bin/subjack',
|
||||||
|
|||||||
Reference in New Issue
Block a user