paulo-correia / ZTE_API_and_Hack

ZTE Modem API and Hack
103 stars 28 forks source link

ZTE mf286 #1

Closed karkaaa closed 4 years ago

karkaaa commented 4 years ago

hello,

i have problems:

# php index.php login on
array(3) {
  ["data"]=>
  string(69) "isTest=false&goformId=LOGIN&password=base64password"
  ["result"]=>
  string(14) "{"result":"1"}"
  ["decode"]=>
  array(1) {
    ["result"]=>
    string(1) "1"
  }
}
# php index.php wifi on
array(3) {
  ["data"]=>
  string(65) "goformId=SET_WIFI_INFO&isTest=false&m_ssid_enable=0&wifiEnabled=1"
  ["result"]=>
  string(20) "{"result":"failure"}"
  ["decode"]=>
  array(1) {
    ["result"]=>
    string(7) "failure"
  }
}

i found this and get 3:

# curl "http://192.168.0.1/goform/goform_set_cmd_process" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Referer: http://192.168.0.1/index.html" --data "isTest=false&goformId=LOGIN&password=base64passowrd"
{"result":"3"}

maybe it is possible enable wifi like this last login URL?

karkaaa commented 4 years ago

i was blocked in GUI :)

now i get:

zte# php index.php login on
array(3) {
  ["data"]=>
  string(69) "isTest=false&goformId=LOGIN&password=base64password"
  ["result"]=>
  string(14) "{"result":"3"}"
  ["decode"]=>
  array(1) {
    ["result"]=>
    string(1) "3"
  }
}

zte# php index.php wifi on
array(3) {
  ["data"]=>
  string(65) "goformId=SET_WIFI_INFO&isTest=false&m_ssid_enable=0&wifiEnabled=1"
  ["result"]=>
  string(20) "{"result":"failure"}"
  ["decode"]=>
  array(1) {
    ["result"]=>
    string(7) "failure"
  }
}
paulo-correia commented 4 years ago

The base64password is the same password in GUI, you must change $passwd = ''; in index.php. Here is your password not base64, the program auto change to base64. The model is mf286?

karkaaa commented 4 years ago

Password same as in GUI but not working. Model is MF286.

paulo-correia commented 4 years ago

On the $_password is your open password, not base64 same in GUI.

karkaaa commented 4 years ago

i insert plain text password into index.php