duminică, 19 decembrie 2010

How to install gbox in your DreamBox

You will need to download:
Gbox - there are few versions available: 2.1b, 2.20, 2.22, 2.23, 2.24, 2.25... I recommend you 2.1b or 2.25 if you receive <500 virtual cards .
DCC - Dreambox Control Center
optional plugin G-Box Center



Install DCC on your PC and set-up communication for your Dreambox.
Now you can start to install the files in your Dream.

copy gbox file in your dream in dir: var/bin.
Sett attribute 755 to this file.
- if you have you can copy this files and set attribute to 755 also.
s2issuer.b
s2provid.b


This image has been resized. Click this bar to view the full image. The original image is sized 800x601.



copy gbox_cam.sh in your dream to dir: /var/script
Sett attribute 755 to this file.


This image has been resized. Click this bar to view the full image. The original image is sized 800x601.



this is a listing of this 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
----------------------------

copy to dir: /var/keys your config files and keys.

- configuration files:
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

- optional files with keys:
conax
irdeto
nagra
seca
via

- optional files:

ident.info - this is the file where providers codes are assigned to name for easy display with G-Box Center.
ignore.list - to ignore some providers, old, fake cards.
knowns.ini
priority.list
replace.list


This image has been resized. Click this bar to view the full image. The original image is sized 800x601.




now you will have to restart your Dreambox.
Go to Blue Panel and select Gbox, then select Start/Restart Cam to activate the Gbox cam.






For Gbox to work properly you will need to have in dir: /var/keys some configuration files:

gbox_cfg, softcam.cfg and cwshare.cfg ( cwshare.cfg wich you will have to build using your data), .

Here it is listing of gbox_cfg which you can copy/paste in a text file and save as: gbox_cfg if you don't have already.

# 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



Here it is listing of softcam.cfg which you can copy/paste in a text file and save as: softcam.cfg if you don't have already.

# 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 }



Now about cwshare.cfg file:

in line M:
you will enter your dyndns name or Internet IP with your password in hex.


* with dyndns name you will designate a name to your internet IP address, so when you will have another internet IP address all you have to do is to update dyndns account.
* your password must be unique, new password will be made from 8 character in Hex code. ( 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. ).
do not confuse this new password from M line with:
dyndns password, dreambox password or router password.


in line D: you will have your share partner with his details, dyndns name, your UDP port, his UDP port, his password and share parameter.


* Your port UDP ( yyyy ) will have to be redirected to local dreambox IP.
for this you will have to use a Router and to config that UDP packet that come to your Internet IP on chosen port ( yyyy )
to be forwarded on the same port UDP ( yyyy ) to local dreambox IP.


How to build your D line which you will give to your share partner:

D: { your_dydns_name_or_ip { xxxx yyyy { your_password { local_card_dist virtual_card_dist }}}}

in xxxx your share partner will enter his UDP port, leave it as xxxx.
yyyy - is your UDP port.
your_password = it is the same password as it is in M line.
local_card_dist = A5 this is the distance you want your local card to be visible, A is for special cards like SKY UK/IT.
virtual_card_dist = A5 this is the distance you want your virtual cards that come from other networks to be visible, A is for special cards like SKY UK/IT.


* Attention do not make confusion between your D line, you will give to your friends and friends D lines from your cwshare.cfg

* Attention do not make public your lines D&M or any D lines from 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


About G-Box Center

G-Box Center it is a plugin that will display informations about your share partners and virtual cards.


Panel with peers status, card shared, gbox ver, IP address... select a peer and press ok to have more detailed info.


Here you can see how many cards are come and from what distance, theoretically lower distance mean better speed.



This mean that cards that have Level 0 will not be re shared any more, cards with Level 1 can be re shared only once, Level 2 will be re shared 2 times till will reach level 0...


Here is displayed what providers can be accessed and with how many cards for each provider.

This image has been resized. Click this bar to view the full image. The original image is sized 570x456.



How to manual install G-Box Center:

copy egboxcenterd to /var/bin and set attrib to 755
copy this files to /var/tuxbox/plugins
egboxcenter.cfg
egboxcenter.so -set attrib to 755

Now go to Blue Panel - Plugins and select G-Box Center to start.



Tips


* If you start getting attack with bad port one cause can be that you are using v 2.20-2.25 and you receive to many cards >1024. Use PC log to check for this problem.
To fix this you have two options:
install gbox v 2.1b or
lower your I to 04 or 03 like this I: { 03 } and check your X parameter if is not to high; normal value it is X: { 05 }


* If you enter in your M line your IP then you can't have in D line dyndns name, only IP's.

* Here you have my ident & ignore list.
check how many cards you will have before and after; this list will ignore old/fake cards.
download ident & ignore list

Install in dir: /var/keys and restart gbox.

Niciun comentariu:

Trimiteți un comentariu