mirror of
https://github.com/itsyourap/JioFiber-Home-Gateway.git
synced 2025-01-22 09:25:40 +00:00
57 lines
2.2 KiB
Markdown
57 lines
2.2 KiB
Markdown
# Check Available Versions For JF Router Firmwares
|
|
|
|
*Disclaimer: - This is Only for educational purposes, No one is responsible for any type of damage.*
|
|
|
|
1. First go to `http://fota.slv.fxd.jiophone.net/` using your PC Browser.
|
|
2. Open Developer Tools and Click on the Console option.
|
|
3. At the top of the console window (just at the right of Filter box), you will find a spinner named `Custom levels`. Click it and turn off the `Error` checkbox.
|
|
4. Copy the script below and paste into the console.
|
|
5. In the console, edit the variables `router.manufacturer`, `router.model`, `router.firmwarePrefix`, `currentVersion` and `maxVersion` according to your need.
|
|
6. Press Enter in the console which will show the Router Firmware versions along with their URLs.
|
|
|
|
```js
|
|
/*
|
|
1. Goto http://fota.slv.fxd.jiophone.net/
|
|
2. Replace router options and current and max versions accordingly
|
|
3. Run it in browser developer console, to scan for available firmware versions.
|
|
*/
|
|
|
|
function precisionRound(number, precision) {
|
|
const factor = Math.pow(10, precision);
|
|
return Math.round(number * factor) / factor;
|
|
}
|
|
|
|
function checkFirmwareExists(version, url)
|
|
{
|
|
var http = new XMLHttpRequest();
|
|
http.open('HEAD', url);
|
|
http.onreadystatechange = function() {
|
|
if (this.readyState === this.DONE) {
|
|
if (this.status !== 404){
|
|
console.log(`${version} : ${url}`);
|
|
}
|
|
}
|
|
};
|
|
http.send();
|
|
}
|
|
|
|
async function loadFirmwares() {
|
|
const router = {
|
|
manufacturer: "Sercomm", // Replace this with your Router Manufacturer (Sercomm, Skyworth, Arcadyan, etc...)
|
|
model: "JCOW414", // Replace this with your Router Model Name (JCOW414, JCOW411, etc...)
|
|
firmwarePrefix: "SRCMTF1_JCOW414_R", // Replace this with your Router Firmware Version Prefix (SRCMTF1_JCOW414_R, SKYWTF1_JCOW407_R, ARCNTF1_JCOW411_R, etc...)
|
|
};
|
|
|
|
let currentVersion = 2.3;
|
|
const maxVersion = 3;
|
|
|
|
while (currentVersion < maxVersion) {
|
|
const url = `http://fota.slv.fxd.jiophone.net/ONT/${router.manufacturer}/${router.model}/${router.firmwarePrefix}${precisionRound(currentVersion, 2)}.img`;
|
|
checkFirmwareExists(precisionRound(currentVersion, 2), url);
|
|
currentVersion += 0.01;
|
|
}
|
|
}
|
|
|
|
loadFirmwares();
|
|
```
|