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

Is there a way to send two separate messages? #147

Open
grappas opened this issue Jun 8, 2023 · 2 comments
Open

Is there a way to send two separate messages? #147

grappas opened this issue Jun 8, 2023 · 2 comments

Comments

@grappas
Copy link

grappas commented Jun 8, 2023

I need to send 2 messages (which first is the password)
I've tried:
wscat -c ws://127.0.0.1:33074/rcon -x "$(printf "secret\ncommand")"
But string is treated as single command. In result pong is returned as bad password.
I've also tried:
wscat -c ws://127.0.0.1:33074/rcon -x $(printf "secret\ncommand")
But in result command is ignored.

wscat -c ws://127.0.0.1:33074/rcon -x $(printf "secret\n") -x $(printf "command\n")
Also returns bad password

@Lykr
Copy link

Lykr commented Jul 10, 2023

It doesn't seem to support sending two message with -x.

Why not just open the connection without -x and then send two separate messages? Or just combine two messages into single message and separate them at server side.

@grappas
Copy link
Author

grappas commented Jul 10, 2023

It doesn't seem to support sending two message with -x.

Yes. I'm asking for support.

Why not just open the connection without -x and then send two separate messages?

I want to put it into the script. Now you see.

Or just combine two messages into single message and separate them at server side.

I'm not an author/owner. Project (server) is non-free.

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

2 participants