!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/nginx/html/phpbb3/mobiquo/function/   drwxrwxr-x
Free 83.35 GB of 96.73 GB (86.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     report_post.php (3.38 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
*
* @copyright (c) 2009 Quoord Systems Limited
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

defined('IN_MOBIQUO') or exit;

function 
report_post_func($xmlrpc_params)
{
    global 
$db$auth$user$config;

    
$params php_xmlrpc_decode($xmlrpc_params);
    
    
$pm_id 0;
    
$post_id intval($params[0]);
    
$report_text utf8_normalize_nfc($params[1]);
    
$reason_id   intval($params[2]) ? intval($params[2]) : 2;
    
$forum_id    intval($params[3]) ? intval($params[3]) : '';
    
$user_notify =  true;
    
    if (!
$post_id)
    {
        
get_error(1);
    }
    
    
// Grab all relevant data
    
$sql 'SELECT t.*, p.*
        FROM ' 
POSTS_TABLE ' p, ' TOPICS_TABLE " t
        WHERE p.post_id = 
$post_id
            AND p.topic_id = t.topic_id"
;
    
$result $db->sql_query($sql);
    
$report_data $db->sql_fetchrow($result);
    
$db->sql_freeresult($result);

    if (!
$report_data)
    {
        
get_error(26);
    }

    
$forum_id = (int) ($report_data['forum_id']) ? $report_data['forum_id'] : $forum_id;
    
$topic_id = (int) $report_data['topic_id'];

    
$sql 'SELECT *
        FROM ' 
FORUMS_TABLE '
        WHERE forum_id = ' 
$forum_id;
    
$result $db->sql_query($sql);
    
$forum_data $db->sql_fetchrow($result);
    
$db->sql_freeresult($result);

    if (!
$forum_data)
    {
        
get_error(3);
    }

    
// Check required permissions
    
$acl_check_ary = array('f_list' => 'POST_NOT_EXIST''f_read' => 'USER_CANNOT_READ''f_report' => 'USER_CANNOT_REPORT');

    foreach (
$acl_check_ary as $acl => $error)
    {
        if (!
$auth->acl_get($acl$forum_id))
        {
            
get_error(2);
        }
    }
    unset(
$acl_check_ary);

    if (
$report_data['post_reported'])
    {
        
$result = new xmlrpcval(array('result' => new xmlrpcval(true'boolean')), 'struct');
        return new 
xmlrpcresp($result);
    }
    
    
$sql 'SELECT *
        FROM ' 
REPORTS_REASONS_TABLE "
        WHERE reason_id = 
$reason_id";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$db->sql_freeresult($result);

    if (!
$row || (!$report_text && strtolower($row['reason_title']) == 'other'))
    {
        
get_error(1);
    }

    
$sql_ary = array(
        
'reason_id'     => (int) $reason_id,
        
'post_id'       => $post_id,
        
'pm_id'         => $pm_id,
        
'user_id'       => (int) $user->data['user_id'],
        
'user_notify'   => (int) $user_notify,
        
'report_closed' => 0,
        
'report_time'   => (int) time(),
        
'report_text'   => (string) $report_text
    
);

    
$sql 'INSERT INTO ' REPORTS_TABLE ' ' $db->sql_build_array('INSERT'$sql_ary);
    
$db->sql_query($sql);
    
$report_id $db->sql_nextid();

    
$sql 'UPDATE ' POSTS_TABLE '
        SET post_reported = 1
        WHERE post_id = ' 
$post_id;
    
$db->sql_query($sql);

    if (!
$report_data['topic_reported'])
    {
        
$sql 'UPDATE ' TOPICS_TABLE '
            SET topic_reported = 1
            WHERE topic_id = ' 
$report_data['topic_id'] . '
                OR topic_moved_id = ' 
$report_data['topic_id'];
        
$db->sql_query($sql);
    }

    
$result = new xmlrpcval(array('result' => new xmlrpcval(true'boolean')), 'struct');
    return new 
xmlrpcresp($result);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0033 ]--