shadow-1 / yi-hack-v3

Alternative Firmware for Xiaomi Cameras based on Hi3518e Chipset
GNU General Public License v3.0
1.16k stars 154 forks source link

ProxyList change cannot be saved #188

Closed ianmum closed 6 years ago

ianmum commented 6 years ago

Yi 1080p Home

  1. Following advise from #102 I copied a few proxies (30 of them first, and then tried 500 of them at once) from http://spys.one/free-proxy-list/CN/ into ProxyChains-ng Configuration - under 'ProxyList', /tmp/temp_proxychains.conf, I was able to save the proxy sample at first, but eventually, I was unable to save anymore, I have tried formatting and copying into the two files again, I have also tried downgrading to another firmware and upgrade to the hacked one, neither worked - the reason I wanted to save again is I found I used the wrong format - having ':' between the ip and port.

  2. On ProxyChains-ng page loading, pressing F12 to developer mode, I can see there's an error thrown from proxy_config.html:114 'WebSocket connection to 'ws://10.1.1.5/xxx' failed: Could not decode a text frame as UTF-8.'

       Line 114: socket_info = new WebSocket(get_appropriate_ws_url(), "yi-hack-v3_info");
  3. After running 'Test Proxy List', it produces logs like below. My guessing is, somehow the temp_proxychains.conf file is filled with the invalid formatted proxy list and prevented it from being updated, if I could access this file and update the proxy list, it will work.

    proxychains4 -f /tmp/temp_proxychains.conf wget -O- -q -T 8 https://ipinfo.io/geo

    [proxychains] config file found: /tmp/temp_proxychains.conf [proxychains] preloading /home/yi-hack-v3/lib/libproxychains4.so error: invalid item in proxylist section: SOCKS5 153.3.4.48:1080

    Return Code: 1

  4. I also downloaded WinSCP to try to use FTP to access the files, but I do not know what host name, port number, and username/password I shall use.

proxychains

websocketerror

ianmum commented 6 years ago

It's resolved by using existing functionality, which is to first click 'Download Proxy List', and then click 'Save Selected Proxies', although none of the Proxies worked, it did overwrite my corrupted list