-------->SBOX<--------
- La podemos utilizar como lector de nuestra tarjeta de abonado.
- La podemos utilizar como cliente de protocolo Newcamd (aunque necesario tener tarjeta abonado en lector.
- La podemos utilizar como Servidor con protocolo Newcamd.
==============================================
ARCHIVOS
==============================================
Los archivos van en la carpetas:
sbox.sh40--->Var/bin--->Archivo emu
sbox.conf---->Var/bin---->Archivo configuracion
user.sbox---->Usr/bin---->Archivo para configurar los clientes de nuestro servidor Newcamd
==============================================
CONFIGURACION LECTOR TARJETA Y SERVIDOR NEWCAMD
==============================================
sbox.conf
Código:
[main]
server_only=0 # 0=emu+newcamd server 1=only newcamd server
log=0 # 1=no log 1=log to /tmp/sbox.log //ALWAYS USE 0//
userspath=/var/bin/users.sbox # users list
webinterface=1 # 1=web interface on 0=web interface off
webport=8181 # web interface port
[slot0]
active=1 # 0=inactive 1=active
sci=/dev/sci0 # lower
ncdserver=1 # 0=newcamd server off 1=newcamd server on
deskey=0102030405060708091011121314 # newcamd deskey
port=xxxxx # newcamd port
mhz=357 # Mhz for card in this reader, DON'T WORK ON PHOENIX INTERFACE. Example: mhz=357, mhz=368
reader=1 # 0=phoenix, 1=sci (internal reader), 2=smartreader
# How to ADD RSA for TIGER/NCMED cards
# If your card is a ROM TIGER547 Rev124 (for example)
# [TIGER547] <- this is the rom version from your card
# rsa=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# ONLY THIS, for config bloquer, portlist, etc, look at the examples above!
#Nagra2/3 Example
[CCCCCCCC] # nagra2 camid (4 bytes)
rsa= # rsa "n" from this card (like newcs)
boxkey= # boxkey from this card
emm=0 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath=/var/****/port.list # path from port.list
#Nagra tiger/ncmed Example
[CCCCCCCC] # nagra camid (4 bytes)
emm=2 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
#Seca Example
[CCCCCCCC] # seca camid (4 bytes)
ok_view=0 # if ok_view=1 sbox simulates the "ok view this season" on seca smartcards
emm=7 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
#Viaccess Example
[CCCCCCCC] # via camid (4 bytes)
emm=7 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
aeskey= # aeskey used by nano d2
#Irdeto Example
[CCCCCCCC] # irdeto camid (4 bytes)
camkey=0000000000000000 # CamKEY
camkeydata=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
emm=7 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
#NDS Example
[CCCCCCCC] # nds camid (4 bytes)
emm=7 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
boxid= # if sbox can't get boxid from card, add here manually
#Conax Example
[CCCCCCCC] # conax camid (4 bytes)
emm=7 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
#Example configuration newcamd client
[NewCamd]
#server0=dummy:dummy@localhost:15050/0102030405060708091011121314/0
#server1=dummy:dummy@localhost:15051/0102030405060708091011121314/2
#server2=dummy:dummy@localhost:15052/0102030405060708091011121314/7
Para que funcione correctamente con nuestra tarjeta de abonado v10, tendremos que tener en cuenta sobre todo estas lineas de configuracion:
Código:
server_only=0 # 0=emu+newcamd server 1=only newcamd server
Aqui normalmente pondremos a
0 de esta manera sbox arrancara como emu y como newcamd, es lo mejor ya que al arrancar como emu pues la tarjeta podra recibir actualizaciones.
Código:
active=1 # 0=inactive 1=active
Lo deberemos poner a
1 de esta manera activamos el slot que estemos utilizando.
Código:
ncdserver=1 # 0=newcamd server off 1=newcamd server on
Poner el valor
1 de esta manera activamos el server newcamd.
Código:
mhz=357 # Mhz for card in this reader, DON'T WORK ON PHOENIX INTERFACE. Example: mhz=357,
Velocidad de lectura de la card, la que mejor me ha ido con el receptor sh.40 es a 357.
Código:
reader=1 # 0=phoenix, 1=sci (internal reader), 2=smartreader
Pondremos el valor
1 ya que la lectura de nuestra tarjeta de abonado la realizamos con el tarjetero interno del receptor.
Código:
#Seca Example
[CCCCCCCC] # seca camid (4 bytes)
ok_view=0 # if ok_view=1 sbox simulates the "ok view this season" on seca smartcards
emm=7 # 0=accept all 1=block emms 2=block emmu 4=block emmg
portlist=0 # use portlist or no
portlistpath= # path from port.list
No es estrictamente necesario colocar estos datos, simplemente seria necesario en caso que queramos que la tarjeta se valla actualizando sin tener que pasar por el deco Oficial:
Para ello pondriamos el numero de tarjeta que sale debajo del codigo de barras quitando el primer digito y los dos ultimos pasandolo hex.
ok_view= pondriamos 1 para que una vez hallamos comprado un evento simule el OK que realizamos en el decodificador oficial.
emm= Pondriamos a 0 asi recibiriamos en la tarjeta todas las emm sin bloquear ninguna.
users.sbox
Código:
[slot0]
user=xxxxx
pass=xxxxx
au=0
Bastaria poner lo de arriba:
user=el nombre de usuario que queramos
pass=la contraseña que queramos
au= ponerlo a 0
Y os pego un log de sbox arrancado por telnet donde se ve el funcionamiento correcto:
Código:
root@qboxhd# /var/bin/sbox.sh40
12:54:12 sbox: Viewing Pay TV without a valid subscription is illegal
12:54:12
12:54:12 Wellcome to sBox (for SH40)
12:54:12 Version: 0.0.4-7 (19/03/2010 #4)
12:54:12 WebPage: http://www.sboxobs.tk
12:54:12
12:54:12 sbox: checking for /usr/bin/sbox.conf... OK
root@qboxhd# 12:54:16 io: sci device detected
12:54:16 reset: got atr on slot0
12:54:16 reset: atr xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
12:54:16 reset: hist xxxxxxxxxxxxxxxxxxxxxxxx
12:54:16 reset: char
l
12:54:16 reset: working at 3.570Mhz (max 5.000Mhz)
12:54:16 sbox: seca card init
12:54:16 seca: serial xxxxxxxxxx (xxxxxxxxxxx)
12:54:16 seca: provider 00, id xxxxxxx, ppua xxxxxx, caid 0100
12:54:16 seca: provider 01, id xxxxxxx, ppua xxxxxxx, caid 0100
12:54:16 seca: provider 02, id xxxxx, ppua xxxxxxxxx, caid 0100
12:54:16 seca: card init ok
12:54:16
12:54:16 newcamd: server 15050 init ok
12:54:16 webif: init
12:54:16 sbox: entering main loop
12:54:16 sbox: mixed mode
12:54:33 newcamd 15050: accepted xxxxxxxxxx from xxxxxxxxxx
12:54:33 newcamd 15050: sending info xxxxxxxx
12:54:34 newcamd 15050: ecm xxxxxxx [0100:000000:77C2] [810061410600000E00F9...] ok
(498ms)
12:54:34 newcamd 15050: ecm xxxxx [0100:000000:77C2] [800061410600000E00D9...] ok
(494ms)