Giter Site home page Giter Site logo

Comments (10)

NHAS avatar NHAS commented on May 31, 2024

You're going to think Im an idiot. But that never even crossed my mind. Yes of course I can add that and am annoyed at myself for not doing so earlier.

from reverse_ssh.

tdragon6 avatar tdragon6 commented on May 31, 2024

Thanks, looking forward to your new release! Because this function is needed in the project I develop!

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

This is now on the unstable branch please check it out and then I'll do a release.

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

Example format:

catcher$ ls
834f090292ef057a662ce7d4db672ffc7b1b2fe7 26efe5d48d08c519362e62ad7899e21a030b2179 nhas.test-machine 10.0.0.14:34648, version: SSH-v1.0.14-3-g99d7ed8 arch: linux_amd64

from reverse_ssh.

tdragon6 avatar tdragon6 commented on May 31, 2024

The operating system information exists in ls, but it is not added in webhook.

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

Oops yep totally forgot to do that. Sorry!

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

Sweet, I've added it to the ClientVersion in ssh. Which is a bit more robust than what I was doing before. Does mean that you'll have to parse the version string which is now in the following format:

# <SSH-> <git tag> <arch>
SSH-v1.0.14-4-g411921e-linux_amd64

E.g

catcher$ ls
b9353e57f542e76ff144989edb951fa08e9d8bf7 4b1d7bf85c633b3bb2c14be5554456745318887a nhas.test-machine 10.0.0.14:45712, version: SSH-v1.0.14-4-g411921e-linux_amd64

Webhook:

{"Full":"{\"Status\":\"connected\",\"ID\":\"5c75978a7418f40c38f215c95bf4a551cf5318f9\",\"IP\":\"10.0.0.14:48192\",\"HostName\":\"nhas.dkowhan\",\"Version\":\"SSH-v1.0.14-4-g411921e-linux_amd64\",\"Timestamp\":\"2023-02-23T08:03:55.158264245+13:00\"}","text":"nhas.dkowhan (5c75978a7418f40c38f215c95bf4a551cf5318f9) SSH-v1.0.14-4-g411921e-linux_amd64 connected"}

from reverse_ssh.

tdragon6 avatar tdragon6 commented on May 31, 2024

Nice! Thanks! If there are no other problems, it can be merged into the mainline branch.

from reverse_ssh.

tdragon6 avatar tdragon6 commented on May 31, 2024

Sorry, it just occurred to me, if it's convenient:

  1. In the webhook, separate the user name of the client from the host name, and add a new user name field.
  2. Increase the connection time of the client in ls.

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

Adding the seperate fields for username and hostname is a bit of a pain to be honest with you. I'd prefer to leave then as is, it's fairly easy to split it by the first dot.

I'm not sure what you mean by increase connection time with ls.

from reverse_ssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.