HOW TO gbox in Dreambox

Aceasta pagina este un mic ajutor pentru utilizatorii Dreambox & Gbox.
pagina realizata de L_DM500s

Va poate ajuta si : http://www.sateliti.info/showthread.php?t=952

Aveti nevoie de:
Gbox – sunt citeva versiuni disponibile: 2.1b, 2.20, 2.22, 2.23, 2.24, 2.25… Recomand 2.1b sau 2.25 daca primiti <500 cartele virtuale.
DCCDreambox Control Center
optional plugin G-Box Center

Instaleaza DCC in PC si seteaza comunicatia cu Dreambox-ul.
Acum poti incepe instalarea fisierelor in Dream.

copiaza fisierul gbox in dream in dir: var/bin.
Seteaza attributul 755 pentru acest fisier.
– daca ai si urmatoarele fisere copiaza-le si seteaza atributele 755 si pentru ele:
s2issuer.b
s2provid.b

copiaza scriptul gbox_cam.sh in dream in dir: /var/script
Seteaza attributul 755 pentru acest fisier.

acest script este folosit pentru lansarea in executie a gbox-ului.
aceasta este o lista a acestui script:

# start gbox_cam.sh listing
#!/bin/sh
########################################
###### Powered by The Gemini Team ######
### http://www.i-have-a-dreambox.com ###
########################################
# camid #
# 0000 = Commom Interface #
# 0001->0199 = for User Experiment #
# 0199 = Dccamd #
# 0200->0299 = Fbiss #
# 0300->0399 = Camd3 #
# 0400->0499 = Camx #
# 0500->0599 = Camx-radegast-cs #
# 0600->0699 = Evocamd #
# 0700->0799 = Evocamd-ronlad-cs #
# 0800->0899 = Mgcamd #
# 0900->0999 = Mgcamd-ronald-cs #
# 1000->1099 = Newcamd #
# 1100->1199 = Newcamd-ronald-cs #
# 1200->1299 = Newcamd-spider #
# 1300->1399 = Radegast #
# 1400->1499 = Ronald-cs #
# 1500->1599 = Scam #
# 1600->1699 = Scam-ronald-cs #
# 1700->1799 = Cardserver #
# 1800->1899 = Mgcamd with Cardserver #
# 9800->9899 = reserved #
# 9900->9999 = reserved #
########################################
CAMNAME=”Gbox”
USERNAME=””
ZAPTIME=6
CAMID=970
DVBSET=1
INFOFILE=”ecm.info”
# end

# This method cleans up /tmp folder of gbox files
remove_tmp ()
{
rm -rf /tmp/*info* /tmp/*gbox* /tmp/*online* /tmp/*share* /tmp/Newcs* /tmp/atack* /tmp/debug*
}

# This method starts Gbox
start_cam ()
{
/var/bin/gbox &
}

# This method stops Gbox and then calles the tmp cleanup method
stop_cam ()
{
touch /tmp/gbox.kill
/bin/prockill gbox
remove_tmp
}

case „$1” in
start)
echo „[SCRIPT] $1: $CAMNAME”
start_cam
;;
stop)
echo „[SCRIPT] $1: $CAMNAME”
stop_cam
;;
restart)
echo „Restarting $CAMNAME”
stop_cam
start_cam
;;
*)
„$0” stop
exit 1
;;
esac

exit 0
# end gbox_cam.sh listing
–––––––––-

copiaza fisierele de config si key in dir: /var/keys

– fisiere de configuratie:
gbox_cfg
cwshare.cfg
softcam.cfg

rom02.b
rom02eep.b
rom02ram.b
rom03.b
rom03eep.b
rom03ram.b
rom07.b
rom07eep.b
rom07ram.b
rom10.b
rom10eep.b
rom10ram.b
rom11.b
rom11eep.b
rom11ram.b

– fisiere optionale cu key:
conax
irdeto
nagra
seca
via

– alte fisiere optionale:
ident.info – in acest fisier sunt datele operatorilor; respectiv codurile asignate cu numele lor pentru afisare usoara cu G-Box Center.
ignore.list – pentru a ignora anumiti operatori sau cartele vechi, false.
knowns.ini
priority.list
replace.list

Acum va trebui sa repornesti Dreambox-ul.
Mergi in Blue Panel si selecteaza Gbox, apoi selecteaza Start/Restart Cam pentru a activa Gbox cam-ul.

****************************************************************
Acum va trebui sa repornesti Dreambox-ul.
Mergi in Blue Panel si selecteaza Gbox, apoi selecteaza Start/Restart Cam pentru a activa Gbox cam-ul.

Pentru ca Gbox-ul sa functioneze corect trebuie sa ai in dir: /var/keys anumite fisiere de configuratie:
gbox_cfg, softcam.cfg and cwshare.cfg (
cwshare.cfg -este important sa-l setezi cu datele tale ).

Aici este listingul gbox_cfg pe care poti sa-l copiezi si sa-l inserezi intr-un fisier text si apoi sa-l salvezi cu numele: gbox_cfg daca nu cumva il ai deja.

# start gbox config file

# Trace/Debug
# xx yz ; xx=00 no konsole output
# xx yz ; xx=01 konsole output
# xx yz ; y=0 debug output (don’t use)
# xx yz ; y=1 no debug output
# xx yz ; z=0 ouput to konsole
# xx yz ; z=1 output to /var/tmp/debug.txt
# xx yz ; z=2 Output to UDP (to capture with gboxt)
Z: { 00 12 } 192.168.1.4 8024

# Task type
# 00 ** normal mode gbox mode (no season, use Multicam instead)
# 01 ** Season Emulation in a Irdeto allcam chid 0602 nonZ
# 10 ** Season Emulation in a Irdeto allcam chid 1702 nonZ
# 11 ** Season Emulation in a Irdeto allcam chid 1702 Z
# 12 ** Season Emulation in a Irdeto allcam chid 1722 Z
# 13 ** Season Emulation in a Irdeto allcam chid 1762 Z
# ** *1 Com port to use for season emulatiom (1 or 2)
# ** 0* Use CTS für RST detection
# ** 1* Use DCD für RST detection
# ** ** 9600 = Baudrate to be used (working only on dbox2)
W: { 00 00 } 9600

# gbox working mode
# 00 pure Emu
# 01 pure SoftCam (when card inside), Emu (when no card inside)
# 02 pure Net Client
# 03 Mixed mode !!!!! always use this !!!!!
G: { 03 }

# Display ECM messages on Konsole
# 00 don’t show any ECM’s
# 01 show only valid ECM’s
# 02 show valid and bad ECM’s with complete data display
C: { 01 }

# Display EMM messages on Konsole
# *0 don’t show any EMM’s
# *1 show only valid EMM’s
# *2 show valid and bad EMM’s with complete data display
# 1* Log any tier change on PW-Nagra-17xx cards into /var/keys/pwupdate.log
M: { 01 }

# AutoUpdate
# 00 is ignored (default)
# 01 enable AU
# 02 Auto AU !!!!! always use this !!!!!
A: { 02 }

# Key update
# 01 update only new keys, default setting
# 02 update all keys (used for valid PMK checking)
U: { 02 }

# Hash pids
# 00 hash all pids, DO NOT USE THIS OPTION, IT IS ONLY FOR TESTING STUFF
# 01 hash only pids with implemented algos and available keys !!!!! always use this !!!!!
H: { 01 }

# Key files folder
# 00 keyfiles in /var/keys
# 01 keyfiles in /var/tmp
T: { 00 }

# On Screen Display for the Multysystemcam on com1/com2
# 00 No OSD (default)
# 01 display Smartcard messages in Neutrino
# 02 display Smartcard messages in Neutrino new nhttpd format
# 03 display Smartcard messages in Enigma
# mypass (use user=root and pass=mypass for nhttpd)
O: { 03 } 192.168.1.2

# Logger and NET-mode UDP port Init
# 00 do not init UDP port
# 01 Init UDP port for IP, port, UDP
L: { 00 } 10.0.0.3 8017

# demux, multicam/comport configuration
# *x ** ; x = device nummber to be used (0= default)
# D* ** ; force use of /proc/bus/gtx for cw write operations
(in the dbox2 the gbox writes directly the CW’s, 00 is the
recommended mode ! No drivers are required) use D* ** ONLY if
you have Problems. 0* ** should be prefered !!!
# F* ** ; write CW’s in both devices (used for PVR in STB04xxx devices)
# ** y* ; y=0001b (0x1*) use slot1 as Multicam (only on STB04xxx)
# ** y* ; y=0010b (0x2*) use slot2 as Multicam (only on STB04xxx)
# ** y* ; y=0011b (0x3*) use slot1 and slot2 as Multicams (only on STB04xxx)
# ** *z ; z=0001b (0x*1) use com1 as Multicam
# ** *z ; z=0010b (0x*2) use com2 as Multicam
# ** *z ; z=0011b (0x*3) use com1 and com2 as Multicams
# ** yz ; yz=00110011b (0x33) use slot1+slot2+com1+com2 as Multicams
# ** *z ; z=0100b (0x*4) invert CTS detection on com1
# ** *z ; z=1000b (0x*8) invert CTS detection on com2
# example: yz = 0x0A = 00001010 (use com2 with inverted CTS detection line)
V: { F0 10 }

# extra options to override default seting in case you expirience Problems,
# normaly these setings are not required.
#
# cpu, api, cw write method
#
# 00 auto
# 01 80X86
# 02 MPC823
# 03 IBM STB04xxx
# 00 auto
# 01 ibm
# 02 api2
# 03 api3
# 00 cw write style = use internal routine (only dbox2)
# 01 cw write style = CA_SET_DESCR type1 (dbox2, vdr)
# 02 cw write style = CA_SET_DESCR type2
# 03 cw write style = CA_SET_DESCR type3
# 04 cw write style = 16 byte /proc/bus/gtx
# 05 cw write style = 4096 byte /proc/bus/gtx, cw offset=0x04D0
# xx write cw in 1st device with index=xx
# yy write cw in 2nd device with index=yy
# 01 means with .index=0 (default)
# 02 means with .index=1
# 03 means with .index=0 and .index=1
# .. any bitwise combination …
# FF means with all 8 indexes (0-7)
#J: { 01 00 00 01 01 }

# Files, folders, devices
# folder/device comment
#
#F: { 01 } /var/tmp/pmt.tmp // pmt file
#F: { 02 } /var/tmp/emm.info // key update log file
#F: { 03 } /var/tmp/ecm.info // ecm info file
#F: { 04 } /var/tmp/atack.txt // atack info file
#F: { 11 } /var/keys // folder for config files
#F: { 12 } /var/tmp // folder for temporary file
#F: { 13 } /var/keys // folder for keyfiles
#F: { 21 } /dev/dvb/card0/ca0 // ca device
#F: { 22 } /dev/dvb/card0/dvr0 // dvr device
F: { 23 } /dev/dvb/card0/demux0 // demux device
#F: { 31 } /dev/dvb/adapter0/ca1 // second ca device to write cw’s (recording)
#F: { 41 } /dev/sci0 // STB04xxx slot1
#F: { 42 } /dev/sci1 // STB04xxx slot1
#F: { 43 } /dev/tts/0 // rs232 com1
#F: { 44 } /dev/tts/1 // rs232 com2

# For overclocking freaks, Clocking internal STB04xxx slots with:
# 1=7.80MHz 2=6.30MHz 3=5.25MHz 4=4.50MHz 5=3.94MHz 6=3.50MHz 7=3.15MHz
# Irdeto works fine on 7.8MHz, all other fine on 6.30MHz or 5.25MHz
# The Dream has not a clean clock signal, some cards that are sensitive will
# refuse to work even on 3.5MHz, thats why 3.15MHz is the default value there.
# On other STB04xxx recievers the same cards work with 6.30MHz
#
#F: { 51 } 02 // irdeto
#F: { 52 } 03 // seca
#F: { 53 } 03 // viaccess
#F: { 54 } 03 // nagra
#F: { 55 } 03 // crypto
#F: { 57 } 03 // conax
#F: { 58 } 03 // nds

# end gbox config file


Aici este listingul softcam.cfg pe care poti sa-l copiezi si sa-l inserezi intr-un fisier text si apoi sa-l salvezi cu numele: softcam.cfg daca nu cumva il ai deja.

# SoftCam EMM Log configuration
#
# Save EMM data
# 00 Don’t save anything (default)
# 01 Save processed EMMs (/var/tmp/emmproc.bin)
# 02 Save rejected EMMs (/var/tmp/emmblock.bin)
# 03 Save both EMMs
L: { 00 }

# Check additional OSC Frequency !!! ONLY FOR DBOX2 !!!
# 00 No Check (default)
# >0 Check on, Value in KHz , example 8MHz=08000
F: { 00 }

# Check additional Baurate for ATR !!! ONLY FOR DBOX2 !!!
# 00 No Check (default)
# >0 Check on, Value in bit/s, example 81861
B: { 00 }

# Enable TPScrypt Support
# *0 TPScrypt off
# *1 TPScrypt on (default)
# 1* don’t use PTS on Viaccess cards
# 2* don’t use PTS on Cryptoworks cards
# 3* don’t use PTS on Viaccess and Cryptoworks cards
Y: { 01 }

# Empty RS232 buffer before writing
# 00 No reset
# 01 Reset Buffer (default)
E: { 01 }

# SoftCam Blocker/Filter definition
#
# 00 = Allow EMM (default for all)
# 01 = Block EMM addressed to:
# all card
# | shared address/provider
# | | unique address/hex_serial
# –––––––––––-
I: { 00 00 00 } Irdeto All SA UA
V: { 00 00 00 } Via – SA UA
S: { 00 00 00 } Seca – SA UA
N: { 00 00 00 } Nagra All SA UA
C: { 00 00 00 } Crypto All SA UA
O: { 00 00 00 } Conax – SA UA
D: { 00 00 00 } NDS All SA UA

# Timeout Definitions
#
T: { 00 02 01 } ATR timeout (normal*X), instruction timeout (normal*X)

# com1/com2 delays, all delays to be entered in decimal !
#
# Do NOT touch !!!!!!!!!!!!!!!!!!
# all timings should be 0, change only if you have problems.
T: { 01 00000 000 } Irdeto : byte delay (1e-6 s), instruction delay (1e-3 s)
T: { 02 00000 000 } Seca
T: { 03 00000 000 } Viaccess
T: { 04 00000 000 } Nagra
T: { 05 00000 000 } CryptoWorks
T: { 06 00000 000 } Geldkarte
T: { 07 00000 000 } Conax
T: { 08 00000 000 } NDS

# Use Crypto card bug to decode any CW, no matter of chid
#
# Cxxx configuration (is aktiv for the provider only if a config line is present)
# (ECM sample to be used to get the cw’s with Cxxx)
#
# Provider provider chid – that is present on the card for that provider
# || || || ||
# UPC-Astra
8: { 8D } A4 4C 00 00 2E 20 00 2B 83 01 8D 8C 03 20 01 00 8E 02 00 00 C5 01 00 DB 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 DF 08 00 00 00 00 00 00 00 00
# Digiturk
8: { C1 } A4 4C 00 00 31 28 00 2E 83 01 C1 8C 03 89 19 19 8E 02 00 00 8F 01 A9 91 01 55 DB 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 DF 08 00 00 00 00 00 00 00 00

# Use constant CW’s for
# caid pid CW0 … CW1 …
0: { 09 61 2E E5 { F0 07 84 7B F2 24 E9 FF 00 00 00 00 00 00 00 00 }
0: { 09 61 C3 57 { 86 FA 87 07 33 F2 AF D4 00 00 00 00 00 00 00 00 }
0: { 26 00 03 EB { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 E9 { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 EA { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 EC { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 ED { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 EE { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 EF { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 03 F0 { 2D 4E 53 CE 6A 42 5F 0B 2D 4E 53 CE 6A 42 5F 0B }
0: { 26 00 00 01 { 10 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 }
0: { 26 00 00 04 { 18 AA 00 00 C2 D3 28 00 18 AA 00 C2 C2 D3 28 00 }
0: { 26 00 00 03 { B9 8A C0 00 DE 11 03 00 B9 8A C0 00 DE 11 03 00 }
0: { 26 00 00 05 { AB CD EF 67 FE DC BA 94 AB CD EF 67 FE DC BA 94 }
0: { 26 00 1F 06 { 11 11 11 33 11 11 11 33 11 11 11 33 11 11 11 33 }
0: { 26 00 00 63 { 13 24 35 6C AC BD EF 58 13 24 35 6C AC BD EF 58 }
0: { 26 00 00 06 { 10 10 10 30 10 10 10 30 10 10 10 30 10 10 10 30 }
0: { 26 00 00 07 { 1A 2B 3C 00 4D 5E 6F 00 1A 2B 3C 00 4D 5E 6F 00 }
0: { 26 00 00 67 { DB A5 45 00 FD E3 62 00 DB A5 45 00 FD E3 62 00 }
#MINSK TV 53E
#0: { 26 00 00 01 { 10 09 19 32 36 24 62 BC 10 09 19 32 36 24 62 BC }
#ENTV 22W
#0: { 26 00 00 04 { 11 00 00 00 00 00 00 00 11 00 00 00 00 00 00 00 }
#TV7 INDO 108E
#0: { 26 00 00 04 { 44 C4 DE 00 7B 94 32 00 44 C4 DE 00 7B 94 32 00 }


Acum despre fisierul cwshare.cfg :

in linia M: va trebui sa introduci numele taudyndns ( sau adresa de Internet IP ) apoi parola ta din 8 caractere in format HEX ( adica: cifre 0-9 si litere A-F ).

* Important parola ta trebuie sa fie unica, deci sa nu se mai regaseasca in alta linie D. Nu faceti confuzie intre aceasta parola si parola dyndns , dreambox, sau router.
* Prin dyndns iti vei asigna numelui tau adresa de internet IP, asfel incit daca IP-ul tau internet se schimba vei actualiza dyndns-ul cu noul IP.

in linia D:
vei introduce detaliile partenerului de share: nume dyndns, portul tau UDP, portul lui UDP, parola lui si parametrii de share.

* Portul tau UDP va trebui sa fie directionat catre IP-ul intern al dreambox-ului;
pentru aceasta va trebui sa folosesti Router si sa-l configurezi ca pachetele UDP care ajung pe portul dorit ( yyyy ) catre IP-ul tau de internet
sa fie directionate catre acelasi port UDP ( yyyy ) spre IP-ul local al dreambox-ului.

Cum sa construiesti linia ta D sa o poti da altor parteneri:

D: { numele_tau_dydns_sau_ip { xxxx yyyy { parola_ta { local_card_dist virtual_card_dist }}}}

in xxxx partenerul tau de share va introduce portul lui, las-o necompletata, ca si xxxx.
yyyy – este portul tau UDP.
parola_ta = parola din linia M.
local_card_dist = A5 aceasta este distanta la care vrei ca sa fie vizibil cardul tau local, A este pentru cartele speciale NDS, de ex: SKY UK/IT.
virtual_card_dist = A5 aceasta este distanta la care vrei sa fie vizibile cardurile tele virtuale care iti vin de la parteneri, A este pentru cartele speciale NDS, de ex: SKY UK/IT.

* Atentie sa nu confunzi linia ta D care o dai prietenilor tai cu liniile tale D din cwshare.cfg

* Atentie sa nu faci publice liniile tele D&M sau liniile D din cwshare

# start cwshare.cfg config file

# allow maximum 06 share level for recieved card data
I: { 06 }

# 01 repeat EMM’s
# 00 consider every EMM only once
# 01 restart pid on overflow
# 1* reset ENX on every channel change
# *1 check/reset ENX freezes on FTA
# *2 check/reset ENX freezes on PayTV
# *3 check/reset ENX freezes on FTA and PayTV
# 00 write nothing in atack.txt
# 01 write into atack.txt: password is wrong
# 02 write into atack.txt: ID unknown
# 04 write into atack.txt: IP is wrong
# 08 write into atack.txt: port is worng
# 10 write into atack.txt: share.stat
# 20 create online.log for online/offline logging
# 3F write everything. (combine bits for other combinations)
# 4000 send ecm again after 4 Seconds if no reply.
# 6000 resync decode after 6 Seconds if net decode failed
N: { 00 01 03 1F 4000 6000 }

# Send ECM’s at maximum 5 cards (please use this as default)
X: { 05 }

# Send ECM’s in any case to these card ID’s, even they are more then X:
# some examples …
#G: { 17020000 1234 }
#G: { 0B000000 ABCD }
#G: { 05021510 AB34 }
#G: { 0D03A000 A234 }

# For W: please read the cwshare.txt, here only some examples
# use card 1 only for the following pids
#W: { 01 02 02 } 1022 100A 100B 102B 1009 101D 1029 1014 1011 101B
# don’t use card 2 for the following pids
#W: { 02 03 03 } 1008 1016

# S: is the same as W:, just using the SID instead of the ECMPID

# cwshare.cfg – dbox1 – Internet und Lokales Netzt
#
# password
M: { mydbox2.homeip.net { AA242456 }}

# Internet Friends port range password cod
D: { friend1.homeip.net { 8010 8010 { B142AB11 { 5 5 }}}}
D: { friend2.homelinux.net { 8010 8010 { 81BFF901 { 5 5 }}}}

# other local boxes
D: { 192.168.0.51 { 8020 8020 { AB333441 { 5 5 }}}}
D: { 192.168.0.52 { 8020 8020 { BA334B24 { 5 5 }}}}

# end cwshare.cfg config file
G-Box Center este un utilitar care iti afiseaza informatii despre partenerii de share si cartelele virtuale

Fereastra cu status-ul liniilor D, ver gbox, adresa IP… selecteaza o linie si apasa OK pentru a avea mai multe informatii

Aici poti vedea cite cartele iti vin si de la ce distanta, teoretic distanta mai mica inseamna o viteza de raspuns mai buna

Daca o cartela are Level 0 nu va mai fi redistribuita mai departe, cartelele cu Level 1 vor fi redistribuite o singura data, Level 2 de doua ori pina vor ajunge la level 0… etc

Aici este afisat ce provideri pot fi accesati si cite cartele sunt in retea pentru fiecare provider

Cum sa instalezi manual G-Box Center:

copiaza egboxcenterd in /var/bin si seteaza atributul 755
copiaza urmatoarele fisiere in /var/tuxbox/plugins
egboxcenter.cfg
egboxcenter.so -seteaza atributul 755

Apoi mergi in Blue Panel – Plugins si selecteaza G-Box Center pentru a-l porni

Tips

* Daca vei avea atacuri de genul bad port o cauza poate fi faptul ca folosesti v 2.20-2.25 si primesti >1024 carduri. Foloseste PC log-er pentru a verifica aceasta problema.
Pentru a corecta eroarea ai doua optiuni:
instaleaza gbox v 2.1b sau
coboara valoarea parametrului I la 04 sau 03 astfel I: { 03 } si verifica parametrul X sa nu fie prea mare; valoarea narmala este X: { 05 }

* Daca in linia ta M vei introduce adresa ta sub forma de IP atunci nu poti avea in liniile D nume cu dyndns, doar IP-uri.

Instaleaza in dir: /var/keys si reporneste gbox-ul.

instalatorul is offline Reply With Quote



  1. No trackbacks yet.

Lasă un răspuns

Completează mai jos detaliile despre tine sau dă clic pe un icon pentru autentificare:

Logo WordPress.com

Comentezi folosind contul tău WordPress.com. Dezautentificare / Schimbă )

Poză Twitter

Comentezi folosind contul tău Twitter. Dezautentificare / Schimbă )

Fotografie Facebook

Comentezi folosind contul tău Facebook. Dezautentificare / Schimbă )

Fotografie Google+

Comentezi folosind contul tău Google+. Dezautentificare / Schimbă )

Conectare la %s

%d blogeri au apreciat asta: