Jump to content

Everse Relay?


Recommended Posts

I've been trying to Relay services from multiple computers to 1 main server.

What I made is something like this.

Relay:

Server:

# ncat -l [relay port] -c 'ncat [client address] [service port];

User:

# ssh user@[server address] -p [relay port];

Using this the user will be able to ssh in to the client computer without having to know the clients specific address/port.

While this works great you still need a service like dyndns & setup port forwarding to be able to do this.

I would like to create a script that does the same but using the principe of a reverse shell,

enabling the user to connect to the service from the server.

Reverse Shell:

Client:

# ncat [server address] [port] -e '/bin/bash';

Server:

# ncat -l --broker [port];

User:

# ncat [server address] [port];

This is a similar solution however only for ssh and isn't secure, doesn't have tab completion,...

Does anyone know a good solution for my problem?

Obviously it doesn't have to use ncat, however I would prefer a cross platform solution...

THX

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...