Pages

Tuesday, June 29, 2010

DVBSnoop Project

References:
http://mvdig.com/f387/how-create-your-own-logs-using-windows-dreambox-69607/
http://amuse.ftw.at/downloads/dvbh-relay/LIMBOS_Setup_v01
http://dvbsnoop.sourceforge.net/faq.html
http://dvbsnoop.sourceforge.net/features.html
http://www.kevin-lee.co.uk/freesat.html
http://www.digitalspy.co.uk/forums/showthread.php?t=751053
http://dvbsnoop.sourceforge.net/manpage/dvbsnoop.man.shtml

###################################################
dvbsnoop 1 -n 1

#####################################
dvbsnoop -npd 0x5f0 

0x5f0 is the ecm pid of channel ANT-1.

You will see that only packets with chid 13 (bytes "80 70 39 cd 00 05 00 13") and chid 28 (bytes "80 70 39 cd 03 05 00 28") are logged. With pre 25.02 drivers, all six packets are logged.
#########################################
0x413
==========================================================
./dvbsnoop -b 0x413 > /tmp/tsp7dump.bin

Why don't you just use "dvbsnoop -b 0x3ea > dump.bin" or changing 3ea or whatever pid you want to monitor, also you need to 

make sure you are tuned into the correct Transponder, so change the channel on the remote or via web UI then use 

IRD_Logextract to process it later... Always works for me, and you can kick off the logging without needing your PC online, 

and process the log at a later date.
[root at localhost src]# grep FOX8 ~root/.szap/channels.conf
FOX8:12558:h:0:27800:1081:1082:1008
[root at localhost src]# ./dvbsnoop -n 1 -demux /dev/dvb/adapter1/demux0 1089
dvbsnoop V1.3.77 -- http://dvbsnoop.sourceforge.net/


[root at localhost src]# ./dvbsnoop -n 1 -demux /dev/dvb/adapter1/demux0 0
dvbsnoop V1.3.77 -- http://dvbsnoop.sourceforge.net/

------------------------------------------------------------
dvbsnoop -n 1 -ph 4 4088 ----------------------
dvbsnoop -n 1 -ph 4 4096
root@Dream8k_M4:~# dvbsnoop -n 1 -ph 4 3004
--------------------------------------


root@dm500 /var/bin # ./dvbsnoop -s pidscan
dvbsnoop V1.3.96 -- http://dvbsnoop.sourceforge.net/

---------------------------------------------------------
Transponder PID-Scan...
---------------------------------------------------------
PID found: 0 (0x0000) [SECTION: Program Association Table (PAT)]
PID found: 1 (0x0001) [SECTION: Conditional Access Table (CAT)]
PID found: 16 (0x0010) [SECTION: Network Information Table (NIT) - actual net
work]
PID found: 17 (0x0011) [SECTION: Service Description Table (SDT) - other tran
sport stream]
PID found: 18 (0x0012) [SECTION: Event Information Table (EIT) - other transp
ort stream, present/following]
PID found: 20 (0x0014) [SECTION: Time Date Table (TDT)]
PID found: 60 (0x003c) [SECTION: DSM-CC - Download Data Messages (DDB)]
PID found: 80 (0x0050) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]
PID found: 84 (0x0054) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]
PID found: 88 (0x0058) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]
PID found: 92 (0x005c) [unknown]
PID found: 96 (0x0060) [unknown]
PID found: 100 (0x0064) [unknown]
PID found: 104 (0x0068) [unknown]
PID found: 108 (0x006c) [unknown]
PID found: 112 (0x0070) [unknown]
PID found: 116 (0x0074) [unknown]
PID found: 120 (0x0078) [unknown]
PID found: 124 (0x007c) [unknown]
PID found: 128 (0x0080) [unknown]
PID found: 132 (0x0084) [unknown]
PID found: 160 (0x00a0) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11
172-2 video stream]
PID found: 161 (0x00a1) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11
172-2 video stream]
PID found: 162 (0x00a2) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11
172-2 video stream]
PID found: 163 (0x00a3) [unknown]
PID found: 164 (0x00a4) [unknown]
PID found: 165 (0x00a5) [unknown]
PID found: 166 (0x00a6) [unknown]
PID found: 167 (0x00a7) [unknown]
PID found: 168 (0x00a8) [unknown]
PID found: 169 (0x00a9) [unknown]
PID found: 170 (0x00aa) [unknown]
PID found: 171 (0x00ab) [unknown]
PID found: 172 (0x00ac) [unknown]
PID found: 173 (0x00ad) [unknown]
PID found: 400 (0x0190) [SECTION: DSM-CC - Download Data Messages (DDB)]
PID found: 610 (0x0262)
PID found: 620 (0x026c) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1024 (0x0400) [SECTION: Program Map Table (PMT)]
PID found: 1025 (0x0401) [SECTION: Program Map Table (PMT)]
PID found: 1026 (0x0402) [SECTION: Program Map Table (PMT)]
PID found: 1027 (0x0403) [SECTION: Program Map Table (PMT)]
PID found: 1028 (0x0404) [SECTION: Program Map Table (PMT)]
PID found: 1029 (0x0405) [SECTION: Program Map Table (PMT)]
PID found: 1030 (0x0406) [SECTION: Program Map Table (PMT)]
PID found: 1031 (0x0407) [SECTION: Program Map Table (PMT)]
PID found: 1032 (0x0408) [SECTION: Program Map Table (PMT)]
PID found: 1033 (0x0409) [SECTION: Program Map Table (PMT)]
PID found: 1034 (0x040a) [SECTION: Program Map Table (PMT)]
PID found: 1035 (0x040b) [SECTION: Program Map Table (PMT)]
PID found: 1036 (0x040c) [SECTION: Program Map Table (PMT)]
PID found: 1037 (0x040d) [SECTION: Program Map Table (PMT)]
PID found: 1352 (0x0548) [SECTION: Program Map Table (PMT)]
PID found: 1362 (0x0552) [SECTION: Program Map Table (PMT)]
PID found: 1774 (0x06ee) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1775 (0x06ef) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1776 (0x06f0) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1777 (0x06f1) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1778 (0x06f2) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1779 (0x06f3) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1780 (0x06f4) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1781 (0x06f5) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1782 (0x06f6) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1783 (0x06f7) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1784 (0x06f8) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1785 (0x06f9) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1786 (0x06fa) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1787 (0x06fb) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1788 (0x06fc) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1789 (0x06fd) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1790 (0x06fe) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1791 (0x06ff) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1792 (0x0700) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1793 (0x0701) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1794 (0x0702) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1795 (0x0703) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1796 (0x0704) [SECTION: DVB CA message section (EMM/ECM)]
PID found: 1797 (0x0705) [SECTION: DVB CA message section (EMM/ECM)]
######################################################################
root@dm500 /var/bin # ./dvbsnoop -n 1 -nph 16 |grep Frequency:>/media/hdd/freque
ncy.rtf
Frequency: 19071232 (= 12.30100 GHz)
Frequency: 19235072 (= 12.58100 GHz)
Frequency: 19218688 (= 12.54100 GHz)
Frequency: 19107840 (= 12.39000 GHz)
Frequency: 19292416 (= 12.66100 GHz)
Frequency: 19148800 (= 12.43000 GHz)
Frequency: 19165184 (= 12.47000 GHz)

##########################################################################
root@dm500 /var/bin # ./dvbsnoop -pd 4 -ph 3 -n 0 17|grep Service_name>/media/hd
d/Service_name.txt
Service_name: "Discovery T & L" DreamTV
Service_name: "The History Channel" DreamTV
Service_name: "National Geographic Channel" DreamTV
Service_name: "BBC World News" DreamTV
Service_name: "CNBC Asia" DreamTV
Service_name: "MBC Korea" DreamTV
Service_name: "Deutsche Welle" DreamTV
Service_name: "Hallmark Channel" DreamTV
Service_name: "Animax" DreamTV
Service_name: "Star Sports" DreamTV
Service_name: "SET" DreamTV
Service_name: "MTV SEA" DreamTV
Service_name: "ESPN" DreamTV
Service_name: "Open TV Srv" DreamTV
Service_name: "Reserved Channel 39" DreamTV
Service_name: "Open TV Srv" DreamTV
Service_name: "TBN" DreamTV
Service_name: "JCTV" DreamTV
Service_name: "TCC" DreamTV
Service_name: "SOAC" DreamTV
Service_name: "GLC" DreamTV
Service_name: "WWTV" DreamTV
Service_name: "HCBN" DreamTV
Service_name: "e-Talk" DreamTV
Service_name: "ABS-CBN 2" DreamTV
Service_name: "NBN 4" DreamTV
Service_name: "TV 5" DreamTV
Service_name: "GMA 7" DreamTV
Service_name: "Solar TV" DreamTV
Service_name: "IBC 13" DreamTV
Service_name: "Studio 23" DreamTV
Service_name: "UNTV" DreamTV
Service_name: "TOP Channel" DreamTV
Service_name: "Love Radio" DreamTV
Service_name: "Yes! FM" DreamTV
Service_name: "EDGE Radio" DreamTV
Service_name: "CMN Radio" DreamTV
Service_name: "106 Dream FM" DreamTV
Service_name: "BBC Radio" DreamTV
Service_name: "I FM" DreamTV
Service_name: "RJ 100 FM" DreamTV
Service_name: "DWNU FM" DreamTV
Service_name: "RMN/PHILRADIO" DreamTV
Service_name: "OpenTV Srv" DreamTV
Service_name: "EPG SRVC" DreamTV
Service_name: "M@gic Games" DreamTV
Service_name: "Elle Beauty" DreamTV
###################################
Examples
Examples how to use dvbsnoop:

Display EPG, 10 sections:
dvbsnoop -s sec -nph -n 10 0x12
dvbsnoop -s sec -ph 3 -n 10 -crc 0x12

Display sections tree (1 packet each) using private provider data:
dvbsnoop -s sec -spiderpid -privateprovider premiere.de 0x00

Display sections tree (1 packet each) skipping "empty" pids:
dvbsnoop -s sec -spiderpid -timeout 15000 0x00

Display PAT transport stream (ts) and do subdecoding of sections and descriptors:
dvbsnoop -s ts -pd 4 -tssubdecode -nph 0x00

Read PES (e.g. Videotext, Video, Audio) stream:
dvbsnoop -s pes 0x28F
dvbsnoop -s pes 0x28F -b > pes.bin.file

Read PS from file and do not show hex dump:
dvbsnoop -if hdtv_ps_file.mpg -s ps -ph 0 -nohexdumpbuffer -n 30

Show current signal strength:
dvbsnoop -s signal
dvbsnoop -s signal -pd 9 -n 100 -timeout 100

Show bandwidth usage of a PID 0x1FF:
dvbsnoop -s bandwidth -n 1000 -pd 2 0x1FF
dvbsnoop -s bandwidth -buffersize 256 -n 1000 0x1FF

Do PID scan of a tuned transponder (different display levels):
dvbsnoop -s pidscan -pd 1
dvbsnoop -s pidscan -pd 6
dvbsnoop -s pidscan -pd 9 -maxdmx 12

Show frontend info:
dvbsnoop -s feinfo -pd 9

Try to scan all sections, read 2 packets per PID:
dvbsnoop -nohexdumpbuffer -spiderpid -n 2 0x0000

Save 1000 packets of a transport stream to a file:
dvbsnoop -b -n 1000 -s ts 0x200 > ts_file.pid0x200.bin
dvbsnoop -b -n 1000 -s ts -tsraw > ts_file.bin

Read transport stream (ts) from file and decode:
dvbsnoop -s ts -if ts_stream.bin
dvbsnoop -s ts -if ts_file.pid0x200.bin 0x200

Simple filter for some PID values, some examples:
dvbsnoop -n 5 -nph 0x00 | grep -i "PID: "
dvbsnoop -spiderpid -nph -n 10 0x00 | grep -i "PID: " | sort | uniq
dvbsnoop -s signal -pd 9 | ./perl-statistics-prog.pl

Other simple filter examples:
dvbsnoop -s sec -f 0x4E -m 0xFF 0x12
dvbsnoop -s sec -f 0x4E.34.00 -m 0xFF.FF.0F 0x12
dvbsnoop -s sec -f 16.00 -m 255.255 0x12
dvbsnoop -s sec -nph -n 5 0x10 | grep -i "frequency"
dvbsnoop -s ts -nph 0x100 | grep -i 'Transport_error\|^PID'

Selecting devices:
dvbsnoop -s feinfo -pd 9 -frontend /dev/dvb/adapter0/frontend1
dvbsnoop -s feinfo -pd 9 -adapter 0 -devnr 1
dvbsnoop -s feinfo -pd 9 -adapter 2

Sending dvbsnoop data over network, using netcat:
dvbsnoop -s pes 0x28F -b nc -q ServerName 31337

Do remote decoding of dvb data over network using dvbsnoop and netcat:
streaming site:
dvbsnoop -s ts 0x0065 -b nc -q ServerName 31000
reveiving site:
nc -l -p 31000 dvbsnoop -nph -s ts -tssubdecode -if -

You may also use e.g. dvbtools for sending dvb data over a network:
dvbstream .... --> dumprtp dvbsnoop -s ts -if -



DVB-H analysis and IP decoding
To dump whole MPEG TS:

dvbstream -o 8192 | dvbsnoop -s ts -if - -b > dump.ts
To get Program PIDs:

dvbsnoop -n 1 -nph 0 | grep -i "PID: "



see reference no.1 up

###########################################
kung saan kinakailangan, upang at ipapasa. Hal . / dvbsnoop-n-1-b 0x0fa2> / tmp / ecm.bin sa tmp endlessly magtapon off course hindi, kaya, maliit na mga tala ng, na rin, hayaan ng sabihin hanggang sa 10M kaya chtoe Kung halimbawa itinaas NFS server pagkatapos pagkatapos ito ay mas mahusay sa sa PC . / dvbsnoop-n-1-b 0x0fa2> / mnt / NFS / ecm.bin 
#######################################
http://dvbsnoop.sourceforge.net/dvbsnoop.html
#########################################
have changed the ini file so you can use it with NOVA but you may change it to whatever IRD PID you want. You can easily find the provider's PID by running:
dvbsnoop 1 -n 1
from your DM while you watch the provider you want to find. Your are looking for the Hex value of CA_PID (0xXXXX), 0500 for Nova Gr.

You are now ready to log from your windows PC with the IRD EMM extractor. 

Your HSN is always from the 9th to the 14th char in the C3/CB files created, right after the C3/CB.

Example: 824038C312345600000030319C2CCE70A1DBDC30218B7602D5844977F....

HSN: 123456

This is the line you are looking for in the logs to send with EMK/besttt (send as log) in order to reactivate your card, if that is possible of course. If your card does not come back to life use another log/emm line and if you use them all then use another gam file in order to get a different HSN and so on and forth until you find a working one, if any left that is.

HINT: With a little *nix knowledge, it is really easy to extract just about all valid HSNs there are available.

Example: cat 25-Jan-2010-Nova-C3.txt 25-Jan-2010-Nova-CB.txt | awk '{print $5}' | cut -c 9-14 | sort -u

I wish there were also a way to change your HSN to wh


Monday, June 28, 2010

Only 2 Commands To Download Movies You Like

If everything is in place , Only 2 commands to download a movie you wish to watch :

1. Wget
2. Btdownloadcurses

Steps:

1. Go to you favorite torrent site .
sample:
ThePiratebay.org http://thepiratebay.org/browse/201/0/7

2.sorted it to SE or highest seeders.
3. click the movie u like to download
4. rightclick mouse > copy link address
5. paste it to Linux Temp folder
sample:
filsat@ubuntu9srv:/tmp$ wget http://torrents.thepiratebay.org/5529041/Iron_Man_2_2010_TS_XviD_Xclusive_LKRG[ExtraTorrent].5529041.TPB.torrent


hit enter

you will see something like this..

###################################
--2010-06-29 14:18:30-- http://thepiratebay.org/browse/201/0/7
Warning: wildcards not supported in HTTP.
--2010-06-29 14:23:44-- http://torrents.thepiratebay.org/5529041/Iron_Man_2_2010_TS_XviD_Xclusive_LKRG[ExtraTorrent].5529041.TPB.torrent
Resolving torrents.thepiratebay.org... 194.71.107.19
Connecting to torrents.thepiratebay.org|194.71.107.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12954 (13K) [application/x-bittorrent]
Saving to: `Iron_Man_2_2010_TS_XviD_Xclusive_LKRG[ExtraTorrent].5529041.TPB.torrent'

100%[=============================================================>] 12,954 17.1K/s in 0.7s

2010-06-29 14:23:46 (17.1 KB/s) - `Iron_Man_2_2010_TS_XviD_Xclusive_LKRG[ExtraTorrent].5529041.TPB.torrent' saved [12954/12954]

#########################################

6. filsat@ubuntu9srv:/tmp$ Btdownloadcurses Iron_Man_2_2010_TS_XviD_Xclusive_LKRG\[ExtraTorrent\].5529041.TPB.torrent

#####################################

-----------------------------------------------------------------------------------------------------
| file: Prince of Persia The Sands of Time TS XViD IMAGiNE |
| size: 1,498,737,705 (1.40 GiB) |
| dest: /tmp/Prince of Persia The Sands of Time TS XViD IMAGiNE |
| progress: ######################################################################################### |
| status: download succeeded! |
| dl speed: --- |
| ul speed: 432.5 KB/s |
| sharing: 1.066 (1523.5 MB up / 1429.3 MB down) |
| seeds: 221 seen recently, plus 3.998 distributed copies |
| peers: 16 seen now, 56.9% done at 2148.1 kB/s

#####################################################

Thats it.. Happy Watching !

Wednesday, June 23, 2010

How to mount Windows 7 folder in DM500s

1. Create C:\Movie folder in Windows 7 and share it
2. mkdir /tmp/movie in dm500s
3. root@dm500 /tmp # mount -t cifs -o user=vincent,password=root //192.168.1.2/movie /tmp/movie

root@dm500 /tmp # df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 4096 4096 0 100% /
/dev/mtdblock/1 2816 1312 1504 47% /var
/dev/mtdblock/1 2816 1312 1504 47% /var_flash
//192.168.1.2/movie 58597052 49310308 9286744 84% /tmp/movie
root@dm500 /tmp # ls
boot.log hotplug.socket mmi.socket
camd.socket iplog.log movie
root@dm500 /tmp # cd movie/
root@dm500 /tmp/movie # ls
Jackie Chan - My Stunts.avi desktop.ini
root@dm500 /tmp/movie #