Re: command-line reverse connection tunnel?

From: David Pick (d.m.pick@qmul.ac.uk)
Date: 12/20/02

  • Next message: Ivan Buetler: "Re: command-line reverse connection tunnel?"
    To: "Nick Jacobsen" <nick@ethicsdesign.com>
    Date: Fri, 20 Dec 2002 16:05:59 +0000
    From: David Pick <d.m.pick@qmul.ac.uk>
    
    

    > To explain, I need a program on SERVER1 that creates a connection to
    > CLIENT1. the connection that is created to CLIENT1 then needs to listen on
    > port 3389. When CLIENT1 recieves a connection, it needs to pass it through
    > the existing pipe, and SERVER1 needs to connect to itself on port 3389.

    This sounds remarkably like SSH port forwarding with CLIENT1
    acting as an SSH server and SERVER1 acting as an SSH client.

    > Sort of confusing, I know, and any other suggestions would be welcome, with
    > the stipulation that, again, SERVER1 can only accept outside connections
    > from port 80, but can make connection to any computer.

    The fact that SERVER1 can accept connections on port 80 is not
    relevant to the ooperation of the tunnel. It *is* relavent to
    the process of getting the tunnel established. You'll need to
    set up SERVER1 so that when it gets a particular HTTP request
    it runs the SSH client program to establish a tunnel to the
    source of the HTTP request. All this assums that you can run
    and install code on SERVER1. If you can't, you're stuffed, but
    then presumably the administrators of SERVER1 had good reasons
    for not allowing you this sort of access... Given that this is
    a "pen-test" list I would guess that you don't have the access
    you want to SERVER1.

    It would also be quite possible to use "HTTPTunnel" but that,
    again, requires the server end of HTTPTunnel to get installed
    on SERVER1.

    Of course, again since this is a "pen-test" list, I don't need
    to point out that ***if*** the server is set up correctly, you
    won't be able to gain unauthorized access to SERVER1 using HTTP
    access.

    -- 
    	David Pick
    ----------------------------------------------------------------------------
    This list is provided by the SecurityFocus Security Intelligence Alert (SIA)
    Service. For more information on SecurityFocus' SIA service which
    automatically alerts you to the latest security vulnerabilities please see:
    https://alerts.securityfocus.com/
    


    Relevant Pages

    • socket error
      ... client1 makes a connection to server1 and sends some data. ... raise error(EBADF, 'Bad file descriptor') ...
      (comp.lang.python)
    • Re: command-line reverse connection tunnel?
      ... I wrote a suite of Tcl scripts to accomplish this goal a few years ago, it has been listed on SecurityFocus for a long time as reverseutils. ... >have a machine behind a firewall that lets in only port 80, ... I need a program on SERVER1 that creates a connection to ... and SERVER1 needs to connect to itself on port 3389. ...
      (Pen-Test)
    • command-line reverse connection tunnel?
      ... have a machine behind a firewall that lets in only port 80, ... I need a program on SERVER1 that creates a connection to ... and SERVER1 needs to connect to itself on port 3389. ... This list is provided by the SecurityFocus Security Intelligence Alert ...
      (Pen-Test)
    • Can I have a second TRY inside the first TRY/CATCH in ASP.NET ???
      ... CATCH to open my database connection. ... If the first connection to Server1 ... Dim myConnection as ODBCConnection ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Sybase Connection Help
      ... Let's see your connection string. ... > I am having problems with connecting to sybase using visual studio. ... > database on a server (Server1) using tool --> Connect to Database. ...
      (microsoft.public.dotnet.framework.adonet)