Cccam2.08+newcs1.50+mpcs rom180
by Beor ®Hola compañeros
Vamos a echar a andar la blanquita con CCcam, como muchos sabreis necesitaremos la ayuda de mpcs y newcs para que rule.
Antes de nada, bajar el emu cccam_newcs_mpcs,
http://www.sendspace.com/file/irr19w previamente configurado para seguir este manual:
Colocar cada file en su lugar y a los files que hay en var/bin y var/script les dais permisos 755.
Una vez instalado el emulador en nuestra dreambox, introduciremos los datos de nuestra tarjeta en el newcs.xml, lo encontrareis en var/tuxbox/config:
Cita:
--------------------------------------------------------------------------------
<?xml version="1.0"?>
<newCSconfig>
<readers name="Card Readers">
<device>
<name>Lower Cardreader</name>
<type>sci</type>
<mhz>368</mhz>
<node>/dev/sci0</node>
<parity>odd</parity>
<export>Yes</export>
<enabled>Yes</enabled>
<blocksa>No</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<boxkey>tu boxkey</boxkey>
<rsa>Modulo N o RSA</rsa>
<crypto-special>No</crypto-special>
<PTShandshake>No</PTShandshake>
<carddetect>Yes</carddetect>
<newcamd_port>36500</newcamd_port>
<autosid>Yes</autosid>
<Seca-PPV>No</Seca-PPV>
<sid>
<allow>
<id></id>
</allow>
<deny>
<id></id>
</deny>
</sid>
<priority>round</priority>
</device>
</readers>
<radegastserver>
<enabled>No</enabled>
<port>16000</port>
</radegastserver>
<newcamdserver>
<enabled>Yes</enabled>
<name>newcs</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<user>
<name>dummy</name>
<password>dummy</password>
<port>36500</port>
<au>on</au>
<spider>No</spider>
</user>
</newcamdserver>
<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>
<debug>
<password>NewCSpwd</password>
<level>normal</level>
<type>init</type>
<output>console,tcp</output>
<console_options>normal,init</console_options>
<logfile></logfile>
<udp_host></udp_host>
<tcp_port>1001</tcp_port>
<tcp_options>normal,init</tcp_options>
</debug>
</newCSconfig>
--------------------------------------------------------------------------------
Ahora la parte del mpcs, como arriba, los datos a modificar los teneis señalados en rojo, los files estan en la misma carpeta que el newcs.xml.
mpcs.server:
Código:
--------------------------------------------------------------------------------
#[reader]
#Label = cs357x
#Protocol = camd35
#Device = 192.168.0.250,16000
#Account = matthias,cwdbox2
#Fallback = 0
#Group = 1
#[reader]
#Label = newcamd
#Protocol = newcamd
#Key = 0102030405060708091011121314
#Device = 127.0.0.1,6002
#Account = login,password
#Fallback = 0
#Group = 1
#ReconnectTimeout = 20
#[reader]
#Label = cs378x
#Protocol = cs378x
#Device = 127.0.0.1,6002
#Account = login,password
#Fallback = 0
#Group = 1
#[reader]
#Label = mouse
#Protocol = mouse
#Device = /dev/ttyS1
#Fallback = 0
#Group = 1
#EMMCache = 1,1,2
[reader]
Label = newcamd
Protocol = newcamd
Key = 0102030405060708091011121314
Device = 127.0.0.1,36500
Account = dummy,dummy
Fallback = 0
DisableServerFilter = 1
Group = 1
ReconnectTimeout = 20
#[reader]
#Label = pc
#Protocol = gbox
#Device = 192.168.0.14,23001,23002
#Account = 192.168.0.14,AAAAA015
#Fallback = 0
#CAID = 0000&000000
#Group = 1
#[reader]
#Label = dbox
#Protocol = gbox
#Device = 192.168.0.10,8030
#Account = 192.168.0.14,AAAAA010
#Fallback = 0
#CAID = 0000&000000
#Group = 1
#[reader]
#Label = server-vpn
#Protocol = gbox
#Device = 192.168.0.250,8020,8020
#Account = 192.168.15.201,DC82A6F9
#Fallback = 0
#CAID = 0000&000000
#Group = 1
#password = AAAAA201
--------------------------------------------------------------------------------
mpcs.conf:
Código:
--------------------------------------------------------------------------------
[global]
Nice = -1
#LogFile = /dev/tty
ClientTimeout = 5
LogFile = stdout
Level = 15
CacheDelay = 120
#[newcamd]
Key = 0102030405060708091011121314
Port = 44444@1801:004101,000000
#Port = 50000@0100:0000,0065,006A,006C,0080,0081,0083,0085,4101;50001@0500:0000,007C00,009400,00B000,00E440,018800,020000,020010,020150,020800,020810,020900,020910,020A00,020A10,020A20;50002@0500:020A30,020A40,021100,021110,021500,021700,021B00,021C00,022600,022610,022900,022C00,022E00,023600,023800,023B00;50003@0500:024400,025100,025110,025900,025910;50004@0600:0000;50005@0602:0000;50006@0604:0000;50007@0606:0000;50008@0608:0000;50009@0622:0000;50010@0626:0000;50011@0628:0000;50012@0919:0000;50013@0944:0000;50014@0961:0000;50015@0B00:0000;50016@0D00:0000,2000;50017@0D02:0000,A000;50018@0D03:0000,2400,2800,5C00,A000,B000;50019@0D05:0000,0400,0C00;50020@0D0C:0000,0C00;50021@0D22:0000,0400;50022@1702:0000;50023@1722:0000;50024@1762:0000;50025@1800:0000,3B01,7301;50026@1801:0000,0101,0501,0700,2201,4001,7001;50027@4A70:0000
#Port = 50000@0100:0000,0065,006A,006C,0080,0081,0083,0085,00AB,00AC,00AD,00AE,4101;50001@0500:0000,007C00,009400,00B000,018800,020000,020010,020800,020810,020900,020910,020A00,020A10,020A20,020A30,020A40;50002@0500:021100,021110,021500,021700,021B00,021C00,022600,022610,022900,022C00,022E00,023800,023B00,024400,025100,025110;50003@0604:0000;50004@0606:0000;50005@0626:0000;50006@0628:0000;50007@0919:0000;50008@0961:0000;50009@0D00:0000,2000;50010@0D02:0000,A000;50011@0D22:0000,0400;50012@1801:0000,0501,4001,7001;50013@4A70:0000;
#[radegast]
#Port = 60000
#User = tuner
#Allowed = 192.168.0.0-192.168.255.255
[gbox]
Password = 1234A641
MaxDist = 2
CardInfos = cards.info
#IgnoreList = ignore.list
#OnlineInfos = share.onl
#Locals = 17220000,18010501,0D220400
#[cs378x]
#Port = 15000
#Port = 10000@0500:020710
[cs357x]
Port = 15000
#[serial]
#Device = tuner@/dev/ttyS0?delay=1&timeout=300
# Golden Interstar
#Device = gi://tuner@/dev/ttyS0
# General Satellite
#Device = gs://tuner@/dev/ttyS0
--------------------------------------------------------------------------------
mpcs.user:
Código:
--------------------------------------------------------------------------------
[account]
User = dummy
Pwd = dummy
#Uniq = 1
Group = 1
#IDENT = 0500:020710
#Hostname = valid-only.from.hier
#[account]
#User = au
#Pwd = password
#Group = 1
#AU = mouse
--------------------------------------------------------------------------------
Ahora vamos a la carpeta var/etc, ahi tendremos que modificar el archivo CCcam.cfg
Para poder acceder como clientes Camd3 al server MPCS se usa la linea L:
Código:
--------------------------------------------------------------------------------
######################################################################
# friends #
######################################################################
# syntax for to add a friend user to CCcam with the max up hops limit (default = 5)
# sharing of emus (default = 1), allow emm (default = 1), and optional
# downshare limits per share (default = no limits) and optional
# downshare limits per share based on caid:id:sid
# and optional timeslots in which share is valid (to block channels on box of children after 19:00 for instance)
# if no timeslot is defined 24 hrs a day is used
# emus are shared only one level down, even if no limits given
#
# max username length 20
# password length 'unlimited'
#
#F: <username> <password> <uphops> <shareemus> <allowemm> ( { caid:id(:downhops), caid:id(:downhops), ... } { caid:id:sid, caid:id:sid, ... } { begintime-endtime, ... } ) hostname/ip address
#
# example:
#
# F: user1 pass1
#
# user1 gets all our shares at max 5 hops from us
# (our local cards + max five hops away). He can share down to his own
# clients. He also receive emu shares (if he has 'yes' behind his C: entry),
# and is allowed to send us emm.
#
# F: user2 pass2 0 1 0 { 0100:000080, 0622:000000:1, 0500:000000:2 }
#
# user2 gets only our local cards but no 0100:000080.
# and our 0622:000000 cards only for himself (1 hop down),
# and 0500 cards for himself plus one additional hop down.
# He also gets our emus, and is NOT allowed to send us emm (updates).
#
# F: user3 pass3 5 0 1 { 0:0:3, 0100:000080:1 }
#
# user3 gets all cards at a maximum of 5 hops away from us,
# and get's to share them down two further levels beyond his own level.
# But he is not allowed to share 0100:000080 down to other users.
# He gets no emus from us, and he is allowed to send us emm.
#
# F: user4 pass4 5 0 1 { 0:0:3, 0100:000080:1 } { 0100:000080:15df }
#
# user4 gets all cards at a maximum of 5 hops away from us,
# and get's to share them down two further levels beyond his own level.
# But he is not allowed to share 0100:000080 down to other users.
# He gets no emus from us, and he is allowed to send us emm.
# He is also not allowed to view channel 0100:000080:15df
#
# F: user4 pass4 5 0 1 { } { } { 12:00-17:00, 19:00-20:00 }
#
# user4 gets all cards at a maximum of 5 hops away from us,
# and get's to share them down two further levels beyond his own level.
# the share is only valid between 12:00 and 17:00 and between 19:00 and 20:00
# outside these hours the share will not give cw's to the client
#
#
# F: user5 pass5 5 1 1 { } { } { } 192.168.1.1
#
# user5 gets all cards at a maximum of 5 hops away from us
# user5 is only allowed to connect from the host 192.168.1.1
#
######################################################################
# connections #
######################################################################
# syntax for to add a client connection to other CCcam
# add yes on end to use friends emus (non public private key/emu,etc...),
# but only works when corresponding F line on server has '1' for <shareemus>
# optional limits just like F line, but for incoming shares (ignore shares more than 'uphops' away)
#
#C: <hostname> <port> <username> <password> <wantemus> ( { caid:id(:uphops), caid:id(:uphops), ... } )
#
#note: if {} limits are added, <wantemus> cannot be omitted. Use either yes or no.
#
# example:
#
# C: someserver.somedomain 12000 user1 pass1
# C: 192.168.1.2 12000 user2 pass2
# connects to CCcam without use of friends emus
#
# C: 192.168.1.2 12000 user3 pass3 yes
# connects to CCcam, and receives friends emus also.
# syntax for to add newcamd server connection
#
# N: <ip> <port> <username> <pass> <des(14byte)> <nr_of_hops_away (default: 1)> <stealth mode (default: 0)>
#
# example:
#
# N: 127.0.0.1 10000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14
#
# add a newcamd card, give it an offset of 2 hops, in the share list
#
# N: 127.0.0.1 10000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 2
#
# stealthy login on newcamd server:
#
# N: 127.0.0.1 10000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 1 1
#
# stealth modes: 0 = disabled, 1 = mgcamd new, 2 = mgcamd old, 3 = evocamd, 4 = generic
# syntax for to add radegast server connection
#
# R: <ip> <port> <ca4> <id6> <nr_of_hops_away (default: 1)>
#
# example:
#
# R: 127.0.0.1 678 0100 000080
# syntax for to add camd3 connection
#
# L: <ip> <port> <username> <pass> <ca4> <id6> <nr_of_hops_away (default: 1)>
#
# example:
#
L: 127.0.0.1 15000 dummy dummy 1810 000000
# syntax for add gbox connection
#
#G: <pass> <localhost> <localport> <peerpass> <peeraddress> <peerport>
#
# support optional limits just like C line (ignore shares more than 'uphops' away)
# { caid:id(:uphops), caid:id(:uphops), ... }
#
# example:
#
# G: AABBCCDD my.address.tv 2500 12345678 peer.address.tv 2500
######################################################################
# Other config settings #
######################################################################
# server shall listen on this port pro incoming connections
# default port is 12000, disable server with parm -s or set port 0
#
SERVER LISTEN PORT : 12000
# server can give some info about server and client connections
# and cardinfo using telnet or webbrowser.
#
# Switch on/off access to info
# default is yes
#
#ALLOW TELNETINFO: no
ALLOW WEBINFO: yes
# Show extended client info when showing client list
# default is yes
#
#SHOW EXTENEDED CLIENT INFO : no
# The webinfo service can be protected with a username and password.
# This is switched off by default
#
#WEBINFO USERNAME : <username>
#WEBINFO PASSWORD : <password>
# The telnetinfo service can be protected with a username and password.
# This is switched off by default
#
#TELNETINFO USERNAME : <username>
#TELNETINFO PASSWORD : <password>
# default port for telnet is 16000
# default port for web is 16001
# supported commands:
# info
# activeclients
# clients
# servers
# shares
# providers
# entitlements
# example use:
# echo servers | telnet localhost 16000
# go with your browser to
http://ip_CCcam_server:16001#
TELNETINFO LISTEN PORT : 16000
WEBINFO LISTEN PORT : 16001
# time in seconds to keep On Screen Display active.
# default is 0 (turned off)
#
ZAP OSD TIME : 0
# username used to show popup (default : root)
OSD USERNAME : root
# password used to show popup (default : dreambox)
OSD PASSWORD : dreambox
# port used to show popup (default : 80)
OSD PORT : 80
# Serial reader config. Add as many as you have attached too your system
# replaces old name 'PHOENIX READER PATH', but still works.
# default is none
# optionally add readertype : phoenix,mouse,uniprog,sc8in1,smartreader+
# (when non readertype given defaults to uniprog (e.g. for mastera))
#
# SERIAL READER : <device> <type>
#
# example
#
#SERIAL READER : /dev/tts/0
# Serial reader smartcard write delay.
# Setting to finetune smartcard write speed, optimal setting depends on speed of system, and
# speed of card. Default value is calculated, but can overrule by setting.
# Use number of microseconds delay between bytes, 0 = no delay, -1 = calculated default
# Note: huge difference between values 0 and 1, because of schedular overhead
#
# SMARTCARD WRITE DELAY : <device> <delay>
#
# example, 10ms write delay on smartcard in reader attached to /dev/ttyUSB0
#
#SMARTCARD WRITE DELAY: /dev/ttyUSB0 10000
#
# NOTE on sc8in1; because 8 smartcards are used on the same devicename, use
# devicename_0 .. devicename_7 for settings which require devicename to make
# settings per smartcard. example /dev/ttyS0_0, /dev/ttyS0_1 ..
# example, 8ms write delay between bytes to smartcard on last sc8in1 channel, attached to /dev/tts/0
#
#SMARTCARD WRITE DELAY: /dev/tts/0_7 8000
# Smartcard clock speed override
# Setting override specified speed for smartcard.
# Don't add setting unless you're sure what you're doing.
# In 99% of the cases the reader selects the optimal speed.
# Adding this setting either slows your card down, or might destroy it.
#
# SMARTCARD CLOCK FREQUENCY : <device> <freq>
#
# example
#
#SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 5500000
# if timing should be shown in OSD and debug output
# default is no (turned off)
#
SHOW TIMING : no
# enables mini OSD which shows server(type), cardreader, keys or fta only
# default is no (turned off)
#
MINI OSD : no
# turns debugging on and off
# default is no (turned off)
#
DEBUG : no
# should CCcam try to read and parse newcamd.conf for server connections
# default is no (turned off)
#