c*t
1 楼
我遇到这样一个问题。如何自动upgrade/downgrade家用路由器的firmware (C++)? 我
的方法不灵:
一般firmware upgrade page是一个表格,有一个文件upload field,一个submit
button.
以下是我的方法的一个sample:
/// from 3.01.31 to 3.01.25
CString url = "http://" + RouterIP + "/cgi-bin/upgrade.exe";
CString ref = "http://" + RouterIP + "/system_f.stm";
CString request = "-----------------------------7d715a3150268";
request += "\nContent-Disposition: form-data; name=\"target\"";
request += "\n\n5";
request += "\n-----------------------------7d715a3150268";
reques
的方法不灵:
一般firmware upgrade page是一个表格,有一个文件upload field,一个submit
button.
以下是我的方法的一个sample:
/// from 3.01.31 to 3.01.25
CString url = "http://" + RouterIP + "/cgi-bin/upgrade.exe";
CString ref = "http://" + RouterIP + "/system_f.stm";
CString request = "-----------------------------7d715a3150268";
request += "\nContent-Disposition: form-data; name=\"target\"";
request += "\n\n5";
request += "\n-----------------------------7d715a3150268";
reques