go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

How to set proxy host and port for MIM

Open saikrishna321 opened this issue 2 years ago • 4 comments

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/

saikrishna321 avatar Jan 03 '24 09:01 saikrishna321

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 😅

shamanec avatar Jan 08 '24 17:01 shamanec

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

danielpaulus avatar Feb 14 '24 21:02 danielpaulus

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

danielpaulus avatar Feb 14 '24 21:02 danielpaulus

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

bikee1235 avatar Apr 29 '24 12:04 bikee1235