Git Product home page Git Product logo

bitrix-decoder's Introduction

Работает: 14.05.2020

Скрипт полуавтоматически преобразует закодированные файлы Bitrix в читабельный формат.

Пример использования

Инструкция

  1. Открываем файл и копируем закодированную часть.
  2. Приводим к правильному виду через http://beautifytools.com/php-beautifier.php (можно стандартными средствами IDE) и копируем в файл decode_file.php
  3. В подготовленом файле сверху находятся один или 2 массива и функция. Вырезаем их и вставляем в файл variables.php. Начинаться они будут примерно так:
  • Массив: $GLOBALS['____153126584'] = array(base64_deco...
  • Функция: if (!function_exists(__NAMESPACE__.'\\___1076931394')) { function ___1076931394($_367941623) {...
  1. Название массива копируем в 'GLOBAL_VARIABLES' в index.php а названия функций в 'GLOBAL_FUNCTIONS' они обозначены тремя нижними подчеркиваниями.
  2. Запускаем скрипт из консоли php index.php
  3. Появится файл encode_file.php в нем будет читабельный код.

Пример строки

Было: $_236203417 = $GLOBALS[___1076931394(0)]->Query(___1076931394(1), true);

Стало: $_236203417 = $GLOBALS['DB']->Query('SELECT VALUE FROM b_option WHERE NAME='~PARAM_MAX_USERS' AND MODULE_ID='main' AND SITE_ID IS NULL', true);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.