Hacked By AnonymousFox
�
�܋f � �n � d dl Z d dlZd dlZd dlmZ dd ej d� � ej dej � � feffZdd ej d � � ej d
� � ffdd ej d
� � fdd ej d� � ffZ dd ej d� � fdd ej d� � ffZ
d� Zd� Zd� Z
dS )� N)�partial�aws_secret_keyzAmazon Web Services secret keyz(\'|")[A-Za-z0-9\\\+]{40}(\'|")z(\b|_)AWS(\b|_)�diffzPossible SCM diff in codez^<<<<<<< .*$z^>>>>>>> .*$�ssh_rsa_private_keyzPossible SSH private keyz+^-{5}(BEGIN|END)\s+RSA\s+PRIVATE\s+KEY-{5}$�ssh_rsa_public_keyzPossible SSH public keyz7^ssh-rsa\s+AAAA[0-9A-Za-z+/]+[=]{0,3}\s*([^@]+@[^@]+)?$�passwordzPossible hardcoded passwordzA(\b|[A-Z0-9_]*_)PASSWORD(_[A-Z0-9_]*|\b)\s*=\s(\'|")[^\'"]+(\'|")�secretzPossible hardcoded secret keyz?(\b|[A-Z0-9_]*_)SECRET(_[A-Z0-9_]*|\b)\s*=\s(\'|")[^\'"]+(\'|")c � � � g }|D ]w}t |� � dk r|\ }}}t }n|\ }}}}t |t t f� � s|g} |� fd�|D � � � � r|� ||f� � �x|S )N� c �: �� g | ]}|� �� � ��S � )�search)�.0�regexp�lines ��]/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/dodgy/checks.py�
<listcomp>zcheck_line.<locals>.<listcomp>@ s% �� �;�;�;�����t�$�$�;�;�;� )�len�any�
isinstance�list�tuple�append)r �
check_list�messages�tup�key�msg�regexps�conds ` r �
check_liner"