Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class FileCollector { public static function getFiles(string $wpPath) { ..

Decoded Output download

<?php

class FileCollector {
    public static function getFiles(string $wpPath) {
        $rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($wpPath));
        $files = array();
        foreach ($rii as $file) {
            if (!$file->isDir()) {
                $path = $file->getPathname();
                $parts = explode(".", $path);
                if ($parts[count($parts) - 1] == "php") {
                    $files[] = $path;
                }
            }
        }
        return $files;
    }
}

//file_put_contents("wordpress-files.txt", implode("
", FileCollector::getFiles("/home/martin/Studium/Masterarbeit/wordpress/"))); ?>

Did this file decode correctly?

Original Code

<?php

class FileCollector {
    public static function getFiles(string $wpPath) {
        $rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($wpPath));
        $files = array();
        foreach ($rii as $file) {
            if (!$file->isDir()) {
                $path = $file->getPathname();
                $parts = explode(".", $path);
                if ($parts[count($parts) - 1] == "php") {
                    $files[] = $path;
                }
            }
        }
        return $files;
    }
}

//file_put_contents("wordpress-files.txt", implode("\n", FileCollector::getFiles("/home/martin/Studium/Masterarbeit/wordpress/")));

Function Calls

None

Variables

None

Stats

MD5 3a425d1dc028988b916f77839bb9597e
Eval Count 0
Decode Time 28 ms