Page 1 of 1

MR5200 - Questions Re sierrakeygen Python Script?

Posted: Thu Apr 28, 2022 8:37 pm
by dfkinca
Trying to get my newly acquired MR5200 both band optioned/locked, and get the correct challenge answer (for those who are willing to share).

Using the guide at https://github.com/bkerler/edl/blob/mas ... _README.md . I was able to telnet into the device, and generate the specific challenge from using "AT!OPENLOCK?". And, I had a few questions regarding use of the sierrakeygen tool from the guide.

1. What is the "device generation" of the MR5200 (and the MR5100)? For the MR1100, I saw from the guide that the "device generation" is "MDM9x40".

2. I tried the Live CD (from the guide), and could not get it to work. So, I followed the installation guide to install things on my Mac, and I am facing a couple of issues (in addition to the "device generation" ID issue above):
A. When I type into my Terminal app "sierrakeygen -h" (or any other call for "sierrakeygen"), I get an error that the file cannot be found (because program not in my PATH). Though I can manually locate a couple of different copies of the "sierrakeygen" shortcut, I don't know which one to use. Are the multiple copies the same python script?
B. I have generated my most recent specific challenge of (without quotes): "7753E2C42827C4EF". I have put aside the computer that I am using for this challenge, together with the MR5200. I would appreciate it if someone can provide me with the correct challenge answer, based on MR5200 being the device.

Thanks in advance for any help?

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Tue May 03, 2022 8:24 pm
by JimHelms
I believe the MR5200 uses:

Code: Select all

SDX55
Can't help you much beyond that.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Wed Jul 13, 2022 7:01 pm
by w1lliam
Sierrakeygen HOW-TO on Windows
1. Original information from https://github.com/bkerler/edl
2. Install git from https://github.com/git-for-windows/git/ ... 64-bit.exe
3. Install Python from https://www.python.org/ftp/python/3.10. ... -amd64.exe -->suggest to reboot the system after installed to get the PATH set for Python effectively.
4. Open Git BASH
5. win$ git clone https://github.com/bkerler/edl.git
6. win$ cd edl
7. win$ git submodule update --init –-recursive
8. win$ pip3 install -r requirements.txt
9. win$ python setup.py build
10. win$ python setup.py install
---------------------------------------------------above steps for preparation---------------------------------
11. win$ cd edl/edlclient/Tools
12. telnet>AT!OPENCND?
13. win$ python sierrakeygen.py -c xxxx -d SDX55 (xxxx is the challenge generated from AT!OPENCND? at the device)
14. telnet>AT!OPENCND=”yyyy” yyyy is the key generated by sierrakeygen.py from #13
15. You can now issue AT!SETCND=”zzzz” where zzzz is your own custom key
16. Issue AT!ENTERCND=”zzzz” to unlock AT commands

Device Model
MR1100 - MDM9x40
MR5200/5100 - SDX55

Change IMEI
1. telnet>AT!OPENMEP? from the device to get the Challenge
2. win$ python sierrakeygen.py -m xxxx -d SDX55 (xxxx is the challenge generated from AT!OPENMEP? at the device)
3. telnet>AT!OPENMEP=”yyyy” yyyy is the key generated by sierrakeygen.py from #2
4. telnet>AT!NVIMEIUNLOCK to unlock IMEI repair
5. telnet>AT!NVENCRYPTIMEI=12,34,56,78,90,12,34,50 123456789012345 is the new IMEI you want to program, as IMEI only has 15 digits, need to pad a ‘0’ on last entry
6. This new IMEI will be recovered back to factory default if you had done RESET TO FACTORY DEFAULT

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sun Jul 17, 2022 6:19 pm
by DanDeltona
Hi W1lliam,

I followed your directions and got to step 8:
Win$ pip3 install -r requirements.txt
It replies bash: pip3: command not found
Could you please help me get past this? I have been trying to figure out how to change the imei on my Sierra em7511 modem for a while and was greatly happy to find your post with excellent instruction. But, I've hit a snag. Thank you.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Mon Jul 18, 2022 7:08 am
by Rich Hathaway
pip and pip3 are installers for python, that error means you likely don't have either installed, its not in your path or your not calling it up correctly, install either of them then go back to your step num 8 and try to install the requirements.txt

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Mon Jul 18, 2022 6:48 pm
by w1lliam
@DanDeltona You might need to reboot your PC/Laptop after Python/pip3 installed as the PATH change needs that to be effective. In case you have Python installed but not pip3, you can still install that via "python -m pip3 install" command, hope this helps.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Mon Jul 18, 2022 7:18 pm
by DanDeltona
I am embarrassed. After a restart everything works perfectly! Thanks for your quick reply and the excellent tutorial.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Fri Aug 26, 2022 10:38 am
by Sobe W.
w1lliam wrote: Wed Jul 13, 2022 7:01 pm Sierrakeygen HOW-TO on Windows
1. Original information from https://github.com/bkerler/edl
2. Install git from https://github.com/git-for-windows/git/ ... 64-bit.exe
3. Install Python from https://www.python.org/ftp/python/3.10. ... -amd64.exe -->suggest to reboot the system after installed to get the PATH set for Python effectively.
4. Open Git BASH
5. win$ git clone https://github.com/bkerler/edl.git
6. win$ cd edl
7. win$ git submodule update --init –recursive
8. win$ pip3 install -r requirements.txt
9. win$ python setup.py build
10. win$ python setup.py install
---------------------------------------------------above steps for preparation---------------------------------
11. win$ cd edl/edlclient/Tools
12. telnet>AT!OPENCND?
13. win$ python sierrakeygen.py -c xxxx -d SDX55 (xxxx is the challenge generated from AT!OPENCND? at the device)
14. telnet>AT!OPENCND=”yyyy” yyyy is the key generated by sierrakeygen.py from #13
15. You can now issue AT!SETCND=”zzzz” where zzzz is your own custom key
16. Issue AT!ENTERCND=”zzzz” to unlock AT commands

Device Model
MR1100 - MDM9x40
MR5200/5100 - SDX55

Change IMEI
1. telnet>AT!OPENMEP? from the device to get the Challenge
2. win$ python sierrakeygen.py -m xxxx -d SDX55 (xxxx is the challenge generated from AT!OPENMEP? at the device)
3. telnet>AT!OPENMEP=”yyyy” yyyy is the key generated by sierrakeygen.py from #2
4. telnet>AT!NVIMEIUNLOCK to unlock IMEI repair
5. telnet>AT!NVENCRYPTIMEI=12,34,56,78,90,12,34,50 123456789012345 is the new IMEI you want to program, as IMEI only has 15 digits, need to pad a ‘0’ on last entry
6. This new IMEI will be recovered back to factory default if you had done RESET TO FACTORY DEFAULT
Thank you so much for these instructions! They were really helpful. I was able to get my MR5200 up and running because of these extremely helpful instructions.

Just a few additional notes for anyone who might be running into issues using the instructions above.

For the "python sierrakeygen.py -m xxxx -d SDX55" and related commands, I had to use the word py instead of python otherwise I would get a syntax error in Git Bash. I'm on Windows 10 so I'm not sure if that's why.

Code: Select all

py sierrakeygen.py -m xxxx -d SDX55
And for anyone who might be unsure, the "AT!NVENCRYPTIMEI=12,34,56,78,90,12,34,50" command actually does need the commas in addition to the 0 on the end to pad it. So just to be clear, if your IMEI is 123456789012345, you have to type it out as 12,34,56,78,90,12,34,50 in the command. That wasn't clear to me at first when I read the additional information above so I kept trying to put the command through without commas. I eventually put 2 and 2 together but just thought I'd share.

And it might be obvious to others but it took a few seconds for me to realize that we're not actually typing win$ or telnet> when using the above instructions. Those are simply to tell you where to put those commands into; win$ means type it in Git Bash and telnet> means type it in Putty.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Fri Sep 23, 2022 12:56 am
by amtrak23
I'm getting stuck on #11, and get this:

$ cd edl/edlclient/Tools
bash: cd: edl/edlclient/Tools: Not a directory

and then at 13 I get this:

$ python sierrakeygen.py -c 0A603c59398E450F -d SDX55
C:\Users\USERNAME\Data\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\USERNAME\\edl\\sierrakeygen.py': [Errno 2] No such file or directory

I have gone through steps 1-11 a few times, and keep getting stuck there.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Fri Sep 23, 2022 8:33 am
by Sobe W.
amtrak23 wrote: Fri Sep 23, 2022 12:56 am I'm getting stuck on #11, and get this:

$ cd edl/edlclient/Tools
bash: cd: edl/edlclient/Tools: Not a directory
This means the directory/folder doesn't exist or it means you're trying to navigate to somewhere that Git Bash doesn't understand.

Do you have a Tools folder inside the edlclient folder? If not, that would be the problem. The edl folder, edlclient folder, and Tools folder all exist in the GitHub repository (in step 1) so it should be there on your computer nested as such if you had no issues with downloading the repository using the preparation steps.

The other cause for this error could be because you're essentially trying to navigate to that folder incorrectly based on your current location in Git Bash. If you type pwd into Git Bash, it gives you the current directory you are in with Git Bash at that very moment. And then if you type ls (lowercase L, lowercase s), it will give you a listing of the directories and files it currently sees in that location.

The command "cd edl/edlclient/Tools" is telling Git Bash to go into the edl folder first, then the edlclient folder, and then the Tools folder starting from where you are currently. So if there is no edl folder in the directory your Git Bash is currently in, you will receive that error. It will be the same problem if your edlclient folder is not inside the edl folder and if your Tools folder is not inside your edlclient folder. Hopefully that helps.
amtrak23 wrote: Fri Sep 23, 2022 12:56 am and then at 13 I get this:

$ python sierrakeygen.py -c 0A603c59398E450F -d SDX55
C:\Users\USERNAME\Data\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\USERNAME\\edl\\sierrakeygen.py': [Errno 2] No such file or directory

I have gone through steps 1-11 a few times, and keep getting stuck there.
Did you try this command with the word py instead of python? I'm not a Python expert but my commands work using py. I ran into issues if I tried using python.

Code: Select all

$ py sierrakeygen.py -c 0A603c59398E450F -d SDX55

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sat Sep 24, 2022 12:30 am
by amtrak23
Sobe W. wrote: Fri Sep 23, 2022 8:33 am This means the directory/folder doesn't exist or it means you're trying to navigate to somewhere that Git Bash doesn't understand.

Do you have a Tools folder inside the edlclient folder? If not, that would be the problem. The edl folder, edlclient folder, and Tools folder all exist in the GitHub repository (in step 1) so it should be there on your computer nested as such if you had no issues with downloading the repository using the preparation steps.

The other cause for this error could be because you're essentially trying to navigate to that folder incorrectly based on your current location in Git Bash. If you type pwd into Git Bash, it gives you the current directory you are in with Git Bash at that very moment. And then if you type ls (lowercase L, lowercase s), it will give you a listing of the directories and files it currently sees in that location..
Thanks for responding. I tried on two more computers and same thing happens every time. The edl-master folder is on the desktop each time, and I don't see any error messages during any of the previous steps. The Tools subfolder is definitely there too.

USER@Warehouse MINGW64 ~/edl (master)
$ cd edl/edlclient/Tools
bash: cd: edl/edlclient/Tools: Not a directory

USER@Warehouse MINGW64 ~/edl (master)
$ pwd
/c/Users/USER/edl

USER@Warehouse MINGW64 ~/edl (master)
$ ls
Drivers/ README.md edlclient.egg-info/ setup.py*
Example/ build/ fastpwn sierrakeygen_README.md
LICENSE dist/ pyproject.toml
Loaders/ edl* requirements.txt
MANIFEST.in edlclient/ setup.cfg

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sat Sep 24, 2022 12:39 am
by Sobe W.
amtrak23 wrote: Sat Sep 24, 2022 12:30 am
Thanks for responding. I tried on two more computers and same thing happens every time. The edl-master folder is on the desktop each time, and I don't see any error messages during any of the previous steps. The Tools subfolder is definitely there too.

USER@Warehouse MINGW64 ~/edl (master)
$ cd edl/edlclient/Tools
bash: cd: edl/edlclient/Tools: Not a directory

USER@Warehouse MINGW64 ~/edl (master)
$ pwd
/c/Users/USER/edl

USER@Warehouse MINGW64 ~/edl (master)
$ ls
Drivers/ README.md edlclient.egg-info/ setup.py*
Example/ build/ fastpwn sierrakeygen_README.md
LICENSE dist/ pyproject.toml
Loaders/ edl* requirements.txt
MANIFEST.in edlclient/ setup.cfg
Going from the output you pasted above, it looks like your Git Bash is already inside the edl folder/directory. Git Bash is basically saying to you "I can't go to edl folder because there is no additional folder called edl to go into" because you're already inside the edl folder/directory.

Since you're already inside the edl folder, just type:

Code: Select all

cd edlclient
And then type:

Code: Select all

cd Tools
In other words, the command "cd edl/edlclient/Tools" is the exact same thing as typing "cd" for each folder.

Code: Select all

cd edl
cd edlclient
cd Tools
After your Git Bash is inside the Tools folder/directory, then you can go ahead and move on to step 12 and step 13. Keep in mind that telnet> essentially means you need to go to Putty and type in that command (and win$ means type the command into Git Bash).

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sun Sep 25, 2022 2:57 am
by w1lliam
For those who only needs sierrakeygen.py to generate unlock code for your Netgear devices, here is light version of sierrakeygen.py, renamed as sierrakeygen-mobile.py, which you just need Python installed on your platform and run this Python script directly. No more installation/setup is required. This script also compatible for cell phone where Python is available, you can generate unlock code with your cell phone.

https://tinyurl.com/Sierrakeygen-mobile

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Fri Feb 17, 2023 6:02 pm
by isaacws
Hey thanks for all the helpful info here. I am trying to do an IMEI repair on my MR5200 and following this guide the first time I was able to get in and set the CND command in step 16. However when I move on to IMEI repair I can't get past the challenge. I am using the mobile sierra key file linked on this post. Any ideas as to why the challenge isn't being accepted now? I might try the full version but was happy to avoid installing the c++ compiler for now.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sun Feb 19, 2023 10:18 am
by isaacws
I solved the issue myself! I was neglecting to see there is a different set of commands for CND vs MEP. I was so busy copy and pasting that I failed to notice the command line difference. My device is successfully repaired now!

For those who don't know you connect to the MR5200 with putty or your telnet client by connecting to 192.168.1.1 port 5510 via telnet.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Mon Apr 10, 2023 11:22 pm
by Siangko89
MAY I know when will this model MR6450 be supported by this sierrakeygen.py?

I've been trying to generate the AT! OPENLOCK=

But shown SDX55 not supported...

As per check only MR6110, 6400,6500 was listed
No MR6450

Appreciate if updated MR6450 can be supported too... 👍

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Tue Apr 11, 2023 7:31 am
by Rich Hathaway
it needs to be downgraded, see my post below

viewtopic.php?t=3654

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sat Dec 02, 2023 1:41 pm
by wildstyle01
Can anyone direct me into getting ports on my mr6500.I had a fw upgrade with ports open, but after doing a factory reset, lost my ports. Any help would be appreciated.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sat Dec 02, 2023 1:52 pm
by Rich Hathaway
You need to use the PID 68E2 or 9025 should work also

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sat Dec 02, 2023 4:08 pm
by Rich Hathaway
wildstyle01 wrote: Sat Dec 02, 2023 1:41 pm Can anyone direct me into getting ports on my mr6500.I had a fw upgrade with ports open, but after doing a factory reset, lost my ports. Any help would be appreciated.
Gabe,
I just made a tool to hard code the real ports on these MRxxxx devices so they will stick thru factory reset.
so no more fooling with the junky barely working virtual ports lol.
msg me on skype and I'll run it on your device for you

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Fri Feb 16, 2024 11:31 am
by Gmrss
w1lliam wrote: Wed Jul 13, 2022 7:01 pm 12. telnet>AT!OPENCND?
I tried to do this command on Nighhawk M2 MR2100-EUS (not sim locked) but when entering it in telnet:
AT !OPENCND? (tried AT!OPENCND? too)
Gtting the following result:
ERROR

Can you help with MR2100 please? I need to repair IMEI.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Sat Feb 17, 2024 8:36 am
by Rich Hathaway
There should be no spaces in those AT commands unless you are using some tool that was coded to need a space.
I do not have that device but those tracfone devices usually do not have this access, they lock them down pretty good.

Re: MR5200 - Questions Re sierrakeygen Python Script?

Posted: Mon Feb 19, 2024 3:12 pm
by Gmrss
Rich Hathaway wrote: Sat Feb 17, 2024 8:36 am There should be no spaces in those AT commands
Hi Rich. In M2 all commands are with space after AT (but I tried this too - AT!OPENCND? with the same result), e.g.:
AT !GSTATUS=?
AT !BAND=?
AT !BAND=03,"LTE B7",0,40,0
It is sim free factory unlocked MR2100-100EUS device from Germany retail store. It should not have any special protection because it is not operators version.