403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/UbuntuDrivers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/UbuntuDrivers/__pycache__/kerneldetection.cpython-314.pyc
+
�w�io?��h�^RIt^RIt^RIt^RIHtHtHt^RIHtH	t	^RI
t
^RIt!RR]4t
R#)�N)�Optional�Tuple�List)�Popen�PIPEc��a�]tRt^!toRV3RlRlltV3RlRltV3RlRltV3RlR	ltV3R
lRltV3RlR
lt	V3RlRlt
V3RlRltV3RlRltV3RlRlt
RV3RlRlltRtVtR#)�KernelDetectionNc�H<�V^8�dQhRS[S[P,RR/#)��cache�returnN)r�apt_pkg�Cache)�format�
__classdict__s"��?/usr/lib/python3/dist-packages/UbuntuDrivers/kerneldetection.py�__annotate__�KernelDetection.__annotate__#s(���A�A�h�w�}�}�5�A��A�c�0�V'd$Wn\P!V4VnR#\P!4\P
!4\P!R4Vn\P!VP4VnR#�N)�	apt_cacher�DepCache�apt_depcache�init_config�init_systemr)�selfrs&&r�__init__�KernelDetection.__init__#s\���"�N� '� 0� 0�� 7�D�����!����!�$�]�]�4�0�D�N� '� 0� 0���� @�D�rc�,<�V^8�dQhRS[RS[RS[/#)r�term1�term2r
)�str�bool)rrs"�rrr-s"���&�&�c�&�#�&�$�&rc���\P!R4pVPV4pVPV4pV'dWV'dOVP^4:RVP^4:2pVP^4:RVP^4:2p\P
!RV:RV:24RV:RV:2p\
VPR44pVP4VP'*#)z(.+)-([0-9]+)-(.+)�-z
Comparing z with zdpkg --compare-versions z gt � )
�re�compile�match�group�logging�debugr�split�communicate�
returncode)rr!r"�pattern�match1�match2�command�processs&&&     r�_is_greater_than� KernelDetection._is_greater_than-s����*�*�1�2�����u�%�����u�%���f�%�|�|�A�����Q��@�E�%�|�|�A�����Q��@�E��
�
��u�=�>�8=�u�E����
�
�c�*�+�������%�%�%�%rc�<<�V^8�dQhRS[S[,RS[RS[/#)r�
candidates�imager
)rr#)rrs"�rrr=s&�����T�#�Y��s��s�rc��\P!R4pVPV4pRpV'dVP^4pV#)z2linux-image-([0-9]+\.[0-9]+\.[0-9]+)-([0-9]+)-(.+)�)r(r)r*r+)rr9r:r1r*�flavours&&&   r�_get_linux_flavour�"KernelDetection._get_linux_flavour=s9���*�*�R�S���
�
�e�$������k�k�!�n�G��rc�J<�V^8�dQhRS[PRS[S[,/#)r�pkgr
)r�Packagerr#)rrs"�rrrFs#���	�	����	�X�c�]�	rc���VPpVPR4'd=RV9d6VP'g"VPP	V4'dV#R#)�linux-image�extraN)�name�
startswith�current_verr�marked_install)rrA�package_names&& r�
_filter_cache�KernelDetection._filter_cacheFsL���x�x���#�#�M�2�2��|�+�����D�$5�$5�$D�$D�S�$I�$I���rc�&<�V^8�dQhRS[RS[/#)r�targetr
�r#)rrs"�rrrQs���Q�Q�S�Q�S�Qrc�
�RpRpRpRVR8XdRMR,p\P!R4p\VPVPP
4F}pV'gK
VP
V4pV'gK(VP^4p	VP^4:RVP^4:2p
VPW�4'gKyT
pT	pK	V'EdVR8XdVPRR4pMTpVPV,PUu.uFFpVPPPV4'gK0VPPNKH	p
pV
'EdrRpV
F�pVPV,pVPV4'dmV'dcVP'g"VPP!V4'd.VPVR4VPVR48�dTpK�K�K�K�K�	VR8Xd�VPV,PUu.uFFpVPPPR4'gK0VPPNKH	p
pV
'dTVP%W�4pRpV
F%pVPR	V,4'gK#TpM	V'gV
^,pV#TpV#uupi \"dEK�i;iuupi)
z7Get the linux headers, linux-image or linux metapackager<zlinux-%s�headersr:z,linux-image-(?:unsigned-)?(.+)-([0-9]+)-(.+)r&�metazlinux-z	linux-%s-)r(r)�maprKr�packagesr*r+r6�replace�rev_depends_list�
parent_pkgrFrGrHrrI�KeyErrorr>)rrN�metapackage�
image_package�version�prefixr1rJr*�current_package�current_version�target_package�dep�reverse_dependencies�	candidate�
candidate_pkgr=�
linux_metarRs&&                 r�_get_linux_metapackage�&KernelDetection._get_linux_metapackageQs������
����F�i�,?�y�W�M���*�*�K�L���� 2� 2�D�N�N�4K�4K�L�L��|��
�
�l�3���5�&+�k�k�!�n�O�16���Q�����Q��&P�O��,�,�_�F�F�"1��(7�
�M��7���"�!.�!6�!6�w�	�!J��!.�� �>�>�.�9�J�J�$�J�C��>�>�&�&�1�1�&�9�$����#�#�J�
!�$�$�#�!��!5�I�!�(,���y�(A�
�%�0�0��8�8� -�$1�$=�$=�$=�'+�'8�'8�'G�'G�
�'V�'V�!*� 1� 1�&�"� =�)�1�1�&�"�=�!>�+4�K�!>�(W�!.�9�	"6�&�V�#�$(�>�>�+�#>�#O�#O�,�#O�C��>�>�.�.�9�9�(�C�,����+�+�#O�)�,�
,�"&�"9�"9�0�#��&(�
�$8�D�#���{�g�/F�G�G�-1�
� %�	%9� *�*>�q�*A�K���+5�K����i$��4$�!� �!��
,s<�-K(�K(�=1K-�/K-� K-�")K-�=-L�/L�-K=�<K=c� <�V^8�dQhRS[/#�rr
rO)rrs"�rrr�s���6�6�s�6rc�$�VPR4#)�5Get the linux headers for the newest_kernel installedrQ�re�rs&r�get_linux_headers_metapackage�-KernelDetection.get_linux_headers_metapackage�s���*�*�9�5�5rc� <�V^8�dQhRS[/#rhrO)rrs"�rrr�s���4�4�S�4rc�$�VPR4#)rjr:rkrls&r�get_linux_image_metapackage�+KernelDetection.get_linux_image_metapackage�s���*�*�7�3�3rc� <�V^8�dQhRS[/#rhrO)rrs"�rrr�s���3�3�s�3rc�$�VPR4#)z9Get the linux metapackage for the newest_kernel installedrRrkrls&r�get_linux_metapackage�%KernelDetection.get_linux_metapackage�s���*�*�6�2�2rc�0<�V^8�dQhRS[S[,/#rh)rr#)rrs"�rrr�s�����8�C�=�rc���VP4pRpVPPVPV,4pV'diVPPR4FIpVF@wrVpVP
R4'gKVP4PRR4pKG	KK	V# \d"\P!RT,4R#i;i)N�DependsrD�linux-image-r<z#No dependencies can be found for %s)rqr�get_candidate_verr�depends_list_str�getrG�striprUrXr,�error)r�linux_image_meta�
linux_versionrb�dep_list�dep_name�dep_ver�dep_ops&       r�get_linux_version�!KernelDetection.get_linux_version�s����;�;�=���
�	��)�)�;�;����/�0��I�� )� :� :� >� >�y� I�H�5=�1��6�#�.�.�}�=�=�,4�N�N�,<�,D�,D�^�UW�,X�M�!�6>�!J�$����	��M�M�?�CS�T�U��	�s�3B2�:B2�)B2�2(C�Cc�N<�V^8�dQhRS[S[S[S[S[,S[3,/#rh)rr$r#r)rrs"�rrr�s)���M3�M3�E�$��X�c�]�D�2P�,Q�M3rc���\P!R4\P!4Pp\P!RV4\
P!RV4'g\P!R4RVRR3#.pVPPF�pVP'gKVPPR4'gK:\
P!R	VP4'dKcVPV4\P!R
VP4K�	VEF�p\P!RVP4VPPV4pV'g$\P!RVP4KkVPPV4'g$\P!R
VP4K�VP P#R.4F�pVF�pVP$PPR4'gK0\
P!RVP$P4'gKcVP$PP'R4^,p\P!RVVP4RWR3uuu#	K�	EK�	\P!R4RVRR3#)aVCheck if running kernel is outdated.

Returns a tuple (is_outdated, running_version, latest_version, requires_dkms):
    is_outdated: True if the kernel is outdated
    running_version: version string of the running kernel
    latest_version: version string of the latest available kernel
    requires_dkms: True if DKMS modules are required
z&Checking if running kernel is outdatedzRunning kernel version: %sz\d+\.\d+\.\d+-\d+zERunning kernel version does not match expected format - DKMS requiredFNTrzz=linux-image-(\d+\.\d+\.\d+-\d+|\w*unsigned-\d+\.\d+\.\d+-\d+)z&Found installed kernel metapackage: %sz#Checking metapackage %s for updateszNo candidate version for %szNo update available for %sryzlinux-image-\d+\.\d+\.\d+-\d+z#Found new kernel version %s from %szNo kernel updates found)r,r-�os�uname�releaser(r*rrTrHrFrG�appendrr{�
is_upgradable�depends_listr}�
target_pkgr.)	r�running_version�	meta_pkgsrA�meta_pkgrbr`�dep_or�latest_versions	&        r�is_running_kernel_outdated�*KernelDetection.is_running_kernel_outdated�s>��	�
�
�>�?��(�(�*�,�,���
�
�2�O�D�
�x�x�,�o�>�>��M�M�W�
��/�4��5�5��	��>�>�*�*�C��?�?�?���8�8�&�&�~�6�6���x�x�P����������S�!��M�M�B�C�H�H�M�+�"�H��M�M�?����O��)�)�;�;�H�E�I���
�
�;�X�]�]�K���$�$�2�2�8�<�<��
�
�:�H�M�M�J��!�-�-�1�1�)�R�@��!�F�!�,�,�1�1�<�<�^�L�L� ��8�8�8�&�:K�:K�:P�:P���!�%+�%6�%6�%;�%;�%A�%A�.�%Q�RS�%T�N��M�M�=�&� �
�
�� ��%�G�G�"�A�"�@	�
�
�/�0��o�t�U�2�2rc�&<�V^8�dQhRS[RS[/#)r�include_dkmsr
)r$)rrs"�rrrs���L�L�d�L�t�Lrc�b�VP4wr#rEV'Ed)V'Eg\RR.\\R7pVP4wrxVP	R4P4p	VP	R4P4p
RV	9gRV	9d%\
RV,\PR7R	#R
V	9gRV	9d%\
RV,\PR7R	#R
V
9d%\
RV,\PR7R	#\
RV,\PR7R	#R#V'd+V'd#\
RVRVR2\PR7R# \d+p\P!R\T44Rp?L�Rp?ii;i)z�Print a warning message if the kernel needs updating.

Returns:
    should_exit: True if the caller should exit (e.g. DKMS required but not included)
�mokutilz
--sb-state)�stdout�stderrzutf-8zsecureboot enabledzsecure boot enableduQYour running kernel (%s) requires DKMS modules, and you have Secure Boot enabled. To proceed, ensure you have access to your machine’s UEFI menu and have the rights to enroll a Machine Owner Key (MOK), then re-run ubuntu-drivers with --include-dkms. This will install the DKMS modules, then prompt you to enroll the new MOK and reboot.)�fileTzsecureboot disabledzsecure boot disabledaYour running kernel (%s) requires DKMS modules. You have Secure Boot disabled, but if you enable it in the future, you will need to sign or reinstall these DKMS modules for them to work. If you would like to continue, please re-run ubuntu-drivers with --include-dkms.z'this system doesn't support secure bootzaYour running kernel (%s) requires DKMS modules. Please use --include-dkms if you want to proceed.z)Could not determine Secure Boot state: %sNa4Your running kernel (%s) requires DKMS modules, and ubuntu-drivers was unable to determine if Secure Boot is enabled. If you have SB enabled, you will need to enroll a MOK to proceed, which will require access to your UEFI menu and administrative privileges. Please use --include-dkms if you want to proceed.FzWarning: Your running kernel (z) is outdated. A newer kernel (zn) is available in the Ubuntu archives. Please run 'sudo apt update && sudo apt upgrade' to update your system.)
r�rrr/�decode�lower�print�sysr��	Exceptionr,�warningr#)rr��is_outdated�running�latest�
requires_dkmsr5�output_bytes�	err_bytes�output�err�es&&          r�get_kernel_update_warning�)KernelDetection.get_kernel_update_warnings���7;�6U�6U�6W�3��f��=��<�)Y�#�Y��$=�d�SW�X�G�.5�.A�.A�.C�+�L�".�"5�"5�g�">�"D�"D�"F�F�(�/�/��8�>�>�@�C�,��6�0�F�:��P�
&�&�"%���� $�-��7�1�V�;��o�&�	&�
"%���
� $�B�c�I��+�-4�5�!$����
 $�
J��=�@G�G��������6��0��	�:#�#)�(�+Z�[��Z�Z�	
���3!�Y��O�O�$O�QT�UV�QW�X�X��Y�s$�BE9�0E9�3)E9�9F.� F)�)F.)rrr)F)�__name__�
__module__�__qualname__�__firstlineno__rr6r>rKrermrqrur�r�r��__static_attributes__�__classdictcell__)rs@rr	r	!s�����A�A�&�&� ��	�	�Q�Q�f6�6�4�4�3�3���<M3�M3�^L�L�Lrr	)rr,r(�typingrrr�
subprocessrrr�r��objectr	�rr�<module>r�s-��.��	�(�(�"�	�
�H�f�Hr

Youez - 2016 - github.com/yon3zu
LinuXploit