Comments (6)
@shazow Related to this, I've been working on a script to automatically join and speak on a server to simulate load. However, I've been having trouble authenticating (and the go documentation hasn't been very useful). What type of authentication does the server use? Based on the code it looks like PublicKey
or KeyboardInteractive
, but I haven't had much success with using either.
Unfortunately most example code I've found online is for password authentication, which the server doesn't use.
from ssh-chat.
@empathetic-alligator Glad you asked! I have some great news for you. I wrote precisely that piece yesterday, but I don't have the piece you're working on. :)
https://github.com/shazow/ssh-hammer
Feel free to steal any/all of that code, or contribute back to it. Whatever makes sense.
from ssh-chat.
Btw, in case it wasn't clear, please don't use this on the live chat.shazow.net, your IP will get blacklisted by iptables. :)
from ssh-chat.
@shazow I've got a version working where the program can join the chat server, but so far I've been unable to have it send any messages.
Before it had only been making a connection:
2014-12-17 20:03:13.524 INFO Connection #10 from: 127.0.0.1:59996, hammer, SSH-2.0-Go
But now I've got it to actually display the join/leave messages, which may partly simulate what we're looking for:
2014-12-17 18:52:54.230 INFO Connection #9 from: 127.0.0.1:59898, hammer, SSH-2.0-Go
2014-12-17 18:52:54.230 DEBUG Broadcast to 2: * hammer joined. (Total connected: 2)
2014-12-17 20:02:52.517 DEBUG Broadcast to 1: * hammer left.
from ssh-chat.
Take a look at https://github.com/peterhellberg/check-ssh-chat, too.
from ssh-chat.
Tests are in a much better state now, yay.
from ssh-chat.
Related Issues (20)
- [Feature Request] Plugin support HOT 1
- Send messages on \n and not \r\n HOT 6
- Add system bell support to all messages, not just /msg or /reply's HOT 3
- Unable to start using `--unsafe-passphrase` HOT 1
- fuzzer crash HOT 1
- /op USER remove only works until USER reconnects HOT 1
- server: Support multiple identity private keys
- /back: Needs confirmation message
- Whitelist not applying HOT 10
- "ssh.chat" refuse connection HOT 2
- Latest DoS HOT 7
- 8 Vulnerable Dependences per OWASP Dependency Check HOT 2
- Known bug: ssh rsa negotiation issue HOT 5
- COMMANDS ARE CASE SENSITIVE HOT 5
- bot: Skip motd on connect HOT 2
- bot: Don't include emoji prefixes in DMs
- Emojis still appear in TERM=bot mode private messages HOT 1
- Release v1.11 proper HOT 1
- Couldn't connect with allowlist or get admin HOT 2
- problem with using backspace for Chinese characters(one char of 2 bytes) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssh-chat.