-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force Cell ID #12
Comments
@pearlxcore I am amazed at the new software. Really great improvement 👍 Maybe these firmwares are helpful in analysing or implementing additional features in your great tool: |
In the firmware you linked I found 2 api related to cell lock ; api/ntwk/celllock and api/net/cell-info If you send GET request to api/net/cell-info it will reply this :
But sending POST request resulting error "root element missing". For another api if you send GET request to api/ntwk/celllock it will reply empty response. But if you send POST request (I don't know the correct parameter) to the api it reply with "error wrong parameter". That mean I just need the correct parameter to apply new cell lock but we lack of api documentation. I don't know if 5G router has the cell id lock options in webui. But if they do, someone with 5G router need to sniff the connection to see request parameter. |
So the API could work if the right parameters are known, right? I will search if I can find out or do you know how I could sniff the connection to see the request parameter?
|
https://blog.hqcodeshop.fi/archives/259-Huawei-E5186-AJAX-API.html |
Well I actually found a way to lock cell id but that require external tool (adb.exe). Yes I able to include it in the program but I also interested with what i found here, the api which might let us lock the cell id with just a POST request to router. This is more easier and no external tools needed. But like I said before I don't have idea what is the correct parameter. I'm not sure if Huawei 5G CPE Pro (H112-372) webui contain features to lock cell id, but someone with could do some research on that. Some features on webui might hidden from users but they can use web dev tool and modify the html to unhidden those feature.
My tool always have root element to send POST request -.- |
For cell locking I still looking for api solution. But if I get boring with that I will try implement the adb method. xD |
I own a Huawei 5G CPE Pro (H112-372) physically. How can I achieve to see the hidden features? |
I'm not saying it does exist in the webui, but why api/ntwk/celllock is exists tho. What I know is not all features in the router are displayed in the webui. The devs may set it hidden from webpage. You can try the developer tool in google chrome. To view webpage source file, open 'Elements' tab. To view what js code was running, open the network tab -> JS filter -> open any page in the webui that you feel is related to network stuff. If you are lucky you will find something interesting. The list of js file displayed is the code runs while you are browsing the webui page. Analyze each js code and find terms or api related to cell locking such as 'cell', 'cell_locking' etc. |
_Search "celllock" or "cellock"
|
@pearlxcore could you flash this firmware and check the js file that may have been included in the modified firmware?
|
@pearlxcore mails have been sent to you. |
Could you please describe the ADB method how to do it? What are the ADB commands to send to the router... CELL ID CALCULATOR AND APPLICATION: (updated)
|
Hello I also own a h112-372. Are you success in finding a solution for cell I'd locking for Huawei h112-372 |
@pearlxcore @mucke5 kindly help |
@pearlxcore below is the code from network element from chrome.. I see there is a API api/ntwk/celllock but while i sue to GET response in your tool. I get the Firmware not supported. var CONST = { ' + publicLang['nocard.describe'] + ' ');return true; } else if (CONST.MACRO_PIN_REQUIRED === apiPinStatus.SimState) { redirectpage = url_prefix + "redirectdisconnect.html" + postfix + DISCONNECT_TYPE.DIS_PINLOCK; langid = "pin.insertPin"; } else if (CONST.MACRO_PUK_REQUIRED === apiPinStatus.SimState) { redirectpage = url_prefix + "redirectdisconnect.html" + postfix + DISCONNECT_TYPE.DIS_PUKLOCK; langid = "pin.insertPuk"; } else if (CONST.MACRO_SIM_LOCK_ENABLE === apiSimLockStauts.SimLockEnable) { redirectpage = url_prefix + "redirectdisconnect.html" + postfix + DISCONNECT_TYPE.DIS_SIMLOCK; langid = "simlock.insertSimlock"; } else { return false; } $(pageName + ".pin_unuseable").show(); $(pageName + ".pin_unuseable").secureHtml(' '); if ( CONST.MACRO_SIM_LOCK_ENABLE === apiSimLockStauts.SimLockEnable && CONST.SIMLOCK_REMAINTIMES === apiSimLockStauts.SimLockRemainTimes ) { $('#redirectlink').attr('lang-id', 'simlock_foreverLock'); langStr('redirectlink', 'simlock_foreverLock'); } else { EMUI.LanguageController.registerLanguageEx('redirectlink', 'pin.savePin', '%l', langid, redirectpage); } EMUI.LanguageController.transLangEx(); return true; } |
@abhi093 do you have adb and telnet active on the firmware? |
@abhi093 did you check if they are already active? if not your best option is using a mod firmware it will have telnet & adb active by default I have tried this https://www.youtube.com/watch?v=_U2zB_II0SU (as @mucke5 mentioned) |
@moshriq I tried telnet on Putty to H112-372 . It didn't work. |
@moshriq I will try the steps given in youtube in your post |
@abhi093 the script in the video will not work for you telnet maybe can be activated using API (hope @pearlxcore could give some insight) |
@pearlxcore @moshriq yes, telnet is not enabled for me. Please help to enable telnet in the firmware |
@moshriq do you know where to download mod firmware for h112-372 ?? |
Just to add here, there actually exists a celllock.js when you browse http://192.168.8.1/js/celllock.js, though haven't figured out how to use it. |
@ariscruz for me the output is below 100003
|
@abhi093 , I think you have to login to your router first |
The link for the fimrware download has expired. |
Fantastic tool! But yes if anybody could figure out a way to cell lock that would be really really good. |
Hi i have the Huawai CPE Pro 2 and i looked into the Web GUI code a bit. GET Tells you the device status for celllock. For me it returns the error code 100002 which mean no device support. To activate the celllock feature the UI calls a function with this request body: but for me i will get the same error that my device does not support it wiith code 100002 maybe i could helped a bit. As bonus here is the GUI i found if you modify the source to unlock it |
were you able to cell-lock with this steps? |
out of topic, just sharing thread from 4pda.to (just translate to English) wherein they're able to use telnet on Huawei 5G Device (H122-373) https://4pda.to/forum/index.php?showtopic=968728&st=120 (find message #128) It includes opening the device, locating and enabling the "test point" and soldering usb to be able to connect to pc via COM port and execute telnet commands from there, where we can actually do cell-locking via AT commands |
Anyone knows how to lock cell Id in b311-221 4g router? |
is there any update about cell lock on h122-373 |
i do it but i can’t execute commands |
Does anyone found a way to cell id lock the b818 modem? |
were you able to connect on telnet? |
I have an issue, where one of my routers appears to be cell hoping. Is there a command to force it to a particular cell?
https://community.teltonika-networks.com/4431/how-can-i-lock-a-cell
https://blog.hqcodeshop.fi/archives/206-Running-AT-commands-on-your-B593.html
Could you implement such a function in your amazing tool?
The text was updated successfully, but these errors were encountered: