Tuesday, March 14, 2017

Try development environment with xcode

For the project, i choose proximac from github. 
At this time proximac only support SOCKS proxy, so i try to make it support https proxy.  But there are a lot of empty space in my mind and it's hard for my reptilian brain to understand all of this.

Here are a few additional parts..



Add variable proxy_type, 0 for SOCKS, 1 for HTTPS. 192.168.3.33 is gateway with https proxy listen on port 443 (not a socks proxy, but https proxy that support http connect request).
 
 
 
Add simple http data parser to collect interesting data. And the other hardcoded style on random location inside local.c file.
 
 
Test query with curl -L (follow location) success.  
 
Tested method and response with curl only:
  • Method (GET, CONNECT)
  • Response (200, 301, 302)
Other method and response not tested yet. 
 
Discover it, sometimes "nread" from libuv give us invalid size of buf, but the current buf data is valid. I think it's because proximac inject header data and append null byte after the port (ipPortNullOtherData).