How to forward MITM traffic through SSH tunnel?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....



Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A



Step 1: MITM



Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.



Step 2: SSH Tunnel



Client 2 sets up a SSH tunnel that connects to Server A.



Step 3: SOCKS5 Proxy
Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.



Step 4: My Goal
Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.



Is it possible and how do I do it?



Thanks in advanced,



Josh







share|improve this question
























    up vote
    2
    down vote

    favorite












    Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....



    Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A



    Step 1: MITM



    Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.



    Step 2: SSH Tunnel



    Client 2 sets up a SSH tunnel that connects to Server A.



    Step 3: SOCKS5 Proxy
    Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.



    Step 4: My Goal
    Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.



    Is it possible and how do I do it?



    Thanks in advanced,



    Josh







    share|improve this question






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....



      Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A



      Step 1: MITM



      Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.



      Step 2: SSH Tunnel



      Client 2 sets up a SSH tunnel that connects to Server A.



      Step 3: SOCKS5 Proxy
      Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.



      Step 4: My Goal
      Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.



      Is it possible and how do I do it?



      Thanks in advanced,



      Josh







      share|improve this question












      Using the arpspoof command I have created a MITM attack on another device. I would now like to forward the traffic through an SSH tunnel (SOCKS5 Proxy). Heres an example....



      Client 1-----MITM----->Client 2------MITM-----(Router)---SSH Tunnel---->Server A



      Step 1: MITM



      Client 2 uses arpspoof to trick Client 1 into thinking that Client 2 is the router. Client 2 uses arpspoof to trick the Router into thinking Client 2 is Client 1.



      Step 2: SSH Tunnel



      Client 2 sets up a SSH tunnel that connects to Server A.



      Step 3: SOCKS5 Proxy
      Client 2 sets up a SOCKS5 Proxy running on localhost (127.0.0.1) that forwards traffic to Server A.



      Step 4: My Goal
      Forward the traffic from Client 1 to Client 2 and forward that to the SOCKS5 proxy and then forward that through the SSH Tunnel Server A.



      Is it possible and how do I do it?



      Thanks in advanced,



      Josh









      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 24 at 2:39









      JBis

      1163




      1163

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419241%2fhow-to-forward-mitm-traffic-through-ssh-tunnel%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419241%2fhow-to-forward-mitm-traffic-through-ssh-tunnel%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)