Skip to content

Instantly share code, notes, and snippets.

@TH213
TH213 / evaldecode.php
Created November 10, 2020 16:36 — forked from yireo/evaldecode.php
Decode evil scripts encoded with eval(gzinflate(base64_decode()))
<?php
/*
* Basic script to decrypt files encoded with eval(gzinflate(base64_decode($data)));
*/
$file = 'encrypted.php';
$content = file_get_contents($file);
function evaldecode($content, $step = 0) {
//echo "STEP $step\n";