Code Monkey home page Code Monkey logo

oscam-patched-old's Introduction

OSCam: Open Source Conditional Access Module
============================================


License
=======

OSCam: Open Source CAM
Copyright (C) 2009-2024 OSCam developers

OSCam is based on the Streamboard mp-cardserver 0.9d by dukat and
has been extended and worked on by many more since then.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

For the full text of the licese, please read COPYING file in OSCam
top directory or visit http://www.gnu.org/licenses/gpl-3.0.html


Version history
===============

OSCam history is accessible through Trac timeline at:
   https://trac.streamboard.tv/oscam/timeline


Repositories
============

SVN repository:
   svn checkout https://svn.streamboard.tv/oscam/trunk oscam-svn


Building OSCam from source
==========================

 - Get the lastest sources from SVN
    svn checkout https://svn.streamboard.tv/oscam/trunk oscam-trunk

 - Go to oscam-trunk directory.

 - Run `make config` to choose the features you want.

 - Run `make` to compile OSCam.

For more information and examples on using the build system, please
see README.build and README.config files.


Building OScam for different CPUs (cross-compilation)
=====================================================

First you need to install the target CPU toolchain. Already built toolchains
for various architectures can be downloaded from:

    https://trac.streamboard.tv/oscam/wiki/crosscompiling

In order to cross compile OSCam you need to set CROSS variable when
running make. For example to compile for SH4 architecture you need
to run: `make CROSS=sh4-linux-` or if your cross compilers are not
in your PATH - `make CROSS=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-`.


Dependencies
============

OSCam by default do not depend on external libraries except when compilation
with SSL is requested. In that case openssl (libcrypto) library must be
installed.

OSCam supports building with the following external dependencies:
  - libcrypto (libssl) - 'make USE_LIBCRYPTO=1'
  - libusb             - 'make USE_LIBUSB=1'
  - PCSC               - 'make USE_PCSC=1'
  - SH4 STAPI support  - 'make USE_STAPI=1'
  - SH4 STAPI5 support - 'make USE_STAPI5=1'
  - Coolapi support    - 'make USE_COOLAPI=1'
  - AZBOX support      - 'make USE_AZBOX=1'

For STAPI support you need to download liboscam_stapi.a library and place
it in stapi directory under oscam/ root dir. liboscam_stapi.a can be downloaded
from: https://board.streamboard.tv

For STAPI5 support you need to download liboscam_stapi5.a library and place
it in stapi directory under oscam/ root dir. liboscam_stapi5.a can be downloaded
from: https://board.streamboard.tv

For more information and examples on using the build system, run `make help`.


Help and Support
================

man pages and configuration examples are in Distribution/doc directory.

You may visit our Trac system for tracking and filling bug reports.
   https://trac.streamboard.tv/oscam/newticket

If you experience any problems with OSCam, feel free to post in our support
forum under (mainly German and English language) at:
   https://board.streamboard.tv/forum/

Configuration wiki:
   https://wiki.streamboard.tv/wiki/OSCam

oscam-patched-old's People

Contributors

abubaniaz avatar enosat avatar gfto avatar nautilus7 avatar ohmza avatar persianpros avatar wxbet 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

Watchers

 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

oscam-patched-old's Issues

Slow channelchange on AFN powervu

With oscam-emu Emu r764 - Add PowerVu hash mode 4 and oscam http://www.streamboard.tv/svn/oscam@11392 channelchange is very slow (10 seconds) on afn powervu.

I have tracked the problem down to module-dvbapi.c line 4454. Channel changing speed is greatly improved when removing " || pvu_skip". I am not sure if this is a good fix and it may cause problems on other powervu channels. However, it works for me and it helps pinpoint the problem

Hash mode cw 23

Measat Packages @ 91.4°E

Hash mode cw 23
Powervu need fix oscam emu

still no more than 100 pv emm are possible

with actual version still no more than 100 pv emm are possible.

when sending emm manually to reader these emm are working, but when receiving emm over the air they are not recognized.

dvbapi: switching from DES to CSA for some boxes requires a restart

Hello Dear Experts,

I want to discuss a problem, I am using in Origional DreamBox DM520 receiver.

All Oscam, Ncam and other cams for PowerVu and other scrambled channels are working fine with me.

But when I tune to AsiaSat-7 (105.6 East ) TP-3960 H Turner International Asia, Cartoon Network Channels. Then my other scrambled channels don't open unless I fully restart my receiver.

And when I use this same configuration in Amiko Alien Enigma2 receiver, these Cartoon Network Channels are working fine with other scrambled channels.

Kindly look into the matter and suggest the solution.

Thanking in Advance.

Link error trying to build static-libcrypto

make -j 6 CONF_DIR=/plugin/var/tuxbox/config USE_UTF8=1 CROSS=/home/mihaip/oscam-ndk/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24- USE_LIBCRYPTO=1 LIB_RT= LIB_PTHREAD= CC="armv7a-linux-androideabi24-clang -Wno-invalid-command-line-argument" STRIP=arm-linux-androideabi-strip LIBCRYPTO_LIB="/home/mihaip/oscam-ndk/android-ndk-r19/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/libcrypto.a"

No video/sound on PowerVU ch in TVHeadend

Hi. I use TVHeadend and Oscam
After upgrading to r11451-784, PowerVU channels do not have images or do not open at all.
Version OSCam: 1.20-unstable_svn Build: r11424 everything is fine.

rejected group (no matching reader)

hi when i enable LoadBalancer and wants emu to autoroll in powervu channels this message apears
but if i disable LB everythings OK

also i should say there is no reader for afn in server file . and without LB procedure is perfect

(ecm) amirali (0E00:000000:0066:179F:0000:0012 #ECM_L:99 #CW=00000000000000000000000000000000 HOP:00): rejected group (0 ms) - AFN (no matching reader)

thanks in advance

RSA KEYS ABOUT?

**Are you add in emu rsa keys? for example **
second questions? mgcamd autoroll.key file out of for oscam emu?
thank you

ver 788 make fail

the last patches for ver 788 introduces a linker
failure "segmentation fault" using Aarch64 compiler
building Oscam without EMU all is OK !

Support for Biss 2 (mode 1, E, CA)

BISS2 Operational Modes
The Scrambler shall support the following four (4) modes of operation:
 Mode 0: No scrambling is applied.
 Mode 1: Components are scrambled by a Session Word (SW), and the SW is transmitted out
of band in clear to the receivers.
 Mode E: Components are scrambled by a Session Word (SW), the SW is encrypted with a
fixed Session Key (SK) and the resulting Encrypted Session Word (ESW) is transmitted out of
band to the receivers.
 Mode CA: Components are scrambled with a Session Word (SW), the SW is encrypted with a
Session Key (SK), and the resulting Encrypted Session Word (ESW), along with the key
information is transmitted in-stream to receivers. Both SW and SK are dynamically changed
during the live event transmission.

Asiasat 7 @ 105.5°E, frequency 4180 MHz, "Sony Package" brand new hash mode 33

Status Live Log Config Readers Users Services Files Failban CacheEX Scripts Restart
2019/07/17 23:11:32 00000000 s debug_level=68
2019/07/17 23:11:32 00000000 s (main) System name = Linux
2019/07/17 23:11:32 00000000 s (main) Host name = evoe3hd
2019/07/17 23:11:32 00000000 s (main) Release = 3.18.24
2019/07/17 23:11:32 00000000 s (main) Version = #1 Fri Mar 24 18:38:03 PDT 2017
2019/07/17 23:11:32 00000000 s (main) Machine = mips
2019/07/17 23:11:32 00000000 s (main) Stb model = dm800se
2019/07/17 23:11:32 00000000 s (main) Stb boxtype = e3h3
2019/07/17 23:11:32 00000000 s (main) creating pidfile /tmp/.oscam/oscam.pid with pid 25198
2019/07/17 23:11:32 00000000 s (config) services reloaded: 0 services freed, 0 services loaded, rejected 0
2019/07/17 23:11:32 00000000 s (emu) OSCam-Emu version 796
2019/07/17 23:11:32 00000000 s (config) userdb reloaded: 1 accounts loaded, 0 expired, 0 disabled
2019/07/17 23:11:32 00000000 s (main) signal handling initialized
2019/07/17 23:11:32 00000000 s (config) 8 provid's loaded
2019/07/17 23:11:32 00000000 s (config) 92 service-id's loaded in 4 ms
2019/07/17 23:11:32 00000000 s (config) skipping fake cw File because of wrong length (4 != 32)!
2019/07/17 23:11:32 00000000 s (config) 1 entries read from oscam.ratelimit
2019/07/17 23:11:32 00000000 s (net) newcamd: initialized (fd=4, port=10001, prio=1 [ SO_PRIORITY IP_TOS IPV6_TCLASS ])
2019/07/17 23:11:32 00000000 s (net) -> CAID: 0000 PROVID: 000000
2019/07/17 23:11:32 00000000 s (reader) emulator [emu] creating thread for device emulator
2019/07/17 23:11:32 00000000 s (emmcache) loading emmcache disabled since no reader is using it!
2019/07/17 23:11:32 00000000 s (emmcache) loading emmstats disabled since no reader is using it!
2019/07/17 23:11:32 6FD0FC4E r (reader) emulator [emu] Reader initialized (device=emulator, detect=cd, mhz=357, cardmhz=357)
2019/07/17 23:11:32 27C3D164 c (client) plain dvbapi-client granted (anonymous, au=off)
2019/07/17 23:11:32 27C3D164 c (dvbapi) dvbapi channelcache loaded from /etc/tuxbox/config/oscam.ccache
2019/07/17 23:11:32 27C3D164 c (dvbapi) Detected /dev/dvb/adapter0/demux0 Api: 0, userconfig boxtype: 1 maximum number of filters is 64 (oscam limit is 64)
2019/07/17 23:11:32 27C3D164 c (dvbapi) ERROR: ioctl(CA_GET_DESCR_INFO): Invalid argument
2019/07/17 23:11:32 13869B2A h (webif) webif: decompressed 165258 bytes back into 400544 bytes
2019/07/17 23:11:32 13869B2A h (webif) HTTP Server running. ip=:: port=8888
2019/07/17 23:11:33 27C3D164 c (dvbapi) Demuxer 0 ecmpid 0 CAID: 0E00 ECM_PID: 1772 PROVID: 000000
2019/07/17 23:11:33 27C3D164 c (dvbapi) Demuxer 0 ecmpid 1 CAID: 09DD ECM_PID: 1BA1 PROVID: 000000
2019/07/17 23:11:33 27C3D164 c (dvbapi) Demuxer 0 found 2 ECMpids and 9 STREAMpids in caPMT
2019/07/17 23:11:33 27C3D164 c (dvbapi) Demuxer 0 no suitable readers found that can be used for decoding!
2019/07/17 23:11:33 6FD0FC4E r (reader) emulator [emu] card detected
2019/07/17 23:11:33 6FD0FC4E r (reader) emulator [emu] cardreader_do_checkhealth: reader->card_status = 1, ret = 0
2019/07/17 23:11:33 27C3D164 c (dvbapi) Demuxer 0 found 2 ECMpids and 9 STREAMpids in PMT
2019/07/17 23:11:34 6FD0FC4E r (reader) emulator [emu] found card system emu
2019/07/17 23:11:34 6FD0FC4E r (reader) emulator [emu] THIS WAS A SUCCESSFUL START ATTEMPT No 1 out of max allotted of 1
2019/07/17 23:11:34 6FD0FC4E r (emu) Reading key file: /etc/tuxbox/config/SoftCam.Key
2019/07/17 23:11:34 6FD0FC4E r (emu) Total keys in memory: W:0 V:0 N:0 I:0 F:5 G:0 P:4 T:8 A:0
2019/07/17 23:11:35 27C3D164 c (dvbapi) Demuxer 0 restarting decoding requests after 1594 ms with 1 enabled and 1 disabled ecmpids!
2019/07/17 23:11:35 27C3D164 c (dvbapi) Demuxer 0 trying to descramble PID 0 CAID 0E00 PROVID 000000 ECMPID 1772 ANY CHID PMTPID 13D1 VPID 0C01
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
2019/07/17 23:11:35 6FD0FC4E r (-) -- Skipped 1 duplicated log lines --
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: cardreader_do_checkhealth returned rc=1
2019/07/17 23:11:35 6FD0FC4E r (emu) A new hash mode [33] is in use.
2019/07/17 23:11:35 6FD0FC4E r (-) -- Skipped 7 duplicated log lines --
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: after csystem->do_ecm rc=1
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: ret rc=1
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_process_ecm: cardreader_do_ecm returned rc=1 (ERROR=0)
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] ecm hash: 624D1BA3D74F6851251BD27B457C07FB real time: 15 ms
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
2019/07/17 23:11:35 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: cardreader_do_checkhealth returned rc=1
2019/07/17 23:11:36 27C3D164 c (ecm) anonymous (0E00@000000/0000/0049/A2:624D1BA3D74F6851251BD27B457C07FB): found (22 ms) by emulator - AS7 HD 3
2019/07/17 23:11:36 6FD0FC4E r (emu) A new hash mode [33] is in use.
2019/07/17 23:11:36 6FD0FC4E r (-) -- Skipped 7 duplicated log lines --
2019/07/17 23:11:36 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: after csystem->do_ecm rc=1
2019/07/17 23:11:36 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: ret rc=1
2019/07/17 23:11:36 6FD0FC4E r (reader) emulator [emu] cardreader_process_ecm: cardreader_do_ecm returned rc=1 (ERROR=0)
2019/07/17 23:11:36 6FD0FC4E r (reader) emulator [emu] ecm hash: 521F16989B3147F675048533DFD63DA4 real time: 23 ms
2019/07/17 23:11:36 27C3D164 c (ecm) anonymous (0E00@000000/0000/0049/A2:521F16989B3147F675048533DFD63DA4): found (33 ms) by emulator - AS7 HD 3
2019/07/17 23:11:36 6FD0FC4E r (reader) emulator [emu] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
2019/07/17 23:11:37 6FD0FC4E r (-) -- Skipped 1 duplicated log lines --
2019/07/17 23:11:37 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: cardreader_do_checkhealth returned rc=1
2019/07/17 23:11:37 6FD0FC4E r (emu) A new hash mode [33] is in use.
2019/07/17 23:11:37 6FD0FC4E r (-) -- Skipped 7 duplicated log lines --
2019/07/17 23:11:37 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: after csystem->do_ecm rc=1
2019/07/17 23:11:37 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: ret rc=1
2019/07/17 23:11:37 6FD0FC4E r (reader) emulator [emu] cardreader_process_ecm: cardreader_do_ecm returned rc=1 (ERROR=0)
2019/07/17 23:11:37 6FD0FC4E r (reader) emulator [emu] ecm hash: 846700C30C2949D285392F6D0CD8F7E8 real time: 13 ms
2019/07/17 23:11:37 27C3D164 c (ecm) anonymous (0E00@000000/0000/0049/A2:846700C30C2949D285392F6D0CD8F7E8): found (25 ms) by emulator - AS7 HD 3
2019/07/17 23:11:37 6FD0FC4E r (reader) emulator [emu] cardreader_do_checkhealth: reader->card_status = 2, ret = 1
2019/07/17 23:11:47 6FD0FC4E r (-) -- Skipped 10 duplicated log lines --
2019/07/17 23:11:47 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: cardreader_do_checkhealth returned rc=1
2019/07/17 23:11:47 6FD0FC4E r (emu) A new hash mode [33] is in use.
2019/07/17 23:11:47 6FD0FC4E r (-) -- Skipped 7 duplicated log lines --
2019/07/17 23:11:47 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: after csystem->do_ecm rc=1
2019/07/17 23:11:47 6FD0FC4E r (reader) emulator [emu] cardreader_do_ecm: ret rc=1
2019/07/17 23:11:47 6FD0FC4E r (reader) emulator [emu] cardreader_process_ecm: cardreader_do_ecm returned rc=1 (ERROR=0)
2019/07/17 23:11:47 6FD0FC4E r (reader) emulator [emu] ecm hash: C908157EAC3E9BB85A036369C551B8D9 real time: 13 ms
2019/07/17 23:11:47 27C3D164 c (ecm) anonymous (0E00@000000/0000/0049/A2:C908157EAC3E9BB85A036369C551B8D9): found (25 ms) by emulator - AS7 HD 3

Compilation issue on master

Compiling with default options is currently failing

LINK	Distribution/oscam-1.20_svn11518-796-x86_64-redhat-linux.debug
build/x86_64-redhat-linux/module-emulator-biss.o: In function `biss_read_pem':
/usr/local/src/oscam-patched/module-emulator-biss.c:842: undefined reference to `PEM_read_RSAPrivateKey'
/usr/local/src/oscam-patched/module-emulator-biss.c:867: undefined reference to `i2d_RSA_PUBKEY'
/usr/local/src/oscam-patched/module-emulator-biss.c:876: undefined reference to `EVP_MD_CTX_new'
/usr/local/src/oscam-patched/module-emulator-biss.c:882: undefined reference to `EVP_sha256'
/usr/local/src/oscam-patched/module-emulator-biss.c:882: undefined reference to `EVP_DigestInit_ex'
/usr/local/src/oscam-patched/module-emulator-biss.c:883: undefined reference to `EVP_DigestUpdate'
/usr/local/src/oscam-patched/module-emulator-biss.c:884: undefined reference to `EVP_DigestFinal_ex'
/usr/local/src/oscam-patched/module-emulator-biss.c:885: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status

constant CW file and constcw protocol problems!!!

**hi,
oscam says " we have got reader and it can be read biss keys in constantcw file and protocol name is constcw " but they are protocol i think dont work with home sharing / biss sharing..

i did try constant.cw file sharing with hd mini receiver but channels dont open

normal emulator can open channels hd mini receiver

i dont never try local sat tuner in biss channels . for example, dm800 and oscam with biss channels,

oscam cant do it

can you help ?
regards**

no compile patch

Thanks! to oscam-emu patch

No function patch and compile from ubuntu on 11464,,,, 11471

Be out Q how to work?

**Be out Q how to work? we have keys but it doesnt work?

they are h.265** what do you think?

Build error on Windows (Cygwin)

Hello :)

Seems that because of changes between 1.0 and 1.1 releases of libssl, I'm unable to build oscam-patched on Windows (Cygwin, x64).

[ 98%] Building C object CMakeFiles/oscam.dir/oscam.o
[ 99%] Linking C executable oscam.exe
libcsmodules.a(module-emulator-biss.o):module-emulator-biss.c:(.text+0x17da): undefined reference to `EVP_MD_CTX_new'
libcsmodules.a(module-emulator-biss.o):module-emulator-biss.c:(.text+0x17da): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `EVP_MD_CTX_new'
libcsmodules.a(module-emulator-biss.o):module-emulator-biss.c:(.text+0x1822): undefined reference to `EVP_MD_CTX_free'
libcsmodules.a(module-emulator-biss.o):module-emulator-biss.c:(.text+0x1822): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/oscam.dir/build.make:102: oscam.exe] Error 1
make[1]: *** [CMakeFiles/Makefile2:186: CMakeFiles/oscam.dir/all] Error 2
make: *** [Makefile:150: all] Error 2

I've tried to manually upgrade OpenSSL library and headers with these ones: https://bintray.com/vszakats/generic/openssl but that didn't help.

I'm running make with USE_LIBCRYPTO=1

Thanks for any suggestions how to fix that.

Support for PowerVu modeCW 4

Hello friends, just the mux globosat of 65W and 75W satellites, coded. Below the oscam log:
2018/07/02 17:34:40 04D832E1 r (emu) ecm1:803045503F200E0078089276262863E95F5F00EAB00077734C0CF5DA9DE4F40DE367039C2808400000CD5B493858159C8E1C6F7441B7EEA451411FAE212058CC527E3BDB893B29B4
2018/07/02 17:34:40 04D832E1 r (emu) csaUsed=0,xorMode=0,ecmSrvid=132,hashModeCw=1,modeCW=4

make failed

CC oscam-time.c
CC oscam-work.c
CC oscam.c
CONF build/aarch64-linux-gnu/config.c
LINK Distribution/oscam-1.20_svn11494-788-aarch64-linux-gnu.debug
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
Makefile:437: recipe for target 'Distribution/oscam-1.20_svn11494-788-aarch64-linux-gnu.debug' failed
make[1]: *** [Distribution/oscam-1.20_svn11494-788-aarch64-linux-gnu.debug] Error 1
Makefile:406: recipe for target 'all' failed
make: *** [all] Error 2

Linux rockpro64 4.4.154-1128-rockchip-ayufan-g61b4b1151f9a #1 SMP Tue Dec 25 14:31:31 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

make failed

build/aarch64-linux-gnu/module-emulator-biss.o: In function `biss_read_pem':
/home/git/oscam-patched/module-emulator-biss.c:842: undefined reference to `PEM_read_RSAPrivateKey'
/home/git/oscam-patched/module-emulator-biss.c:867: undefined reference to `i2d_RSA_PUBKEY'
/home/git/oscam-patched/module-emulator-biss.c:876: undefined reference to `EVP_MD_CTX_new'
/home/git/oscam-patched/module-emulator-biss.c:882: undefined reference to `EVP_sha256'
/home/git/oscam-patched/module-emulator-biss.c:882: undefined reference to `EVP_DigestInit_ex'
/home/git/oscam-patched/module-emulator-biss.c:883: undefined reference to `EVP_DigestUpdate'
/home/git/oscam-patched/module-emulator-biss.c:884: undefined reference to `EVP_DigestFinal_ex'
/home/git/oscam-patched/module-emulator-biss.c:885: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
Makefile:437: recipe for target 'Distribution/oscam-1.20_svn11509-795-aarch64-linux-gnu.debug' failed
make[1]: *** [Distribution/oscam-1.20_svn11509-795-aarch64-linux-gnu.debug] Error 1
Makefile:406: recipe for target 'all' failed
make: *** [all] Error 2
root@rockpro64:/home# uname -a
Linux rockpro64 4.4.154 #1 SMP Thu Feb 7 17:40:53 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux

DVBAPI Stop Descrambling Some SPN Channels (after r11511)

Hi oscam-emu.

I found this error after compiling to the latest source of oscam-emu (r11512), and the error is known to be since r11511 (as also reported on streamboard). Some channels on SPN Intelsat 20 are effected after the changes, for example: PIX India and SAB India.

Log files with 128:
oscam-emu-r11512-SPN-PixIndia.txt
oscam-emu-r11512-SPN-SAB.txt

Recorded TS files on my enigma2
These with oscam-emu on (running), about a minute long:
https://www.mediafire.com/file/fybdz3465sx8k88/PIX-India-Int20.zip/file (PIX India)
https://www.mediafire.com/file/eu8d6t9ls7zaxkc/SAB-India-Int20.zip/file (SAB India)

This one with oscam-emu off (not running) about two minutes long:
https://www.mediafire.com/file/fybdz3465sx8k88/PIX-India-Int20.zip/file (PIX India)

I'm sorry I can't provide a recorded file via PC because I don' have dvbcard.

If more things I should do, please tell me.

Thank you!

NB:
STB in use is Dinobot4K.
Compiled with #define MAX_STREAM_INDICES 16 or #define MAX_STREAM_INDICES 32 and it solved the issue.

PowerVU EMM algorithm updates ECM keys in wrong group

Sony Group on Intelsat 20 and Intelsat 17 sometimes transmit emm data which has the same UA. For example, UA 00422FF6 which the emm key is valid for both. Although we already distinguish the Group ID, Oscam doesn't write the new ecm-key to the corresponding Group ID.

about some calculation

1st hash is calculated by the enigma2  (orbital position, frequency, polarization) and the service id of the channel.

  1. how does oscam calculate it? please explain in detail. please!

new camd fix

if set .user au = 0 newcamd work all ok
while
if set .user au = 1 newcamd crach i need restart

01:51:02 596EE516 c (reader) emulator [emu] EMM: reader 1010 match since emmpi d has no provid -> SEND!
01:51:02 596EE516 c (newcamd) AU enabled for user newbox on reader emulator
01:51:02 596EE516 c (newcamd) send 15 bytes to client
01:51:02 596EE516 c (newcamd) 00 0D 00 00 00 00 00 00 00 00 00 00 E1 00 00
01:51:02 596EE516 c (newcamd) nmr(): len=2, errno=0
01:51:02 596EE516 c (newcamd) received 5 bytes from client
01:51:02 596EE516 c (newcamd) 00 00 E3 00 00
01:51:02 596EE516 c (newcamd) client[77B46530].newbox nfilts=1, filt.caid=1010
01:51:02 596EE516 c (newcamd) client caid 0: 1010
01:51:02 596EE516 c (newcamd) search server provid 0: 000000

Gcam Opens some channels which Oscam / Ncam Don't Open

Dear Experts;

I have to discuss that there are some channels on T.P 11510 H of 93.5 east and 12688 H of 95 East which are working fine on Gcam 1.5 and Gcam 1.9. I have tested them on both Spark 7162 and DreamBox DM520 on various Images.

While these same channels are not working with Oscam and Ncam. Although I have replaced all configuration files of Gcam 1.9 with Oscam as well as Ncam.

Kindly look into the matter and suggest any solution.

Thanking you in Advance.

feature: #define MAX_DEMUX

There is some transponders with lot of services and oscam cannot descramble all with dvbapi

it is needed to edit module-dvbapi.h to
#define MAX_DEMUX 32
or even bigger number

If is configurable by web-ui even better.

what is this problem and how to solve it

this problem occur when trying to open powervu channels
joeuser openpli5 with his drivers for spark 7162 stb

2018/11/20 16:08:17 20219815 c (dvbapi) ERROR: Can't open device /dev/dvb/adapter0/demux0 (errno=24 Too many open files)
2018/11/20 16:08:18 20219815 c (dvbapi) Demuxer 0 restarting decodingrequests after 2 ms with 1 enabled and 0 disabled ecmpids!
2018/11/20 16:08:18 20219815 c (dvbapi) Demuxer 0 trying to descramble PID 0 CAID 0E00 PROVID 000000 ECMPID 1779 ANY CHID PMTPID 1920 VPID 1921

AFN channels only sound no picture

Since today no more picture on AFN channels only sound sunday it was all working fine, using latest oscam-emu version 11529-emu 796 ?
Must there be something changed in the emu patch or in the emu reader in oscam ?

Crash due to stack smashing

There's obviously something pretty wrong in this patch that can cause stack smashing and a crash to occur:

Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f33c821b700 (LWP 33815))]
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007f33ca7cd801 in __GI_abort () at abort.c:79
#2  0x00007f33ca816897 in __libc_message (action=action@entry=do_abort,
    fmt=fmt@entry=0x7f33ca943988 "*** %s ***: %s terminated\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007f33ca8c1cd1 in __GI___fortify_fail_abort (
    need_backtrace=need_backtrace@entry=false,
    msg=msg@entry=0x7f33ca943966 "stack smashing detected") at fortify_fail.c:33
#4  0x00007f33ca8c1c92 in __stack_chk_fail () at stack_chk_fail.c:29
#5  0x00005627b9bdadd6 in ProcessECM (rdr=<optimized out>,
    ecmDataLen=<optimized out>, caid=<optimized out>, provider=<optimized out>,
    ecm=<optimized out>, dw=<optimized out>, srvid=<optimized out>,
    ecmpid=<optimized out>, cw_ex=<optimized out>) at module-emulator-osemu.c:1036
#6  0x00005627b9bd73e1 in emu_do_ecm (rdr=<optimized out>, er=<optimized out>,
    ea=<optimized out>) at module-emulator.c:184
#7  0x00005627b9c2e888 in cardreader_do_ecm (reader=reader@entry=0x5627ba12b4a0,
    er=er@entry=0x7f32e8008e70, ea=ea@entry=0x7f33c821abd0) at reader-common.c:447
#8  0x00005627b9c2e9ae in cardreader_process_ecm (
    reader=reader@entry=0x5627ba12b4a0, cl=0x5627ba2ea300, er=0x7f32e8008e70)
    at reader-common.c:490
#9  0x00005627b9c78047 in reader_get_ecm (reader=reader@entry=0x5627ba12b4a0,
    er=<optimized out>) at oscam-reader.c:1118
#10 0x00005627b9c7c3e4 in work_thread (ptr=<optimized out>) at oscam-work.c:275
#11 0x00007f33cab856db in start_thread (arg=0x7f33c821b700)
    at pthread_create.c:463
#12 0x00007f33ca8ae88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)

can't build at deb9

CONF	build/x86_64-linux-gnu/config.c
CC	oscam.c
CC	oscam-work.c
LINK	Distribution/oscam-1.20_svn11517-795-x86_64-linux-gnu.debug
build/x86_64-linux-gnu/module-emulator-biss.o: In function `biss_read_pem':
/root/oscam-patched/module-emulator-biss.c:842: undefined reference to `PEM_read_RSAPrivateKey'
/root/oscam-patched/module-emulator-biss.c:867: undefined reference to `i2d_RSA_PUBKEY'
/root/oscam-patched/module-emulator-biss.c:876: undefined reference to `EVP_MD_CTX_new'
/root/oscam-patched/module-emulator-biss.c:882: undefined reference to `EVP_sha256'
/root/oscam-patched/module-emulator-biss.c:882: undefined reference to `EVP_DigestInit_ex'
/root/oscam-patched/module-emulator-biss.c:883: undefined reference to `EVP_DigestUpdate'
/root/oscam-patched/module-emulator-biss.c:884: undefined reference to `EVP_DigestFinal_ex'
/root/oscam-patched/module-emulator-biss.c:885: undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
Makefile:435: recipe for target 'Distribution/oscam-1.20_svn11517-795-x86_64-linux-gnu.debug' failed
make[1]: *** [Distribution/oscam-1.20_svn11517-795-x86_64-linux-gnu.debug] Error 1
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2

Everytime a PowerVU key is updated a line is added in SoftCam.Key

Can't we better adapt the line we already have?

now->
P CCCCCCCC GROUP 1234 ; A nice transponder
P 1234FFFF 00 AAAAAAAAAAAAAA
P 1234FFFF 01 BBBBBBBBBBBBBB
P 1234 XXXXXXXX QQQQQQQQQQQQQQ ;EMM Key

P 1234FFFF 00 DDDDDDDDDDDDDD ; added by Emu Sun Jun 31 23:53:08 2019 UA: XXXXXXXX
P 1234FFFF 01 EEEEEEEEEEEEEE ; added by Emu Sun Jun 31 23:53:08 2019 UA: XXXXXXXX
(these lines grow forever)...

suggested->
P CCCCCCCC GROUP 1234 ; A nice transponder
P 1234FFFF 00 DDDDDDDDDDDDDD ; updated by Emu Sun Jun 31 23:53:08 2019 UA: XXXXXXXX
P 1234FFFF 01 EEEEEEEEEEEEEE ; updated by Emu Sun Jun 31 23:53:08 2019 UA: XXXXXXXX
P 1234 XXXXXXXX QQQQQQQQQQQQQQ ;EMM Key

The file now grows for ever and the old keys are not needed anymore...

65w-75w mux global

mode unmask : 0 ( in use )
Hash mode cw : 1 ( not in use )
mode cw : 8/20/35/41 changing every 2 sec.

`ECM[Video]:
ECM: 80 30 45 50 3F 20 0E 00 55 08 F2 76 5B 17 B0 6D 46 8F 00 F3 A0 00 FF 38 C2 FF 9A 20 D3 20 26 2D 76 50 48 DD 98 0A 30 09 00 6F B2 6A D9 7E 09 0A 19 83 90 03 D5 D3 27 96 A5 27 FA 86 DE 1A F3 18 79 BF CF 0F 3F CC 56 BC
Unmasked ECM: 80 30 45 30 3F 20 0E 00 00 08 F2 76 5B 17 B0 6D 46 8F 00 F3 A0 00 FF 38 C2 FF 9A 20 D3 20 26 2D 76 50 48 DD 00 0A 30 09 00 6F B2 6A D9 7E 09 0A 19 83 90 03 D5 D3 27 96 A5 27 FA 86 DE 1A F3 18 79 BF CF 0F 8F FB 23 E3
IsDecrypted: True
DVB Scrambling Algo: DES
Needs Unmasking: True
ECM Counter: $F3
Nanos: [5]->($20, $3E)
Nano $20 Extra Data Length: 8
Mode CW: 8 (in use)
Mode Unmask: 0 (in use)
Hash Mode CW: 1 (not in use)
Hash Mode Unmask: 0 (in use)
Seed CW ECM: FF D3 FF 2D 38 76 C2 20 48 26 50 00 00 00 00 00
ECM CalculateSeed: 80 30 45 30 3F 20 0E 00 00 08 F2 76 5B 17 B0 6D 46 8F 00 F3 A0 00 66 0B 8E B6 DE A0 F5 83 3C FC FC 72 EE F5 00 0A 30 09 00 F5 00 B2 A3 FE 01 01 64 07 E6 AD C0 02 82 A0 82 E0 00 00 00 99 00 00 00 C6 0A 30 8F FB 23 E3
Base Cw: F5 83 3C FC FC 72 EE
Seed VPid: CF D2 34 96 25 81 00 00
Seed APid-1: 12 6A 22 71 9C 63 00 00
Seed APid-2: 12 6A 22 71 9C 63 00 00
Seed APid-3: 07 6C C7 1A C6 95 00 00
Seed APid-4: 07 6C C7 1A C6 95 00 00
Seed HSD: 26 91 E7 EE FB A3 00 00
S-Box Type: Primary Tables
Xor Mode: Normal mode[0]
Ident: $A30
KeyIdx: 0
Key: FA 04 EA 18 EF 11 2B
OddCwAudio1: F8 04 64 E6 51 49 79 C7
EvenCwAudio1: 85 01 CD 62 E5 51 3D C8
OddCwAudio2: F8 04 64 E6 51 49 79 C7
EvenCwAudio2: 85 01 CD 62 E5 51 3D C8
OddCwAudio3: 23 01 E9 75 B3 15 9E 79
EvenCwAudio3: 16 61 EC 52 5E 7F 46 85
OddCwAudio4: 23 01 E9 75 B3 15 9E 79
EvenCwAudio4: 16 61 EC 52 5E 7F 46 85
OddCwVideo: EC B0 08 34 92 73 6B 62
EvenCwVideo: 4C BC 52 4F 97 61 7F 79
OddCwHSD: 64 6E EC 89 34 DC 91 92
EvenCwHSD: 7A F7 83 1C 2C 64 7C 7A

TS Before CSA:
47 02 76 D9 E3 5F 47 3B B5 EF C1 E2 B2 D5 5A AC 40 6A 33 B4 13 47 F0 79 45 63 DA DF A9 A6 A9 0C 04 ED 3D 02 7E 44 B8 88 4B 2D 2F 64 E7 24 6D DA CB 0D FD AC 47 95 72 C2 AA 2F F3 65 B7 F2 26 0F 0E 0E 62 12 EF 5B C5 F8 02 B5 FD 01 B6 AE B6 07 5B E6 C7 76 EA 42 B0 96 C3 79 50 F4 5E 16 4A D2 25 F0 C0 6D D5 F7 87 71 50 09 5B C7 6D 51 67 B0 06 D5 87 EC 72 43 72 F4 EE 84 0C D4 04 AE F9 5D 54 56 10 58 B9 1D ED C7 EB 08 B2 55 8C C6 1D F4 E0 E7 CD 2F FC 31 FA 5B 6A DF D5 6C 06 9B 78 09 E2 28 10 EA F7 71 DE 71 75 DF DC 50 E2 2D 4D B5 DB 09 46 E9 76 68 4F FF 2B 02 D2 F3

TS After CSA:
47 02 76 19 10 8D A8 B7 D4 A0 55 65 C2 73 16 E8 DE 88 19 42 C2 BE DA 31 CB C8 C5 5F 9C 7F D4 34 DE 00 DE A9 7B 9A 66 06 D0 92 07 BD 31 8A C7 24 EC 04 FC 11 9B 75 94 3E C7 82 6F A8 DB F5 03 D5 2B B8 D4 28 26 93 3C DD 64 04 90 1C AF 3D 68 86 63 D3 96 EF 9E 3E 19 50 50 42 47 F4 0F 07 8F 0E FE 58 1C A7 EB D6 DC DD 61 93 DA 04 09 16 F3 F3 64 E2 EA 25 A8 89 A8 95 87 96 EF D1 55 CC 67 83 48 E3 8A 48 B0 C7 09 61 88 52 1E D7 2F 47 9F 1A 73 5C 33 FB 55 10 56 AF 89 E0 F3 FB A5 50 8E EB 14 C8 69 6E 10 9E 6F 41 F6 41 0B 7A AE 98 DD 9B 47 A0 E0 A3 3A 9F 03 F8 67 DC D9 45`

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.