4294966784
     M�Õa–Ü4ý()¨‰P@ŠÛŒ»q–ÔÅ£Ô      MFile not found.
     OˆËÒƒ k¾Ô 
�    Oa
    ´iù  ã                   @   s4  G d d„ de ƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZG d
d„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ de ƒZG dd„ deƒZG dd„ deƒZG d d!„ d!eƒZG d"d#„ d#eƒZG d$d%„ d%eƒZd&S )'c                   @   s   e Zd ZdS )ÚDistutilsErrorN©Ú__name__Ú
__module__Ú__qualname__© r   r   ú(/usr/lib64/python3.9/distutils/errors.pyr      s   r   c                   @   s   e Zd ZdS )ÚDistutilsModuleErrorNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )ÚDistutilsClassErrorNr   r   r   r   r   r	      s   r	   c                   @   s   e Zd ZdS )ÚDistutilsGetoptErrorNr   r   r   r   r   r
      s   r
   c                   @   s   e Zd ZdS )ÚDistutilsArgErrorNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )ÚDistutilsFileErrorNr   r   r   r   r   r   $   s   r   c                   @   s   e Zd ZdS )ÚDistutilsOptionErrorNr   r   r   r   r   r   *   s   r   c                   @   s   e Zd ZdS )ÚDistutilsSetupErrorNr   r   r   r   r   r   3   s   r   c                   @   s   e Zd ZdS )ÚDistutilsPlatformErrorNr   r   r   r   r   r   8   s   r   c                   @   s   e Zd ZdS )ÚDistutilsExecErrorNr   r   r   r   r   r   >   s   r   c                   @   s   e Zd ZdS )ÚDistutilsInternalErrorNr   r   r   r   r   r   C   s   r   c                   @   s   e Zd ZdS )ÚDistutilsTemplateErrorNr   r   r   r   r   r   H   s   r   c                   @   s   e Zd ZdS )ÚDistutilsByteCompileErrorNr   r   r   r   r   r   K   s   r   c                   @   s   e Zd ZdS )ÚCCompilerErrorNr   r   r   r   r   r   O   s   r   c                   @   s   e Zd ZdS )ÚPreprocessErrorNr   r   r   r   r   r   R   s   r   c                   @   s   e Zd ZdS )ÚCompileErrorNr   r   r   r   r   r   U   s   r   c                   @   s   e Zd ZdS )ÚLibErrorNr   r   r   r   r   r   X   s   r   c                   @   s   e Zd ZdS )Ú	LinkErrorNr   r   r   r   r   r   \   s   r   c                   @   s   e Zd ZdS )ÚUnknownFileErrorNr   r   r   r   r   r   `   s   r   N)Ú	Exceptionr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Ú<module>   s$   	     Q�Ö¾Ô      QFile not found.
     S�Ö¾Ô       SFile not found.
       S     U�Ö¾Ô       UFile not found.
       U     WˆÊÒƒ^¾Ô œ    W#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/killmysqlwildcard               Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;
use warnings;

use Cpanel::Config::Users       ();
use Cpanel::MysqlUtils::Connect ();
use Cpanel::MysqlUtils::Quote   ();
use Cpanel::Logger              ();
use Cpanel::DB::Utils           ();

my $logger = Cpanel::Logger->new();

my @cpusers = Cpanel::Config::Users::getcpusers();
my $dbh;

if ( my $obj = eval { Cpanel::MysqlUtils::Connect->new() } ) {
    $dbh = $obj->db_handle();

}
else {
    die "Failed to connect to MySQL: $@";
}

foreach my $cpuser (@cpusers) {
    my $dbowner_name = Cpanel::DB::Utils::username_to_dbowner($cpuser);

    my $safe_name = Cpanel::MysqlUtils::Quote::quote("$dbowner_name\\_%");

    $logger->info("Removing mysql wildcard grant from $cpuser");

    $dbh->do("DELETE FROM mysql.db WHERE db = $safe_name;");
}

$