Giter Club home page Giter Club logo

Comments (13)

ChrisPritchard avatar ChrisPritchard commented on August 11, 2024 2

Existing state of this shamblesdelightful example of a project:
no-service-for-you

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

The project already uses what you describe to determine if its in a windows service.

image

image

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

Whats missing seems to be the start command

from reverse_ssh.

ChrisPritchard avatar ChrisPritchard commented on August 11, 2024

Oh. Alright ill tweak that and test it

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

For some additional info, rssh can install itself as a service, and I have used it there. So Im not sure what the issue is here.

from reverse_ssh.

ChrisPritchard avatar ChrisPritchard commented on August 11, 2024

The issue is described in the original comment, where you are hijacking an existing service to assume its identity. That is, for example, you have write access over a binary or a binary's location used by a service that isn't presently running or you can stop and start. You replace the binary then start the service - at present this will fail with the message in the prior screenshot.

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

Hm, thanks.

I think it may be due to this: golang/go#44921

As I cant spot anything that would make rssh unable to communicate as a service otherwise

from reverse_ssh.

ChrisPritchard avatar ChrisPritchard commented on August 11, 2024

Hmm okay. Ill do some testing - see if it functions properly with a low privilege service

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

Please try with the unstable branch, I've just bumped the modules

from reverse_ssh.

ChrisPritchard avatar ChrisPritchard commented on August 11, 2024

Just tried and it starts fine now, ta. Working well with nt authority\system coming through for a service run as LocalSystem. However, it won't stop properly:
no-service-stop
Somewhat debatable if this is an issue - a service that won't stop is possibly suspicious, but stopping a rssh client is not really what you want anyway

from reverse_ssh.

ChrisPritchard avatar ChrisPritchard commented on August 11, 2024

It can still be stopped by killing the client from the rssh catcher interface. I'm fine to close this issue, ta.

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

Ah yes, actually thats a bug funny enough. The break statement is breaking the switch rather than the outer for loop

from reverse_ssh.

NHAS avatar NHAS commented on August 11, 2024

This change is now on unstable

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.