! UPDATED ! key_patcher v 0.92
Changelog:
v 0.92 - Added command line argument --oscam-local. Should be set when you run the script from the receiver locally.
python3 key_patcher.py --oscam-local true
v 0.91 - Fixed file not found error message.
v 0.90 - Initial release candidate.
I would like to introduce the Key updater script for AFN package channels.
When you don’t want to wait for auto-update of keys, start watching right now.
The script parses the keys from the forum and patches the SoftCam.Key file in your receiver via FTP. Written in Python3, only built-in modules, no additional packages need to be installed. Tested on Linux and Windows. SoftCam.Key file from the forum, but any other AFN containing EMM keys can be used. Tested on Enigma2, but should work on other Linux receivers as well. Does not affect auto-update, etc.
Run from your computer with the command:
> python3 key_patcher.py --ip RECEIVER_IP
If the user or password is not root, add arguments to the startup line.
!!! After successful completion, restart Oscam on your receiver. !!!
An example of output:
$ python3 key_patcher.py --ip 192.168.0.120
2023-04-02 18:18:32,335 INFO PowerVU KeyPatcher by taras-ua, ver 0.9
2023-04-02 18:18:32,339 INFO Connecting https://www.linuxsat-support.com/thread/152939-only-afn-powervu-keys-no-chat-keys-only/?pageNo=9999
2023-04-02 18:18:33,319 INFO Found last page: 19.
2023-04-02 18:18:33,319 INFO Connecting https://www.linuxsat-support.com/thread/152939-only-afn-powervu-keys-no-chat-keys-only/?pageNo=18
2023-04-02 18:18:34,282 INFO Got key pair ('00A9B5C3A295635C', '01A58923BD775AD9').
2023-04-02 18:18:34,392 INFO Found OsCam version: oscam-1.20_svn-r11718-798
2023-04-02 18:18:34,517 INFO /home/gx/local/oscam/SoftCam.Key has been patched with ('00A9B5C3A295635C', '01A58923BD775AD9').
2023-04-02 18:18:34,634 INFO Done!