I accomplish this by using NTLMaps and sharing Wifi from my computer to the devices.
In NTLMaps folder locater server.cfg and open it in a text editor
Change the following lines of the config file:
- PARENT_PROXY:[Proxy Address]
(e.g. PARENT_PROXY:127.0.0.1 for burpsuite)
- PARENT_PROXY_PORT:[####]
(e.g. PARENT_PROXY_PORT:8080 for burpsuite)
- ALLOW_EXTERNAL_CLIENTS:1
- NT_DOMAIN:Computer-Name-iMac.local (This is name of local network on Mac, found at Settings > Sharing > Hit Edit on Computer Name, Not sure where it is on PC settings but shouldn't be hard to find.)
Connect Device to Shared Proxy.
Edit the connection settings on that device to use a proxy for your shared internet.
iOS
- Settings > Wifi > Your Shared Networ > Info Button HTTP Proxy > Manual
- Set Server to the
value found for Router in the Table above this in the menu
(Settings > WiFi > IP Address Section > DHCP Tab > Server)
- Set Port to LISTEN_PORT found in NTMLMaps server.cfg file (Should be defaulted to
5865)
- Install certificate of proxy you're using on device (for burp)
On Android
- Obtain the Networks DCHP Server address with a program like Wifi Inspector or use iOS device connected to same network to get server address
- Go to Settings > WiFi
Hold down the name of the Network you're connected and select Modify Network
- Advanced Options
- Proxy set to Manual
- Proxy Hostname to IP address from step 1
- Port to LISTEN_PORT found in NTMLMaps server.cfg file (Should be defaulted to 5865)
- IP Settings DHCP should be fine.
- Save
- Install certificate of proxy you're using on device (Note will require a passcode being used on lock screen) (for burp)
Open terminal
Run the main.py file for NTLMaps (I set a bash profile alias so I can run it on quick from terminal), then use the internet on device once it's been set up to use the proxy. Note, on Android if the connection is not setup to use the proxy before booting the app it won't use it until you quit and reboot.