danielpaulus / go-ios

This is an operating system independent implementation of iOS device features. You can run UI tests, launch or kill apps, install apps etc. with it.
MIT License
900 stars 174 forks source link

How to set proxy host and port for MIM #323

Open saikrishna321 opened 8 months ago

saikrishna321 commented 8 months ago

Is it possible to set proxy from go-ios??

Similar to what is mentioned in this block https://www.andyibanez.com/posts/intercepting-network-mitmproxy/

shamanec commented 8 months ago

I suppose you can create a proxy profile and install it on the device with go-ios but I have to check if I am not imagining it is possible 😅

danielpaulus commented 7 months ago

ios httpproxy [] [] --p12file= [--password=] set global http proxy on supervised device. Use the password argument or set the environment variable 'P12_PASSWORD'

danielpaulus commented 7 months ago

you can create the needed certificates with ios prepare create-cert and then supervise a device with ios prepare

bikee1235 commented 4 months ago

Getting issue while setting proxy in ios Using this command

ios --udid=1c5d570c9b923320fbff93e99d0eac501c412346 httpproxy 172.16.50.3 8888 --p12file=p12cert.p12 --password=Password12321

{"err":"escalate response had error map[Status:CertificateRejected]","level":"fatal","msg":"failed","time":"2024-04-29T08:57:08Z"}

device version is 15.0 iPhone x ios command version : {"version":"v1.0.121"} Node version : v18.17.0

p12cert.p12 certificate genrate from Apple configrator 2

@danielpaulus what could be the issue

Thanks