install masscan now adds CAP_NET_RAW linux capability to masscan (#23)

closes #21
This commit is contained in:
epi052
2020-02-20 19:10:59 -06:00
committed by GitHub
parent d1b5470858
commit 6613ab69a9
2 changed files with 2 additions and 1 deletions

View File

@@ -170,7 +170,7 @@ class ReconShell(cmd2.Cmd):
# name for the option came from @AlphaRingo # name for the option came from @AlphaRingo
command.pop(command.index("--sausage")) command.pop(command.index("--sausage"))
webbrowser.open("localhost:8082") # hard-coded here, can specify different with the status command webbrowser.open("127.0.0.1:8082") # hard-coded here, can specify different with the status command
if args.verbose: if args.verbose:
# verbose is not a luigi option, need to remove it # verbose is not a luigi option, need to remove it

View File

@@ -40,6 +40,7 @@ tools = {
"make -s -j -C /tmp/masscan", "make -s -j -C /tmp/masscan",
f"mv /tmp/masscan/bin/masscan {tool_paths.get('masscan')}", f"mv /tmp/masscan/bin/masscan {tool_paths.get('masscan')}",
"rm -rf /tmp/masscan", "rm -rf /tmp/masscan",
f"sudo setcap CAP_NET_RAW+ep {tool_paths.get('masscan')}",
], ],
}, },
"amass": { "amass": {