coolguruji / youtube-to-mp3-converter-php-script

This youtube to mp3 converter is a full php scripts for webmasters. No requirement of FFMPEG, Youtube-dl or Dedicated/vps server.
Apache License 2.0
58 stars 70 forks source link

Deobfuscated code #1

Closed blha303 closed 7 years ago

blha303 commented 7 years ago

For anyone else wondering, the obfuscated code turns out to be:

$ytresponse = @file_get_contents("https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3D$id&format=json");
$ytinfo = array();
$ytinfo = json_decode($ytresponse, true);
$type = $ytinfo['type'];

No reason for that to be encoded 15 times. https://www.unphp.net/decode/4edffe4d7c34bbbbb7460eadec830bd7/

Obliterous commented 7 years ago

Yeah, this is pretty spamtastic.

owenvoke commented 6 years ago

sigh Nice. I wish I'd seen this issue/site before manually decoding it 🤦‍♂️