Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Donate Now Goal amount for this month: 100 EUR, Received: 16 EUR (16%)
Donate to support this site...

Results 1 to 2 of 2
  1. #1
    Gold Member Expert
    RDI - Board Default Avatar

    Join Date
    Dec 2003
    Posts Thanks / Likes

    Default NEWCAMD un cardserver de exceptie !

    Datorat mesterului Gogi !

    # DREAMBOX 7020 /etc/tuxbox/config/cardserv.cfg
    # edit by Ubbe [email protected]
    # The new cardserver can run several cards at once. It detects cards being
    # inserted and removed from configured card readers. Every card uses its
    # own TCP port to listen for incoming client connections. Card readers, that
    # are configured, but where no card is inserted, will not be initialized.
    # Supported are both serial ports of dbox2 (SERIAL_PORT = 0, 1), Dreambox
    # cardreaders (SERIAL_PORT = 0 (upper), SERIAL_PORT = 1 (lower)) and the
    # Dreambox's serial port (SERIAL_PORT = 2). Supported CA systems are suka,
    # via**ess, irtedo, Viasat-EN*D*ES, clonax, Cryptoworks and Nagra1. irtedo cards (or
    # some of them) probably won't work in the Dreambox cardreaders, due to driver
    # issues. In fact, the only irtedo cards, that were successfully tested in
    # Dreambox cardreaders, are the new Pr*miere cards and I2 cards. Pr*miere cards
    # will ONLY work with betad (no sharing allowed for Pr*miere). Betad is a small
    # subset of cardserver, using Unix Domain Sockets to communicate with newcamd.
    # Also betad will only understand a very small subset of the options described
    # here. Each instance of betad will only be able to serve exactly one card,
    # while one instance of cardserver can serve multiple cards at the same time.
    # Therefore betad is not able to handle the sc8in1. Betad configuration file is
    # called betad.cfg. There is no special manual for betad.cfg, we everyone will
    # be able to figure out, which cardserv.cfg options, described below, will also
    # work in betad.cfg and which won't.
    # Configuration consists of global (all cards) and local (single card) options.
    # betad.cfg will of course only have one local (single card) section. The
    # global section is located at the beginning of the file before the first
    # SERIAL_PORT option. The SERIAL_PORT option is a "divider" between the global
    # and the local sections, it also is a divider between options for different
    # cards. The SC8IN1_SLOT options is a similar divider, but it divides only
    # between different cards in the sc8in1 cam and the first SC8IN1_SLOT options
    # has to preceeded by a SERIAL_PORT option. Some options may appear in the
    # global as well as in local sections, in the case the option in the global
    # section is a default for all cards, that don't have the same option in their
    # particular local section. Options that appear in an incorrect section will
    # be rejected with a "parse error" and the cardserver won't start. Betad will
    # also reject all cardserver options, that aren't necessary or allowed for its
    # operation. betad will understand the following options, of used correctly:
    # You can also start cardserver multiple times by specifying different cfg
    # files in the command line. Use only the name of the cfg file, the path of the
    # file is always fixed to /var/tuxbox/config (dbox2, Dreambox) or /etc (i386)
    # (G) = global section only
    # (L) = local section only
    # (A) = all sections
    # 14 byte des key for the connection (A)
    # DESKEY = 01 02 03 04 05 06 07 08 09 10 11 12 13 14
    # id name of the cardserver (G)
    # SERVER_NAME = cardserv
    # debug port, lists all cards and their open connections (G)
    # just telnet to it
    # DEBUG_PORT = 12002
    # entitlement port, lists entitlements of suka, clonax and Cryptoworks cards
    # just telnet to it
    # ENTITLEMENT_PORT = 12003
    # optional admin options (G)
    # port for incoming camdcmd connections
    # password and 14 byte des key for admin connections
    # ADMIN_PORT = 12004
    # ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    # Userlist (A)
    # there can be multiple users, user 1 always do AU for the card
    # additional AU users can be defined by adding "au" at the end of the USER line
    # keep in mind that your card number will be sent to all AU users
    # global user preceed local users in terms of userid
    # lan/wan/spider gives the type of connection
    # lan = local area network
    # wan = wide area network (those connections can be rebuild with camdcmd wanon)
    # connections from cardspider to "wan" declared cards in cardserver are not
    # possible
    # spider = acts like wan, but allows connections from cardspider
    # (A)
    # everything starting from is optional (reverse login is optional)
    # USER = dummy dummy lan dbox2 12000
    # two examples for additional AU users
    # USER = dummy2 dummy2 lan dbox2 12000 au
    # USER = dummy3 dummy3 au
    # CLIENT_CONNECT_TIMEOUT (in 100ms) (G)
    # max time to wait for a login at a newcamd client
    # debug options (A) - show network and card init, ecm and emm packages
    # DEBUG_INIT = no
    # DEBUG_NET = no
    # DEBUG_ECM = no
    # DEBUG_EMM = no
    # Serial Port (Phoenix/Multicam) (Section divider)
    # The first SERIAL_PORT options ends the global section
    # On DM7000 SERIAL_PORT = 0 is the upper card slot,
    # SERIAL_PORT = 1 is the lower card slot and 2 is the
    # actual serial port.
    # On DM500 SERIAL_PORT = 1 is the card slot, 2 is the
    # serial port.
    # All numbers SERIAL_PORT = 3 and higher on Dreambox will use /dev/usb/tts/X
    # devices for Phoenix on USB-to-RS232 adapters. This feature depends on a
    # driver for your particular SB->RS232 adapter being insmod into the kernel of
    # your image, your particular USB->RS232 driver supporting RS232 handshaking
    # signal generation and on the particular card used. Basically this feature
    # should be considered unstable and for advanced users only. The BAUDRATE option
    # is not available for SERIAL_PORT = 3 and higher on Dreambox and would be
    # rejected with a parse error
    # SERIAL_PORT = begins a single card's local section
    # SERIAL_PORT = 0
    # Serial Port (sc8in1) (section devider)
    # SERIAL_PORT = sc8in1 begins a sc8in1 description
    # SC8IN1_SLOT must follow immediately to start a local section
    # SERIAL_PORT = 1 sc8in1
    # sc8in1 slot (sc8in1 sub section divider)
    # valid slots are 0-7, 0 being the left most connector on the sc8in1
    # SC8IN1_SLOT = 1
    # Parity - serial communication parameter for the smartcard (L)
    # The default is on, which is correct for all cards except irtedo
    # This is for reading the ATR only, after the ATR has been recognized by
    # cardserver, it automatically switches to the correct communication parameters
    # Some irtedo cards work with PARITY = on also, some need PARTIY = off, so just
    # test it. Dreambox cardreaders don't need this option, so it will be rejected
    # for SERIAL_PORT = 0, 1 on Dreambox
    # PARITY = on
    # different Phoenix readers sometimes use different serial lines to detect an
    # inserted card, here you can specify, which line cardserver should use for a
    # particular card. Possible values are CTS, DCD and DSR
    # Default is CTS for sc8in1 and dbox2 serport 1, DCD otherwise
    # Will be rejected for SERIAL_PORT = 0, 1 on Dreambox (internal cardreaders)
    # Baudrate (L) (DBOX2/DREAMBOX versions ONLY!)
    # Baudrate selection for the dbox2/Dreambox server. Allows to run 6 MHz with
    # 3.579 MHz crystal and (theoretically) the other way around.
    # Keep in mind, running anything but irtedo cards at 6 MHz is overclocking!
    # irtedo card at 3.57 MHz: BAUDRATE = 5727
    # other card at 6 MHz: BAUDRATE = 16128
    # Default is 9622, which is correct for all except irtedo cards at 3.579 MHz
    # 3579545 Hz / 372 = 9622 bit/s (see iso 7816)
    # This option will be rejected on I386 and on Dreambox ports other than
    # SERIAL_PORT = 2
    # BAUDRATE = 9622
    # TCP port (L) - the port listening for connections for a particular card
    # TCP_PORT = 2000
    # EMM options - block EMM-U, EMM-G or EMM-S (A)
    # EMM-G = no
    # EMM-S = no
    # EMM-U = no
    # For iso cardreaders that close the card switch contact instead of opening it,
    # when a card is inserted (L)
    # Will be rejected for SERIAL_PORT = 0, 1 on Dreambox (internal cardreaders)
    # Disable Pin (L) suka only
    # suppress all pin enter requests on suka cards
    # be very careful with this feature, if you have ordered PPV events or have
    # prepaid Jetons on your card, if this is enabled, cardserver will use them
    # up on any ppv event without ever asking
    # DISABLE_PIN = yes
    # Special features (only for some cards) (L)
    # Exclude services - Some providers offer a PPV preview by allowing a card
    # to decrypt a certain number of ECMs of each PPV event before it has to be
    # bought. Sharing such a card with other people allows them to "steal" this
    # PPV preview. With this option, you can tell cardserver to not ask the card
    # to decrypt ECMs for certain services, except if user 1 (the EMM user) asks
    # for them. Each blocked service has to be listed with its service id.
    # A service id is a 16-bit number and has to be given in hex.
    # camdcmd offers a possibility to change the list of blocked services without
    # restarting cardserver (if for example you have bought a PPV event and now
    # want to share it).
    # Block single service (L)
    # EXCLUDE_SERVICE = 13a9
    # You can also block a range of service ids, the following blocks all services
    # from 02be to 02c8
    # Boxid (for Viasat-EN*D*ES cards only) (L)
    # 10-digit serial number of the STB, your Viasat card is married to
    # you find this serial number on your original Viasat STB in the following menu:
    # Setup->Decoder information->STB Identifier
    # take this number and remove the last digit
    # take the first (left-most) 10 digits, omit the last (right-most) digit
    # For Nordic Team Newcamdfiles You put in number of married box for upper card only
    # valid for all EN*D*ES cards
    # BOXID = 0000000000
    # Boxkey (for Nagra1 cards only) (L)
    # 8 byte des boxkey of your neaga smartcard. This boxkey is needed for proper
    # use of your card, otherwise you'll get incorrect control words
    # BOXKEY = 11 22 33 44 55 66 77 88
    # Example
    # DESKEY = 01 02 03 04 05 06 07 08 09 10 11 12 13 14
    # SERVER_NAME = hdbox
    # DEBUG_PORT = 14000
    # ENTITLEMENT_PORT = 14001
    # ADMIN_PORT = 14002
    # ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    # USER = dummy dummy lan dbox2 12000
    # USER = dummy2 dummy2 lan dreambox 12000
    # DEBUG_INIT = no
    # DEBUG_NET = no
    # DEBUG_ECM = no
    # DEBUG_EMM = no
    # Canal Digital Nordic, Phoenix (3.57 MHz) @ ttyS0
    # SERIAL_PORT = 0
    # TCP_PORT = 10000
    # SC8IN1 (0,3,6,7 = empty, 1-2 = 3.57 MHz, 4 = 6 MHz, 5 = 4.43 MHz) @ ttyS1
    # SERIAL_PORT = 1 sc8in1
    # Czechlink (3.57 MHz) all EMM blocked
    # SC8IN1_SLOT = 1
    # TCP_PORT = 10001
    # EMM-G = no
    # EMM-S = no
    # EMM-U = no
    # Slovaklink (3.57 MHz) all EMM blocked
    # Special features enabled
    # SC8IN1_SLOT = 2
    # TCP_PORT = 10002
    # EMM-G = no
    # EMM-S = no
    # EMM-U = no
    # Canal Digital NL irtedo (6 MHz)
    # SC8IN1_SLOT = 4
    # TCP_PORT = 10004
    # BAUDRATE = 9600
    # PARITY = off
    # Example Dreambox
    DESKEY = 01 02 03 04 05 06 07 08 09 10 11 12 13 14
    SERVER_NAME = cardserv
    DEBUG_PORT = 14000
    ADMIN_PORT = 14001
    ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    # Here you put in more users if you go for cardsharing or spider
    USER = local local lan localhost 12000 au
    #user = friend friend wan ip2friend 12000
    #USER = cardspider dreambox lan localhost 15003 au
    # upper card slot
    # If you will your card should update you shoose yes in following parameters
    # default is no
    # EMM-G = yes
    # EMM-S = yes
    # EMM-U = yes
    TCP_PORT = 10000
    BOXID = 0000000000
    EMM-G = yes
    EMM-S = yes
    EMM-U = yes
    # lower card slot
    TCP_PORT = 10001
    BOXID = 0000000000
    EMM-G = yes
    EMM-S = yes
    EMM-U = yes
    # serial port for phoenix
    # SERIAL_PORT = 2
    # TCP_PORT = 10002
    # EMM-G = no
    # EMM-S = no
    # EMM-U = no
    __________________________________________________ _____________________________________________

    # /var/tuxbox/config/newcamd.conf
    # DREAMBOX 7020 /etc/tuxbox/config/newcamd.conf
    # edit by Ubbe [email protected]
    # newcamd mandatory settings
    # What Demux API is used? (1 = very old, 2 = rel (Dreambox), 3 = head (VDR))
    DEMUX_API = 2
    # on PPC version: What Box is used? Valid options are DBOX2, DM7000 and DM5600
    # on I386 version this parameter is ignored
    BOX_TYPE = DM7000
    # Which device for writing control words should be used?
    # Valid options are CA, SDEV or GTX
    # (SDEV and GTX = /proc/bus/gtx, CA = /dev/caX or /dev/dvb/card0/caX)
    # What CA0 API is used?
    # 3 for recent DVB-S driver or recent Dreambox drivers (dream.o from 1.07.3)
    # also for ca1 use on dbox2
    # 2 for older Dreambox driver (ca.o or dream.o up to 1.07.2)
    # no effect on PPC version if CONTROL_WORD_DEVICE = GTX or SDEV
    CA_API = 3
    # output control words to /proc/bus/gtx in 16 byte or 4096 byte packets
    # no effect on I386 version or on PPC version, if BOX_TYPE = DREAMBOX
    # This is important for channels which frequently change between free and
    # encrypted broadcasts. The change will be reflected in the PMT. If you
    # don't want your picture to stop when the channel goes from free access
    # mode to encrypted mode, either your zapper (zapit/Enigma) or newcamd
    # itself has to keep track of PMT changes. Recent Enigma versions do this,
    # so you can set PMT_UPDATE_WATCH to no. Recent Zapit versions also have
    # this option, but it is not compiled by default. So when using Zapit
    # without PMT updates, you need to enable newcamd to monitor the PMT
    # (PMT_UPDATE_WATCH = yes). Having both zapper and newcamd monitor
    # the PMT at the same time, can lead to all kind of instabilities and
    # should therefore by avoided, although it might seem to work at first.
    # Use emulator?
    EMU = yes
    # if both control word server and emulator keys are available for the
    # channel, which method should be tried first?
    PREFER_EMU = yes
    # deactivates the dbox2 Betacrypt CAM this has to be set to yes on Dreambox
    DISABLE_CAM = yes
    # use dbox2 Betacrypt CAM for caids 06, 17 or both (00)?
    CAM_CASYS = 17
    # Autoupdate for Emu and Control Word Servers
    # AU is always yes if there are Betacrypt UDS control word server
    # connected to newcamd
    AU = yes
    # newcamd debug options
    # dumps all ca systems used by a channel on the console
    # On Screen Display, neutrino, enigma or none
    OSD = none
    # Recent Enigma versions come with a new option "Use http authentication"
    # in the Expert Setup menu. If this option is enabled, the Enigma web server
    # requires all clients to authorize themselves with username (root) and
    # password (usually dbox2 or dreambox). The following option tells newcamd
    # about the authentication username and password to use for the web server
    # in order to be able to display its on screen information.
    OSD_WEB_LOGIN = root:dreambox
    CA_INFO_FILE = /tmp/cainfo.txt
    # print debug messages about ECM handling
    DEBUG_ECM = yes
    # print debug messages about EMM handling
    DEBUG_EMM = no
    # print debug messages about Control Word Server (CWS)
    DEBUG_CWS = yes
    # print debug messages about dbox2 CAM (cam-alpha.bin)
    DEBUG_CAM = yes
    # print command message to/from dbox2 CAM as hex strings
    DEBUG_CAM_HEX = no
    # print all plain control words used
    SHOW_CW = no
    # hex dump of entire PAT
    SHOW_PAT = no
    # hex dump of entire PMT
    SHOW_PMT = no
    # hex dump of entire ECM
    SHOW_ECM = no
    # hex dump of entire CAT
    SHOW_CAT = no
    # hex dump of entire EMM (AU)
    SHOW_EMM = no
    # show network ECM messages being sent and received from/to the cardservers
    SHOW_CWS_ECM = no
    # show network EMM messages being sent and received from/to the cardservers
    SHOW_CWS_EMM = no
    # hex dump of EMMs with wrong signature
    # delay between channel zap and appearance of the OSD
    OSD_WAIT_TIME = 2000
    # newcamd optional settings
    # Delay between reception of new control word and writing them into
    # the CSA registers
    # this is a default, can be changed for each individual key in keylist
    # reload config on every channel zap
    # reload keylist on every channel zap
    # newcamd mandatory settings for control word servers (cws)
    # Cardserver list
    # <14 byte triple-des key in hex>
    # wan connections will be dropped and rebuild if newcamd is told so by camdcmd
    # (see admin options)
    # hostname = uds to use betad, port is the serial port in that case
    CWS = localhost 10000 local local 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserv
    CWS = localhost 10001 local local 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserv
    #CWS = localhost 10002 local local 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserv
    # CWS = uds 1 dummy dummy
    # CWS = 10000 dummy2 dummy2 01 02 03 04 05 06 07 08 09 10 11 12 13 14 wan cardserv
    # newcamd optional settings for using control word servers (cws)
    # Timeout for cardserver login in 100ms
    # Port to listen for incoming cardserver connections (reverse login)
    # and/or admin connections
    # Port to get a list of all connected cardservers, just telnet to it
    CWS_DEBUG_PORT = 12001
    # send keep alive messages to servers to keep connections from dying by
    # unreasonable router NAT timeouts, make sure all cardservers/spiders you
    # conntect to are v5.25 or newer, otherwise you'll loose connection to them,
    # if set to yes
    # seems this feature is commonly misunderstood, it only keeps connections
    # open even if no data packets are using it for while (NAT routers tend to
    # forget about established tcp connections when they are inactive), it is
    # NOT to automatically reconnect to servers, see also Q&A in readme.txt
    # newcamd admin control options
    # (incoming port is the same as CWS_INCOMING_PORT)
    # <14 byte des key>
    ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    __________________________________________________ __________________________________________________


    # camdcmd can be used to trigger or shutdown cardserver connections for example
    # when you dialup or drop Internet connection (put it in /etc/ppp/ip-up or
    # /etc/ppp/ip-down) on your Internet router. Also for shutting down / restarting
    # cardspider peer and wan connections.
    # It also can be used to add/remove service id's of services excluded from card
    # sharing, while cardserver is in operation.
    # camdcmd wanon - restart all connections designated as wan in newcamd.conf,
    # cardserv.cfg and cardspider.cfg & all peer connections of
    # cardspider
    # camdcmd wanoff - drop all connections designated as wan in newcamd.conf,
    # cardserv.cfg and cardspider.cfg & all peer connections of
    # cardspider
    # camdcmd service - toggle exclusion from sharing for
    # service id for the card listing on port
    # This configfile has to be copied to /var/tuxbox/config/camdcmd.cfg on dbox2
    # or Dreambox or to /etc/camdcmd.cfg on i386 PCs. It lists the newcamd clients
    # cardserver's and cardspider's, you want to issue wanon/off or service commands
    # to. You can also use multiple config file, specifying the config file to use
    # on the commandline: camdcmd -c someconf.cfg wanon
    # = host port password 14-byte-des-key
    # Remember, for wanon/wanoff commands, camdcmd has to be copied to your Internet
    # router, NOT to the box or PC running newcamd or cardserver (unless both are
    # one and the same of course).
    # For the service command, camdcmd can be run from any host.
    newcamd = dreambox 12000 test 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    cws = dreambox 14001 secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    spider = dreambox 15003 secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    __________________________________________________ _____________________________________________

    # /var/tuxbox/config/cardspider.cfg
    # DREAMBOX 7020 /etc/tuxbox/config/cardspider.cfg
    # edit by Ubbe [email protected]
    # Cardspider is an advanced card sharing solution for newcamd. It implements a
    # decentralised network of card servers, through which ECM requests from clients
    # are forwarded until a suitable card is found.
    # With cardspider you can define so called "virtual cards" (NETWORK_CARD),
    # which will look to newcamd just like local cardservers with real cards. Then
    # you define neighbouring cardspiders (PEER) which will be your links to the
    # cardspider network. Last but not least you will have to give your cardspider
    # access to at least one of your own cards, that will be shared to other people
    # in the cardspider network. You will not be able to obtain any control words
    # from the cardspider network, unless you share at least one card of your own.
    # If cardspider finds no local cards to share to the network, it will act as
    # forwarder only.
    # Supported CA-Systems are: suka, via**ess, irtedo, Viasat-EN*D*ES, clonax,
    # Cryptoworks and Nagravision1
    # The config file is made up of a global section and several local sections,
    # just as the config file of cardserver is. The NETWORK_CARD option acts as
    # the divider between global and local or two local sections.
    # You can also start cardspider multiple times by specifying different cfg
    # files in the command line. Use only the name of the cfg file, the path of the
    # file is always fixed to /var/tuxbox/config (dbox2, Dreambox) or /etc (i386)
    # The maximum length of each line in this file is 256 Byte. You should get a
    # parse error, if you exceed it.
    # (G) = global section only
    # (L) = local section only
    # (A) = all sections
    # SERVER_NAME - This name identifies your cardspider to all newcamd clients,
    # (G) cardservers and neighbouring cardspiders. The name must be
    # different from the names of all neighbouring cardspiders, you
    # connect to.
    SERVER_NAME = defaultSpider
    # DESKEY - The deskey to be used in communication with newcamd clients
    # (A)
    DESKEY = 01 02 03 04 05 06 07 08 09 10 11 12 13 14
    # CWS - This connects to your real cards. Remember you must share at least one
    # (G) card to access other cards over the cardspider network
    # <14 byte triple-des key in hex>
    name> ::...
    # for explanation of the optional sid parameters see avoidDropoutsHowto.txt
    CWS = localhost 10000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan cardserv
    # send keep alive messages to servers to keep connections from dying by
    # unreasonable router NAT timeouts, make sure all cardservers/spiders you
    # conntect to are v5.22 or newer, otherwise you'll loose connection to them,
    # if set to yes
    # USER - userlist for cardspider's virtual cards
    # (A)
    USER = dummy dummy lan dbox2 12000
    # PEER_INCOMING_PORT - This will be the port, neighbouring cardspiders must use
    # (G) to connect to yours. You must enable port forwarding on
    # your internet router for this port for both tcp and udp
    # protocols
    # DEBUG_PORT - port to connect to with the telnet command to obtain a status
    # (G) report from cardspider
    DEBUG_PORT = 15001
    # CARD_SCAN_PORT - port to connect to with the telnet command to scan the
    # cardspider network for available provider idents. The scan
    # will take 15 seconds.
    CARD_SCAN_PORT = 15002
    # CWS_INCOMING_PORT - Incoming port for reverse connections from cardserver
    # (G) also used for admin connections
    # SID_SCAN_PORT - port to connect to with the telnet command to get a list of
    # caidrovid:sid of all channels decoding was requested for
    # on the spider network in the last 30 sec
    SID_SCAN_PORT = 15004
    # ADMIN_PASSWORD - password and 14 byte des key for admin connections
    # (G)
    ADMIN_PASSWORD = secret 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    # PEER - neighbouring cardspiders to connect to directly. You need at least one
    # (G) online connection to a neighbouring cardspider to be connected to the
    # network. There is however no need, to connect to all other cardspiders
    # on the network directly, because each cardspider will forward your
    # requests to all of its neighbours and so forth. To many peers can
    # actually be harmful to the network, because it increases network
    # traffic unnecessarily. The ideal number of neighbours depends on how
    # reliable your neighbours are online. 3 neighbours should usually be
    # enough.
    PEER = 15000 otherSpider password 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f

    # NETWORK_CARD - this concludes the global section and starts the first local
    # section, it also divides two local sections from eachother.
    # (section It will define a virtual card (caid + provider id-s), newcamd
    # divider) can connect to. One important thing to understand about the
    # concept of virtual cards is that what you define here does not
    # necessarily match any real cards that are present on the
    # cardspider network. Once you are connected to the network, you
    # can however use the CARD_SCAN_DEBUG port to "ask" the network
    # about what providers are currently present. Basically, what
    # this NETWORK_CARD option is for, is to provide a point of
    # access for a newcamd client to the cardspider network. The caid
    # and provider id-s, you define for your virtual cards will just
    # tell newcamd clients, what ECMs to send to cardspider.
    # Examples:
    # Seca2 Digital+, Cyfra+, Sly Italia
    # NETWORK_CARD = 0100:000064:000065:000070:000071:000072
    # via**ess NTV+, NTVint, HRT
    # NETWORK_CARD = 0500:01a400:01ac00:020a00
    # irtedo Pink+
    # NETWORK_CARD = 0602:000000:000001
    # clonax
    # NETWORK_CARD = 0b00:000000
    # Cryptoworks Czechlink (black card)
    # NETWORK_CARD = 0d01:000054
    # Cryptoworks UPC Direct
    # NETWORK_CARD = 0d02:00008c
    # Cryptoworks Slovaklink + Digiturk
    # NETWORK_CARD = 0d03:000020:0000c0:0000c4
    # TCP_PORT - tcp port where this virtual card is listening for incoming
    # (L) connections from newcamd
    TCP_PORT = 4000
    # ECM_TIMEOUT - number of seconds, after which, if no control words from the
    # (L) cardspider network are received, cardspider will give a
    # "can't decode" answer to the newcamd clients. The default
    # (in maximum value) is 8 seconds.
    # USE_ONLY_CHANID - this is a help option to speed things up for irtedo
    # (L) providers. irtedo has the unpleasant "feature" that multiple
    # channel id's to access a channel are not given within the
    # same ECM as in all other CA Systems, but in multiple ECMs.
    # Since cardspider never gives a negative answer, you have to
    # wait the whole timeout (up to 8 seconds), before the next
    # ECM is being sent, making zapping within such providers a
    # big pain in the butt. With this option, you can enter
    # chanid/key combinations and, if you do so, only ECMs
    # matching one of the given chanid/key combination will be
    # sent out to the cardspider network. So, if you know the
    # correct chanid/key combination valid for the card being
    # used, you can setup cardspider so picture will appear
    # straight away. It's possible, this option has to be
    # changed from time to time, if the provider changes keys or
    # his chanid structure.
    # The following example for Bulgarian package on 39E forwards only ECMs with
    # channel id 0003 and keys 04 or 06
    # Multiple lines can be added in each card section, if you want to enter more
    # combinations as fit into one 256 byte line.
    USE_ONLY_CHANID = 00030004:00030006
    __________________________________________________ _________________________________________________

    # /var/tuxbox/config/betad.cfg
    # DREAMBOX 7020 /etc/tuxbox/config/betad.cfg
    # edit by Ubbe [email protected]
    #SERIAL_PORT = 0
    #USER = dummy dummy

    __________________________________________________ _________________________________________________

    Allt nedan fr&n Newcamd Team

    __________________________________________________ _________________________________________________

    Official release newcamd v5.28 update


    Important: This is an update to


    We noticed, there are still many files around that do NOT comply
    to the distribution terms set below, particularly complete images with all
    keys inside. We again ask uploaders to remove such files and we also ask
    admins to not allow such files on their upload centers.

    Further action might be taken in the future, if our rules about newcamd
    distribution are continously violated.


    It is our firm believe that access to Free-TV is made way to easy for
    people at the moment and we are seriously considering disallowing the
    distribution of future newcamd releases inside flash images. We have been
    following a public policy up until now, because we wanted to provide a free
    alternative to the never ending greed of the commerical pirates. But we do
    believe however, that we can ask everyone wanting to use our software, to get
    out of their TV armchairs and pause the growing of their asses (to quote the
    writer of a certain FAQ) long enough to learn how to upload a couple of files
    to their boxes via ftp, read the supplied documentation and edit a couple of
    keyfiles. Everybody can learn how to do that easily, and we mean EVERYBODY.
    We feel that anyone claiming the contrary, is just too lazy to even try.
    To sum up, we believe all the emu images and full automatic internet key
    downloads at the push of a button are hurting the Free-TV community more then it
    serves it by forcing Pay-TV providers to implement stronger countermeasures and
    we would ask all image makers out there to rethink their position.


    And since we are discussing politics already, some recent news bulletins on
    several news services indicated the European Union thinking about forcing Pay-
    TV providers to offer their services beyond national borders to anyone who wants
    a subscription. We strongly support such a move and we pledge that the emu and
    cardsharing facilities in newcamd would be discontinued if Pay-TV providers
    would start to offer their services internationally under the same conditions
    they offer it to national residents. In particular:

    1. same choice and contents of all channel packages (no stripped-down
    international subscriptions like Digiturk Euro).
    2. same prices as for national customers

    It was never the intention of the newcamd Team that people would use it to steal
    the services of their national Pay-TV provider (or any other provider they could
    officially subscribe to). If and when everyone would be able to officially
    subscribe to any Pay-TV package he wants to, under the same conditions as
    everyone else and regardless of where he lives, we would feel newcamd becoming
    kind of obsolete. The only reason why we make newcamd support emu and card
    sharing is to overcome this discrimination by Pay-TV providers to offer official
    subscriptions to national residents only.


    Welcome to newcamd V5

    This package is freeware. Distribution and usage is allowed only if you
    agree and comply to the following rules:

    1. For standalone (outside of flash images) distribution, you are NOT allowed
    to make any changes to the original ZIP archive whatsoever. Distributions of
    newcamd must not include any keys or neaga ROMs.
    2. Distribution of newcamd inside flash images is allowed, if no keys or
    neaga ROMs are included in the same flash image. Full documentation must be
    provided in the flash image. Files keylist, rsakeylist, TiPiS Cr*pt, ppua,
    readme.txt and nagraAU.txt must be present in /var/scce (/var_init/scce on
    Dreambox), files newcamd.conf, cardserv.cfg and betad.cfg must be present
    in directory /var/tuxbox/config (/var_init/tuxbox/config on Dreambox). Files
    in scce must be copied from the original Zip archive, they may not be changed.
    Options in config files may be changed, but all the comments must be left
    3. Distribution of patched newcamd, cardserver, betad and/or dcd binaries is
    strictly prohibited.

    Dieses Paket ist Freeware. Weiterverbreitung ist nur unter Einhaltung der
    folgenden Regeln gestattet:

    1. Das Original ZIP Archiv darf NICHT veraendert werden. Insbesondere duerfen
    keine Keys oder neaga ROMs enthalten sein.
    2. Die Weiterverbreitung in Flash-Images ist nur erlaubt, wenn keine Keys oder
    neaga ROMs im Image enthalten sind. Die komplette Dokumentation muss im Image
    vorhanden sein. Die Dateien keylist, rsakeylist, TiPiS Cr*pt, ppua, readme.txt
    und nagraAU.txt muessen in unveraenderter Form ins Verzeichnis /var/scce im
    Image kopiert werden (/var_init/scce in Dreambox Images), die Dateien
    newcamd.conf, cardserv.cfg und betad.cfg muessen ins Verzeichnis
    /var/tuxbox/config (bzw. /var_init/tuxbox/config bei Dreambox Images) kopiert
    werden. Konfigurationsoptionen duerfen angepasst werden, aber die Kommentare
    muessen unveraendert bleiben.
    3. Die Weitergabe von gepatchten newcamd, cardserver, betad und/oder dcd
    Binaries ist ausdruecklich untersagt.


    newcamd v5.28
    newcamd: another on a long line of nano51 fixes

    newcamd v5.27
    newcamd: cyfra fix

    newcamd v5.26
    newcamd: implemented S2 5109 nano
    cardspider: optimized some internal timings, add some text to cardspider.cfg
    cardspider: add avoidDropoutsHowto.txt explaining some stuff
    readme.txt: add some new Q&A

    newcamd v5.25
    newcamd: tpscrypt2 - you need a new, available in this
    archive, if you do not upgrade, newcamd will crash when
    trying to decrypt TiPiS
    all binaries: protocol change (for details see protocol.txt) for future
    enhancements, please switch all binaries at once to their new versions
    newcamd, cardserver, cardspider, betad, radegast, camdcmd

    newcamd v5.24
    newcamd: 0065 9x table

    newcamd v5.23 - DMM 500 edition
    newcamd: add DM500 BOX_TYPE to config
    cardserver: to use the internal slot, set SERIAL_PORT = 1 in cardserv.cfg

    newcamd v5.22
    all binaries: added keep alive pings for card client<->server connections
    add CWS_KEEPALIVE = yes to newcamd.conf or cardspider.cfg to use it
    if you use it, remember that all binaries must be updated to v5.22 versions
    add dyndnscd - a small dyndns client to run on dbox2/Dreambox if your router
    doesn't have one
    betad: reenable Dreamcrypt support

    newcamd v5.21
    cardspider: add info about the number of user and peers your neighbouring nodes
    have, this is a protocol change, all nodes within a network must be updated at
    the same time

    newcamd v5.20a
    cardserver: fix a bug in irtedo init

    newcamd v5.20
    newcamd: fix Polsat AU
    cardspider: add SID_SCAN_PORT option, see cardspider/cardspider.cfg for details

    newcamd v5.19
    newcamd: fix S2 0070/0071

    newcamd v5.18
    newcamd.ppc: include /var/lib into the library search path for libcrypto-0.9.7
    include in the dist archive in drawer lib
    cardserver: add support for new Viasat cards
    cardspider.cfg: parse error on lines longer than 256 bytes

    newcamd v5.17
    keylist: changed syntax for neaga vkeys again to finally reflect the way,
    it's stored in the card

    newcamd v5.16
    S2 0065 international (bX encrypted) channels only

    newcamd v5.15 North America Edition
    keylist: changed syntax for neaga vkeys, EMM vkeys now always have value 2
    in the lowest nibble to distinguish them from ECM vkeys that have value 0 or 1
    in the lowest nibble. See keylist file for more info.
    newcamd: extended mapping functionality, allow whole caids to be mapped to

    newcamd v5.14
    cardserv.cfg: description for BOXKEY option added, this is needed for nagra1
    cards and was unfortunately forgotten to add in 5.13 release**********.d...?postid=179144 "fixes":
    - cardserver/betad: replaced calls to tcflush with some workaround code
    (Apparently doing a proper mklibs run seems to be too much to ask from some
    "image makers", this was no cardserver fault, but an image fault. Anyway, it
    should work now even in those images.) (fixes horsti58's problem)
    - cardserv.cfg: mark CARD_DETECT_INVERT, IGNORE_CARD_DETECT_SWITCH as usable
    options for betad (they have been since 5.10, but it was forgotten to add them
    to the list of options, betad recognizes) (fixes Suedschwede's and macb's

    newcamd v5.13
    cardserver: fix handling of single control word via**ess ECMs
    newcamd/cardserver/cardspider: add support for Nagra1 original smartcards
    cardserver: better overload handling (hopefully)
    cardserver: new priority scheme - users with lower user id will be
    serviced first
    cardserver/Dreambox: support Phoenix cardreaders on USB->RS232 adapters
    using devices /dev/usb/tts/0,1,2,3,... this feature depends on a driver
    for your particular USB->RS232 adapter being insmod into the kernel of
    your image, your particular USB->RS232 driver supporting RS232
    handshaking signal generation and on the particular card used.
    Basically this feature should be considered unstable and for advanced
    users only

    newcamd v5.12
    Cabo AU fix

    newcamd v5.11
    0064 - thx to all the nice people, who published the necessary info

    newcamd v5.10
    newcamd/betad: betad now detects card insertion/removal, reverse login to
    newcamd added
    all the rest: small fixes, might be a good idea to replace all binaries

    newcamd v5.09
    newcamd: S2 5102
    cardserver: new connection type option "spider", this acts like "wan", but
    allows connections to cardspider ("wan" doesn't)

    newcamd v5.08
    newcamd: fix nano51 in Seca2 emu
    cardserver (suka): SPECIAL_FEATURES are now called DISABLE_PIN

    newcamd v5.07
    fix serious bug in cardspider

    newcamd v5.06
    from now on all i386 binaries will be linked against glibc 2.2
    newcamd: from now on ppc version will be linked against
    add option OSD_WEB_LOGIN in newcamd.conf for recent Enigma versions
    where "Use http authentication" is actived in the Expert Setup menu
    cardserver/betad: remove glibc dependency cfsetospeed
    dcd: removed
    cardspider: reduce data traffic
    add ECM counter for new ECMs in debug output

    newcamd v5.05
    newcamd: 9x table for 0070-0073, S2 nano 0f and 51 support
    cardserver: add some round-robin card rotation for answering ECMs, if
    cardserver serves more than 1 card
    cardspider: allow multiple cardspider instances to run from different cfg files
    cardspider: add lan/wan classification to all cardspider connections
    (cardserver + newcamd)
    your cardspider.cfg has to be changed, either lan or wan must be added to
    all USER and CWS statements, see cardspider/cardspider.cfg for details

    newcamd v5.04
    4 priority levels in /var/scce/priority

    newcamd v5.03

    newcamd v5.02
    cardspider: internal protocol improvements, update all nodes

    newcamd v5.01
    fixed DNS lookup timing bug in cardspider

    newcamd V5.00
    added cardspider, see cardspider/cardspider.cfg
    cardserver: allow multiple users to EMM a card


    Copy newcamd.conf to /var/tuxbox/config (dbox2/Dreambox) or /etc (i386).
    Copy lib/ to /var/lib directory
    Check the config file and alter it for your needs.
    Copy keylist, rsakeylist, ppua, TiPiS Cr*pt, priority, mappings, neaga*.bin to
    Enter keys into the keyfiles.
    Install control word driver, avia_gt_proc.o (dbox2) or DVB-S driver with
    changed root file (i386). Dreambox has control word driver included in
    dream.o from Release 1.07. 1.07.2 uses api2 ca0 device in /dev/ca0, dream.o
    from 1.07.3 and up use api3 ca0 device in /dev/dvb/card0/ca0.
    dbox2 can also use ca1 device, no avia_gt_proc.o is needed in this case.

    With CW_OUTPUT_MODE = 16 newcamd will write the descrambled control words to
    /proc/bus/gtx (dbox2), 16 bytes with each write, first 8 byte odd control
    word, then 8 byte even control word. With CW_OUTPUT_MODE = 4096 newcamd writes
    4096 bytes to /proc/bus/gtx, just like the very first camds did.
    On I386 newcamd or BOX_TYPE = DREAMBOX this parameter is ignored, because
    control words are written to the ca0 device.

    dbox2 users should deactivate hardware section filtering on API3 drivers, for
    some reason, which illudes me, the demuxer keeps crashing from time to time
    when using newcamd.

    Changes to Zapit/Enigma:

    No changes are necessary in recent Zapit or Enigma sources. Just use newcamd
    instead of camd2 or dccamd. Make sure to set PMT_UPDATE_WATCH correctly for the
    zapper, you are using. In fact newcamd is designed specifically for use with
    unchanged zapit/Enigma. Any complaints about newcamd problems when running in
    so-called emu images which feature other emus will be ignored. If newcamd works
    with unchanged zapit/enigma, it works period. Everything else is the problem of
    the image builders.
    The old newcamd interface also still works for backward compatibility and
    for older Zapit and Enigma versions, that don't support the current ca pmt
    interface yet. The old interface is described below (see zapit-Anpassung).

    Killing newcamd

    This seems to be a big problem, from what I can read in certain Internet
    forums (Posts like "newcamd never saves any AU keys", well if you kill it
    with the -9 option, you're not giving newcamd a chance to save anything).
    So, this is, how it's done right: newcamd, during startup, always creates a
    file /tmp/ Kill that pid (pid = process id) and newcamd will
    shut down orderly. For example: kill `cat /tmp/`

    /tmp/pmt.tmp and Polsat acceleration (optional)
    (NO EFFECT for PMT_UPDATE_WATCH = no and new interface)

    Let your zapper create a file called /tmp/pmt.tmp, newcamd can read this
    and don't need to demux the channel's pmt again, which is faster.
    For example in zapit/src/zapsi/pmt.cpp in function parse_pmt:

    FILE* pmtFile;

    then after the PMT was read from the demuxer:

    section_length = ((buffer[1] & 0x0F) << + buffer[2] + 3;

    if ((pmtFile = fopen("/tmp/pmt.tmp", "wb")))
    if (fwrite(buffer, sizeof(unsigned char), section_length, pmtFile) != section_length)

    zapit-Anpassung (altes Interface):

    Folgende Funktionen muessen in zapit.cpp hinzugefuegt werden und an
    entsprechender Stelle bei jedem Kanalwechsel aufgerufen werden. Fuer Polsat
    empfiehlt es sich ausserdem, in zapost/dmx.cpp den Timeout fuer die PMT zu
    verlaengern, ansonsten gibt es eine Menge Probleme mit Kanal nicht verfuegbar.
    Fuer die start_camd() Routine ist erforderlich, nachzusehen, ob zapit die PMT
    des aktuellen Kanals ueberwacht (pmt_set_update_filter). Diese Funktion wurde
    mit zapit Version 1.327 eingefuehrt und war bis 1.330 standardmaessig aktiv,
    seitdem ist sie zuschaltbar. newcamd hat ebenfalls so eine PMT Ueberwachung,
    um den Wechsel von unverschluesselt zu verschluesselt rechtzeitig zu erkennen,
    diese Ueberwachung muss aber abgeschaltet bleiben, wenn sie schon durch zapit
    durchgefuehrt wird. Die Umschaltung wird ab sofort durch PMT_UPDATE_WATCH in
    newcamd.conf vorgenommen. Die C++ Klasse (CCam) fuer das Betacrypt CAM muss
    komplett deaktiviert werden.

    void stop_camd()
    struct sockaddr_un servaddr;
    int camdSocket;
    unsigned char camdBuffer[6];

    servaddr.sun_family = AF_UNIX;
    strcpy(servaddr.sun_path, "/tmp/camd.socket");
    if ((camdSocket = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
    perror("[camdConnect] socket");

    if (connect(camdSocket, (struct sockaddr*) &servaddr, sizeof(servaddr)) < 0)
    perror("[camdConnect] connect");

    memset (camdBuffer+1, 0, 5);
    camdBuffer[0] = 0xff;

    if (write(camdSocket, camdBuffer, 6) < 0)
    perror("[camdConnect] write");

    if (read(camdSocket, camdBuffer, 2) < 0)
    perror("[camdConnect] read reply");


    void start_camd()
    struct sockaddr_un servaddr;
    int camdSocket;
    unsigned char camdBuffer[6];
    unsigned short pid;

    servaddr.sun_family = AF_UNIX;
    strcpy(servaddr.sun_path, "/tmp/camd.socket");
    if ((camdSocket = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
    perror("[camdConnect] socket");

    if (connect(camdSocket, (struct sockaddr*) &servaddr, sizeof(servaddr)) < 0)
    perror("[camdConnect] connect");

    pid = channel->getAudioPid();

    camdBuffer[4] = (pid >> & 0x1f;
    camdBuffer[5] = pid & 0xff;
    pid = channel->getPmtPid();
    camdBuffer[0] = (pid >> & 0x1f;
    camdBuffer[1] = pid & 0xff;
    pid = channel->getServiceId();
    camdBuffer[2] = pid >> 8;
    camdBuffer[3] = pid & 0xff;

    if (write(camdSocket, camdBuffer, 6) < 0)
    perror("[camdConnect] write");

    if (read(camdSocket, camdBuffer, 2) < 0)
    perror("[camdConnect] read reply");


  2. #2
    Member Mentor
    RDI - Board Default Avatar

    Join Date
    Jan 2003
    Posts Thanks / Likes

    Default zzzz un doi brrrrrrr

    recunosc faptul ca mi-a fost atunci cind mi l-a trimis prin PM de mare folos !
    De aceea MERCI big maester !



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How To Setup A Windows Pc As A Cardserver With Newcs
    By colossus_r in forum RDI - English
    Replies: 20
    Last Post: 25th October 2012, 13:17
  2. Cardserver cum?
    By irishman in forum DREAMBOX
    Replies: 4
    Last Post: 13th March 2006, 16:35
  3. newcamd 5.28 cardserver + config files Download
    By tabaluga in forum DREAMBOX
    Replies: 9
    Last Post: 16th October 2005, 05:37
  4. Reclama TV la MAX este de mare exceptie .
    By Unuseroarecare in forum DTH & Cable-Romania
    Replies: 21
    Last Post: 18th August 2005, 17:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Back to Top