Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic when creating new profile #948

Closed
drdsec opened this issue Oct 17, 2022 · 3 comments
Closed

Panic when creating new profile #948

drdsec opened this issue Oct 17, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@drdsec
Copy link

drdsec commented Oct 17, 2022

Running into the following error with the latest version of Sliver - the same command works on older versions.

[server] sliver > profiles new --mtls ec2-3-137-95-129.us-east-2.compute.amazonaws.com:443 --skip-symbols --format shellcode win-shellcode6

stacktrace from panic:
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
github.com/bishopfox/sliver/server/cli.glob..func4.1()
github.com/bishopfox/sliver/server/cli/cli.go:119 +0x72
panic({0x15bf380, 0xc0160384e0})
runtime/panic.go:838 +0x207
github.com/desertbit/grumble.FlagMap.String(0x1?, {0x17d5d4c, 0x8})
github.com/desertbit/grumble@v1.1.1/flagmap.go:58 +0x105
github.com/bishopfox/sliver/client/command/generate.parseCompileFlags(0xc015b99780, 0xc015a18230)
github.com/bishopfox/sliver/client/command/generate/generate.go:348 +0x10dd
github.com/bishopfox/sliver/client/command/generate.ProfilesNewCmd(0xc015b99780, 0xc015a18230)
github.com/bishopfox/sliver/client/command/generate/profiles-new.go:31 +0x53
github.com/bishopfox/sliver/client/command.BindCommands.func148(0xc015bbd9e0?)
github.com/bishopfox/sliver/client/command/commands.go:1580 +0x45
github.com/desertbit/grumble.(*App).RunCommand(0xc01175d6c0, {0xc015ecf880?, 0x79?, 0xc69c7c0?})
github.com/desertbit/grumble@v1.1.1/app.go:273 +0x19f
github.com/desertbit/grumble.(*App).runShell(0xc01175d6c0)
github.com/desertbit/grumble@v1.1.1/app.go:485 +0x4c6
github.com/desertbit/grumble.(*App).RunWithReadline(0xc01175d6c0, 0xc018c7e8d0)
github.com/desertbit/grumble@v1.1.1/app.go:407 +0x53f
github.com/desertbit/grumble.(*App).Run(0xc01175d6c0)
github.com/desertbit/grumble@v1.1.1/app.go:291 +0x11a
github.com/bishopfox/sliver/client/console.Start({0xc6fe560?, 0xc013c7a910}, 0xc4bbd28, 0xc4bc270, 0x1)
github.com/bishopfox/sliver/client/console/console.go:145 +0x557
github.com/bishopfox/sliver/server/console.Start()
github.com/bishopfox/sliver/server/console/console.go:61 +0x3d8
github.com/bishopfox/sliver/server/cli.glob..func4(0xd13f080?, {0x17c1e7d?, 0x0?, 0x0?})
github.com/bishopfox/sliver/server/cli/cli.go:138 +0xdf
github.com/spf13/cobra.(*Command).execute(0xd13f080, {0xc000102310, 0x0, 0x0})
github.com/spf13/cobra@v1.6.0/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xd13f080)
github.com/spf13/cobra@v1.6.0/command.go:1040 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.6.0/command.go:968
github.com/bishopfox/sliver/server/cli.Execute()
github.com/bishopfox/sliver/server/cli/cli.go:145 +0x25
main.main()
github.com/bishopfox/sliver/server/main.go:43 +0x17

@moloch-- moloch-- added the bug Something isn't working label Oct 17, 2022
@rkervella
Copy link
Member

Panics on missing template flag for profiles. cc @moloch--

@moloch--
Copy link
Member

That'd do it.

moloch-- added a commit that referenced this issue Oct 17, 2022
@drdsec
Copy link
Author

drdsec commented Oct 17, 2022

Confirmed as resolved - thank you for the fast response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants