Code Monkey home page Code Monkey logo

jf-customisation's Introduction

JF-Customisation

This repository contains all the files and instructions to customize your JF ONT Gateway. You can grab your Gateway's firmware from Firmware or you can find instructions for miscellaneous customizations from Instructions.

Special Thanks to yashrastogi for getting the OTA URL of STB and RealEng1neer for arranging the ONT Firmware Links.

Available Instructions :-

  1. Getting Logs (dbglogs) from JF ONT Home Gateway

  2. Enable FTP on JF ONT Home Gateway (Might not work, check 5th instruction instead)

  3. Disable TR-069 on JF ONT Home Gateway (Might not work)

  4. Get Root Access on JF ONT Home Gateway (Might not work as JF changed the encryption key in R2.39 update! Please use this instead)

  5. Enable FTP Server with / as FTP Root

  6. Get any file directly from your JF Router's Filesystem to your pendrive

  7. Updated and Alternate Way to Get Root in JF ONT Home Gateway

  8. Key Guesser for Encrypted Router Configuration file

Others

  1. JF SIP Breakdown

Disclaimer

This is Only for educational purposes. No one is responsible for any type of damage.

jf-customisation's People

Contributors

itsyourap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jf-customisation's Issues

Backup file decryption error

~/JFC $ openssl aes-128-cbc -d -pass file:key.txt -in RKIOTFI20164045_JCOW407.enc -out output.txt

*** WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. bad decrypt 00858F6071000000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:providers/implementations/ciphers/ciphercommon_block.c:107:

firmware: SKYWTF1_JCOW407_R2.52.2

How to add startup script to enable FTP and others after restart/reboot

Thanks for your time for putting this together and sharing to others.

Is there any way to add start up script you're aware of. I tried /etc/init.d script to run commands by adding script and invoking another script but it doesn't seem to work.
The router has crontab but missing config file creating anything is running only under /tmp root path. I wonder is this kind of virtual env for telnet? nothing is persistent....,
Can we do this script in enc file execute code (I'm referring os execute code in config)?

Decryption is not succesfull

after using openssl to decrypt using the provided key file the file generated cosists of some chinese symbol and in the console its throwing message of bad decrypt. I am having router of firmware SRCMTF1_JCOW414_R2.41
image

JCOW404.key unable to decrypt my enc file

OpenSSL gives the following error

*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
20080000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:providers\implementations\ciphers\ciphercommon_block.c:124:

[help wanted] Failed to update configuration (checksum error)

I tried enabling FTP in my JioFiber following your steps,
While restoring it gives me checksum error even though i changed config.checksum = "0" in my decrypted file and continued.

My router description :
Model : JCO4032
Firmware : SRCMTF1_JCO4032_R2.35

api

hi.
i have been a jio fiber user for quite some time now and i feel pained in logging into the router to check stuff.

my idea. is there a way to get api access or something, like from a get/post which we can use existing solutions like homeassistant and connect the same there.
for example, i would like to see how many connected users i have on the router, the homeassistant would send a get request and get data from there or something like that.
just..... pushing ideas out

not able to decrypt using the key from /flash/secure/key.txt

I got the key: RRIOTJI00000524XXXXXXXXXXXXXXXXXXXXXXXXXXXX (<serial_number><32 char string>)
then i used this command to decrypt the back up file:
openssl aes-128-cbc -d -pass file:key.txt -in RRIOTJI00000524_JCOW411.enc -out RRIOTJI00000524_JCOW411.txt
openssl aes-128-cbc -d -md md5 -pass file:key.txt -in RRIOTJI00000524_JCOW411.enc -out RRIOTJI00000524_JCOW411.txt
had the same error

Using -iter or -pbkdf2 would be better.
bad decrypt
4087D438AD7F0000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:../providers/implementations/ciphers/ciphercommon_block.c:124:

OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

getting error while decrypting

Microsoft Windows [Version 10.0.19045.2604]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd C:\Users\CAPTAIN\Downloads

C:\Users\CAPTAIN\Downloads>openssl aes-128-cbc -d -pass file:key.txt -in CAPTAIN.enc -out output.txt
Can't open file key.txt
Error getting password
F0070000:error:80000002:system library:BIO_new_file:No such file or directory:crypto\bio\bss_file.c:67:calling fopen(key.txt, r)
F0070000:error:10000080:BIO routines:BIO_new_file:no such file:crypto\bio\bss_file.c:75:

Use gpon for our own use

I have done the telnet part. And got access to it.

I wanna use this as my own modem as my isp modem sucks
My isp requires a vlan id of 528 and a pppoe username and password

I have tried configuring .enc and flashing it with no success.

Any ways i can do this.

trying port forwarding on jio fiber?

hey so i am using my orange pi board as a pihole and DOH server on my JIO Fiber connection , i also tried to make a vpn using PiVPN it worked and the vpn was made using OpenVPN, but it uses the routers public ip address which is supposed to be dynamic but hasnt changed ever so that isnt the issue but the issue seems to be port forwarding as i cant reach my jf router via th e public address, is therr any way to actually enable port forwarding on the router if i enable the root user, just wanted to know before i go down that path, would appreciate any help and ideas otherwise too.

Failed to update router firmware

Hi, I'm trying to update my jiofiber router firmware to the latest version(R2.9) but I'm getting an error saying firmware file is invalid or corrupted. Tried multiple update files but getting the same error. Is this a know issue or am I missing something? Please look into this issue. Thanks.

Here's my router information :
Model - Skyworth JCOW407
Current firmware version - SKYWTF1_JCOW407_R2.52.2

How to connect to the router using telnet?

telnet: Unable to connect to remote host: Connection refused

I get this issue when I try to connect to the router
using this command = "telnet 192.168.29.1 23"

What should I do?

I have uploaded the file with the neccesary changes to my router (JCOW404)

Firmware URL changed

Hi,

The firmware URL changed. currently with your method I am getting upto 2.49, but last night router upgraded to 2.52, and I didn't get the url for that firmware.

image

└──╼ $ wget --spider http://fota.slv.fxd.jiophone.net/ONT/Sercomm/JCOW414/SRCMTF1_JCOW414_R2.52.img
Spider mode enabled. Check if remote file exists.
--2023-09-05 08:34:42--  http://fota.slv.fxd.jiophone.net/ONT/Sercomm/JCOW414/SRCMTF1_JCOW414_R2.52.img
Resolving fota.slv.fxd.jiophone.net (fota.slv.fxd.jiophone.net)... 2405:200:1606:1731::312c:b0b9, 2405:200:1606:1731::312c:b0ba, 49.44.194.80, ...
Connecting to fota.slv.fxd.jiophone.net (fota.slv.fxd.jiophone.net)|2405:200:1606:1731::312c:b0b9|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
Remote file does not exist -- broken link!!!

Do not install JioFiber network?

I recently installed jiofiber wired network for my projects. I got one WordPress project, which is to update the theme. I updated the theme after that I checked the updated website. I was unable to see the updated version of the website by using jiofiber net when I used another network I can see the updated theme. For this reason, I lost my project. So Software employees and software companies do not use jiofiber network.

The Router does not accept the re-encrypted .enc file, and declares it as an invalid file.

Expected Behavior: To Successfully be able to import the .enc file.

Actual Behavior:
image

Steps to Reproduce:

  1. Decrypt the file using the keyguesser.py script
  2. Add the starting of telnet daemon and other iptable configurations to the config file and then replacing the old md5 hash with the new correct one.
  3. Re-Encrypt the file using the Hex version of the key.

Verification: keyguesser was used again to verify if the key is able to decrypt the modified encrypted configuration. (It returned the same key and correct decrypted data)

JCO110 Key may be changed?

trying to decrypt the configuration file for JCO110 with firmware ARCTF1_JCO110_R1.148 leads to a bad decrypt.
Can you explain how did you extracted the encryption keys in the first place?
How did you reverse engineer the firmware? Thanks you are doing awesome work.

Unable to get the key file from Jio Router

I ran the script but I got Failed output for all trying keys. Please help to get the key file from my Jio router.

Firmware: SRCMTF1_JCOW414_R2.41
Model No: JCOW414

Thank you in advance and I really appreciate your help.

Error while execution please help

Can't open "<JCO4032.key>" for reading, Invalid argument
80200000:error:8000007B:system library:BIO_new_file:no protocol option:crypto\bio\bss_file.c:67:calling fopen(<JCO4032.key>, r)
80200000:error:10080002:BIO routines:BIO_new_file:system lib:crypto\bio\bss_file.c:77:
aes-128-cbc: Use -help for summary

Autostart scripts not working

Hi, I rooted my router today but I noticed that everytime it reboots,
telnet access is gone and I have to reupload the hacked config file...

my scripts both in /flash and /flash2 also do not run despite being both chmod +x and executable throught telnet

#!/bin/sh
vsftpd /flash/vsftpd.conf &
iptables -I fwInBypass -p tcp --dport 21 -m ifgroup --ifgroup-in 0x1/0x1 -j ACCEPT

What can i DO?

Decryption not working: ARCNTF1_JCOW411_R2.29

command used after generating key from keyguesser.py:

openssl aes-128-cbc -d -pass file:key-success.txt -in RAROTKH00053021_JCOW411.enc -out RAROTKH00053021_JCOW411.txt

output:

*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.

Problem: the decrypted txt file is still just a garbled text.

Firmware Version: ARCNTF1_JCOW411_R2.29

Internet suggested to use LibreSSL, but I couldn't get the windows version to work.
I don't have a mac.

Backup decryption not working

But it gives this error:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
009EDFFF01000000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:providers/implementations/ciphers/ciphercommon_block.c:124:

  • I tried adding "-pbkdf2 -iter 100000" to options which did produce an output without an error, but it does not look like text.

Pls. help..

Cannot upload the .enc file in the Maintenance page

I used the steps here but it seems that they might have added a checksum verification

Screenshot (2)

So the above is the sha256 sum of the original .enc downloaded from the maintenance page

Screenshot (3)

Here is the checksum of the new file created with the modifications on the instructions page as you can see they are different
I have verified that the original file works following which i tried to use the modified file and i get this error

Screenshot (4)

Here are my device details

Firmware Version SRCMTF1_JCO4032_R2.52.1

Hardware Version 0003

Model Name JCO4032

Please do help me out

Failed to update configuration (checksum error) when retrieving /flash/secure/key.txt

I tried the following curl with secrets redacted.

curl  -X POST \
  'http://192.168.29.1/platform.cgi' \
  --header 'Cookie: TeamF1Login=xxxxxxxx' \
  --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
  --header 'Referer: http://192.168.29.1/platform.cgi?page=backupRestore.html' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'button.usbRestore.statusPage=usbRestore' \
  --data-urlencode 'file=/flash/secure/key.txt /mnt/vfs/admin/DriveHDD/ #' \
  --data-urlencode 'token=xxxxxxx' \
  --data-urlencode 'thispage=backupRestore.html'

and got status 200 but the response HTML was a page with error "Failed to update configuration (checksum error).

Additional details:
Firmware: R2.52.1
Model JCOW414

Running bash on router?

This is a bit farfetched but is it possible to get bash running on JioFiber?
I tried using a bash build for MIPS but it doesn't run.
I'm thinking of maybe running a small bash script on the router (uses less than 10 MB of ram and doesn't require much CPU either so it should be possible)

Thank you for your hard work.

key for 407

Too weak password!

I am trying to upload the modified .enc file to gain root access. However, I am getting an error page. Please see the screenshot. I also tried to change the password to something else with capital letters, special character and numbers. Still, same error.

Screenshot_2022-03-24-21-35-49-251_com android chrome
"

Decryption keys for JCOW411

Hey guys!

How do I get the decryption keys for my specific model which is ARCNTF1_JCOW411_R2.21 or JCOW411 ? I'm trying to dump the plain data (or get telnet access) inorder to get the details to connect the fiber directly to another box I have (using an SFP module).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.