WebSharing Webe DCW gönderme metodu


vPlug 0.9.6 dan itibaren, webten DCW alma işleminin yapılabilmesi için gerekli olan bir web server gerekmekte. bu web server nedir? nasıl yapılır? detayları aşağıda,
gayet basit ve kolay bir sistem ben kısa zamanda ancak bu kadar hazırlayabildim. donmaya sebep unsurların en önemlisi tabiki bağlantı hızınız. internet bağlantınız gayet hızlı ise o zaman donma olayı biraz daha yokolacaktır.
şimdi nasıl yapıcağız ona gelelim.
gereken hardware:
1- dreambox cihazı (triple dragonda olabilir mgcamd kullanılabilen tüm cihazlar diyelim)(windows gbox ta olabilir)
2- linux server bu dreambox ile aynı ağda da olabilir veya dedicaded bir serverde olabilir veya ssh accountlu bir basit shell veya irc serverde olabilir önemli olan bant genişliğinin yeterli olması.

bu iki hardware olduktan sonra şimdi sıra software e geldi.
dreambox kullandığınızı varsayarak anlatıyorum;
mgcamd camd emu kullanmanız gerekmekte. (gbox ile de olabilir) diğer camd leri denemedim.
bu şekilde mgcamd veya gbox aktif olduğunda dreamboxunuzda tmp klasörü altında ecm.info diye bir dosya yaratılır. bu dosya ister kendi kartınızdan cardsharing yapmış olun ister başka bir servera üye olun her neticede size güncel DCW değerlerini verecektir.
bu dosya yayıncıdan gelen sinyaldeki CW değerlerini DW değerlerine değiştirip size aktaran bir dosyadır. bu dosya sayesinde camd emuler ilgili şifreli yayını açabilmektedir.
buraya kadar herşey açık herhalde.
şimdi sırada basit bir script ile bu ecm.info dosyasında bize gereken DW değerlerinin linux servera aktarılmasına ve webte yayınlanmasına geçelim.
linuxta normalde html /var/www/html altında bulunur bizde bu kısıma girip yeni bir dosya açıyoruz ve içine;
Kod:
#!/bin/sh
while [ 1 ]; do
wget ftp://root:dreambox@192.168.1.2/tmp/ecm.info
sleep 1
mv ecm.info ecm
chmod 777 ecm
rm -rf ecm.info
sleep 1
cat ecm | grep -i "===== " | sed -e "s/^===== /""/Ig" > ecm.bilgi
cat ecm | grep -i "cw0: " | sed -e "s/^cw0: /""/Ig" > ecm1.test
cat ecm | grep -i "cw1: " | sed -e "s/^cw1: /""/Ig" > ecm2.test
cat ecm1.test | sed 's/ *//g' > ecm1
cat ecm2.test | sed 's/ *//g' > ecm2
cat ecm1 ecm2 | sed "s/ *//g" | sed "s/ *//g" > ecmler
sleep 1
done
üsttekileri kopy paste yapıp yapıştırıyoruz ve adını da misal dcw.sh olarak kaydediyoruz.
dosyayı çalıştırmak için telnet konsolda /bin/sh /var/www/html/dcw.sh yazarak çalıştırıyoruz. dosya normalde 3 saniye baz alınarak yazılmıştır. ve bu süre dw yi alıp izlememize yetecek bir süredir. en hızlı irdeto sistemlerde dw1 3 sn dw2 3 sn de gelir ve biz her iki dw değerinden birine sahip olsakta yayınımız açılır yani toplam 6 sn yeterlidir. diğer şifreleme sistemlerinde bu süre daha uzun 4 -5 sn ye kadar çıkabiliyor bu da webten almak için bir avantaj yaratıyor. hatta bazen askıda kalıp saatlerce sürebiliyor
şimdi dreamboxta izlediğimiz kanala ait dw değerlerine linux web serverimizde sahip olduk. sıra bunu webte yayınlamaya geldi.
bunun içinde /var/www/html klasörümüzde birde index.php yazmamız gerekiyor.
yine boş bir dosya açıp içine:
Kod:
<html><head>
<title>MCTfantasy On Hotbird</title>
</head>
<body>
<?php
$dosya1_adi = "/var/www/html/ecmler";
if ($dosya1 = (fopen ($dosya1_adi , 'r') ) )
while ( ! feof ($dosya1) ) {
$satir1 = fgets($dosya1,1024);
print ("<br>$satir1");
}
fclose ($dosya1);
?>
</body>
</html>
üsttekileri kopyalayıp içine yapıştırıyoruz ve her iki dosyanında 755 değeri almasına dikkat ediyoruz. bunun için chmod 755 * yazmanız yeterli veya ftp ile bu değeri verebilirsiniz.
artık httpd confunuzda da /var/www/html olarak geçerli ise hostunuza ait sayfaya girildiğinde 3 sn de bir güncellenen dcw değerleri vPluga uygun formatta verilmeye başlanmış olacaktır. progdvb deki kanal listesinde yazan kanal adına göre de bu share ettiğiniz bilgileri v_dcw_sharing.ini dosyası formatına uygun olarak aşağıdaki gibi verebilirsiniz:
Kod:
[MCTfantasy]
site_url=http://www.dcwshare.com/index.php
regular_exp_pattern_to_find_key=(?s)<br>(.+?)</body>
key_part1_exp=
key_part2_exp=
artık siz kanal değiştirmezseniz sizin verdiğiniz bu bilgiler ile vPlug 0.9.6 ile sizin izlediğiniz kanalı web serverinizin gücüne bağlı olarak binlerce kişi izleyebilir.
bundan sonrası, gelişimci ve araştırmacı üyelerimizin elinde, inşallah daha da iyi bir seviyeye getirir ve bizlerle paylaşırsınız.

saygılarımla,

@tonytr
-----------------------------------------------------
WebSharing Method (DCW sharing from webpage)

People can get channel DCW’s with V-Plug 0.9.7 (dcw_cardsharing.ini). If you have a sharing server you can make a webpage for this easy multiple sharing system. (If you’re member a server u can find in Dream Box’s tmp folder file named ecm.info you can share it too.) (You Need Only Enough bandwidth)
By the way if you do not want freezing, you need high speed broadband connection.

How We Make It!
Hardware Needs:
1- DreamBox (it could be triple dragon or all mgcamd devices.)
2- A Linux server (it can possible same network with DreamBox or it can be on a dedicated server or in a simple IRC server with Ssh account your only special need is enough bandwidth.{especially you have users in same address})

After the hardware we need software:
DreamBox based Manual:
1- Use MGcamD, CamD emus. (U Can use G-Box too but G-Boxes specialties makes problems.) I didn’t try other cams.
2- After activate mgcamd or g-box you will find in your Dream Box’s tmp folder creates a file named ecm.info. This file gives you latest DCW dataset and this changes signals CW dataset to DW dataset. With this dataset CamD emus can open cryptic channels. (If you’re member a server u can find this file too and you can share it too.)

Now with a simple script we can send DW dataset in ecm.info file to Linux server and publish it on web.
Normally html in Linux could found /var/www/html We are going there and open a new file with…

Kod:
#!/bin/sh
while [ 1 ]; do
wget ftp://root:dreambox@192.168.1.2/tmp/ecm.info
sleep 1
mv ecm.info ecm
chmod 777 ecm
rm -rf ecm.info
sleep 1
cat ecm | grep -i "===== " | sed -e "s/^===== /""/Ig" > ecm.bilgi
cat ecm | grep -i "cw0: " | sed -e "s/^cw0: /""/Ig" > ecm1.test
cat ecm | grep -i "cw1: " | sed -e "s/^cw1: /""/Ig" > ecm2.test
cat ecm1.test | sed 's/ *//g' > ecm1
cat ecm2.test | sed 's/ *//g' > ecm2
cat ecm1 ecm2 | sed "s/ *//g" | sed "s/ *//g" > ecmler
sleep 1
done
Copy-paste this code and save named dcw.sh (it can be have other name too)
We’re writing in the telnet console /bin/sh /var/www/html/dcw.sh and open the file. File written with 3 second DW editing mode and this is enough in most cases. In the fastest irdeto systems DW1 came in 3 sec and after that DW2 came other 3 sec and if we had only on DW we can watch it. In the other cryptic systems this time could be 4 -5 sec and this can be advantage for us. Sometimes some channels forget change dcw and of course this is better for us.
Now we own a Linux web DCW database. And we need publish it.
We need to write in /var/www/html an index.php.
Open an empty file and write file like this.
Kod:
<html><head>
<title>MCTfantasy On Hotbird</title>
</head>
<body>
<?php
$dosya1_adi = "/var/www/html/ecmler";
if ($dosya1 = (fopen ($dosya1_adi , 'r') ) )
while ( ! feof ($dosya1) ) {
$satir1 = fgets($dosya1,1024);
print ("<br>$satir1");
}
fclose ($dosya1);
?>
</body>
</html>
We must make chmod 755 values for this two file. You can write “chmod 755 *” or you can give this value with ftp.
If you have /var/www/html in httpd conf too in your page (page from your host) it started and they are now publishing latest DCW’s in every 3 seconds. With a form can use with v_plug.
You can give this information formatted for v_dcw_sharing.ini just like it. (Channel Name must same DVB_S channel name)
Kod:
[MCTfantasy]
site_url=http://www.dcwshare.com/index.php
regular_exp_pattern_to_find_key=(?s)<br>(.+?)</body>
key_part1_exp=
key_part2_exp=
After that you must not change Channel. And Thousands can watch same channel with you. (Only limit is for web server and bandwidth)

You can make this program better.

(Thnx to @ozzymanborn for turkish=>english translate)

Sincerely.

@tonytr