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

Error when starting stage listener with encryption #1848

Open
karlmax1342 opened this issue Jan 4, 2025 · 0 comments
Open

Error when starting stage listener with encryption #1848

karlmax1342 opened this issue Jan 4, 2025 · 0 comments

Comments

@karlmax1342
Copy link

karlmax1342 commented Jan 4, 2025

When I try to generate a stage listener using command

stage-listener --url tcp://<ip>:8443 --profile win64 --aes-encr
ypt-key  5c2c2e69cfe723eabd6962c730fd9398 --aes-encrypt-iv 116520be5893cfa4313c67226c6d9
f29

I get the following error:

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({0x1784400, 0x989c6d0})
        runtime/panic.go:884 +0x213
crypto/cipher.NewCBCEncrypter({0x98b45a0, 0xc00040b980}, {0xc000500060, 0x20, 0x20})
        crypto/cipher/cbc.go:51 +0xcc
github.com/bishopfox/sliver/util.PreludeEncrypt({0xc00383e000?, 0xee90dc, 0x20?}, {0xc00
043d710, 0x20, 0x20}, {0xc000500060, 0x20, 0x20})
        github.com/bishopfox/sliver/util/cryptography.go:48 +0x1f6
github.com/bishopfox/sliver/client/command/jobs.StageListenerCmd(0xc0004048e0, 0xc0000ca
5a0)
        github.com/bishopfox/sliver/client/command/jobs/stage.go:121 +0x5c5
github.com/bishopfox/sliver/client/command.BindCommands.func38(0xc000383800?)
        github.com/bishopfox/sliver/client/command/commands.go:492 +0x45
github.com/desertbit/grumble.(*App).RunCommand(0xc00045c7e0, {0xc000aa0000?, 0xa1?, 0x98
9c4f8?})
        github.com/desertbit/[email protected]/app.go:273 +0x19f
github.com/desertbit/grumble.(*App).runShell(0xc00045c7e0)
        github.com/desertbit/[email protected]/app.go:485 +0x4c6
github.com/desertbit/grumble.(*App).RunWithReadline(0xc00045c7e0, 0xc0006148e8)
        github.com/desertbit/[email protected]/app.go:407 +0x570
github.com/desertbit/grumble.(*App).Run(0xc00045c7e0)
        github.com/desertbit/[email protected]/app.go:291 +0x125
github.com/bishopfox/sliver/client/console.Start({0x991bb08?, 0xc0003af3f0}, 0x96d23e0,
0x96d2960, 0x1)
        github.com/bishopfox/sliver/client/console/console.go:145 +0x577
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(0xa489ce0?, {0x1a24587?, 0x0?, 0x0?})
        github.com/bishopfox/sliver/server/cli/cli.go:138 +0xdc
github.com/spf13/cobra.(*Command).execute(0xa489ce0, {0xc000052290, 0x0, 0x0})
        github.com/spf13/[email protected]/command.go:944 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xa489ce0)
        github.com/spf13/[email protected]/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/[email protected]/command.go:992
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

I generated the key using generate-random.org with the cipher aes-cbc-128, and am on gentoo linux using the most recent release binary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant