1
0

Move gdb listen address to params

This commit is contained in:
2018-11-25 14:53:56 +00:00
parent b6dc7e892f
commit 804e0b4879
2 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,8 @@ func main() {
debugCommand := app.Command("debug", "Kernel debug environment")
debugCommandFlag := debugCommand.Flag("kernel", "Regex (first match)")
debugKernel := debugCommandFlag.Required().String()
debugFlagGDB := debugCommand.Flag("gdb", "Set gdb listen address")
debugGDB := debugFlagGDB.Default("tcp::1234").String()
// Check for required commands
for _, cmd := range []string{"timeout", "docker", "qemu"} {
@ -94,7 +96,8 @@ func main() {
case genExploitCommand.FullCommand():
err = genConfig(config.KernelExploit)
case debugCommand.FullCommand():
err = debugHandler(kcfg, *path, *debugKernel, *dockerTimeout)
err = debugHandler(kcfg, *path, *debugKernel, *debugGDB,
*dockerTimeout)
}
if err != nil {