View Single Post
  #4  
Old 12-10-2012, 10:50 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: How to download Mosaik.tv videos ?


Sample php script to decode XML:
Code:
<?php
  class Cryptage
    {
      public function decode($arg1)
        {
          $version = 1;
          $cle     = "t4G3a9M0Zw7";
          $loc1    = substr($cle, 0, 1);
          $loc2    = 0;
          $loc3    = strlen($arg1);
          $loc4    = "";
          $loc5    = "";
          $loc8    = 0;
          while ($loc2 < $loc3)
            {
              $loc7 = substr($arg1, $loc2, 1);
              if ($loc7 != $loc1)
                {
                  $loc8 = 1;
                  while ($loc8 < strlen($cle))
                    {
                      $loc9 = substr($cle, $loc8, 1);
                      if ($loc9 == $loc7)
                        {
                          if ($loc8 == 10)
                              $loc8 = 0;
                          $loc5 = $loc5 . $loc8;
                          break;
                        }
                      $loc8++;
                    }
                }
              else
                {
                  $loc4 = $loc4 . chr($loc5);
                  $loc5 = "";
                }
              $loc2++;
            }
          return $loc4;
        }
    }
  
  $crypt   = new Cryptage();
  $decoded = $crypt->decode("encoded_xml_data_here");
  file_put_contents("Decoded.xml", $decoded);
?>
http://pastebin.com/jbZkPz7i

Decoded data:
http://pastebin.com/iPWkFAU6
Reply With Quote