
    |*&i                     2    S SK Jr  S SKJr   " S S\5      rg)    )BaseHandler)VulnerabilityIntelligencec                   "    \ rS rSrS\4S jrSrg)GitHubPoCHandler   vuln_intelligencec                 z    [        U R                  S SS9nU H  nUR                  SS5      nUR                  SS5      nUR                  S5      nUR                  S/ 5      nUR                  S	5      nU(       a.  UR                  R	                  U R                  S
5      UUS.5        UR                  R	                  U R                  SU S35      UUS.5        UR                  R                  U/5        UR                  R                  U5        M     g ! [         a  n	[        SU	 35         S n	A	g S n	A	ff = f)Nc                 &    U R                  SS5      $ )Ngithub_starsr   )get)entrys    W/home/kali/cveseeker/services/vulnerability_intelligence/handlers/github_poc_handler.py<lambda>(GitHubPoCHandler.apply.<locals>.<lambda>   s    eiiXY>Z    T)keyreverse
github_urlzN/Agithub_dategithub_descriptiongithub_tagsr   z
GitHub PoC)sourcetextdatezGitHub - PoC Exploit [u    ⭐])r   urlr   z/[!] Error applying GitHub JSON PoC enrichment: )sorteddatar   descriptionsappendenrich_source_nameurlsreference_urlsupdatetags	Exceptionprint)
selfr   sorted_datar   r   r   r   r   r   es
             r   applyGitHubPoCHandler.apply   s1   	I 0ZdhiK$"YY|U;
#iiu=%*YY/C%D"#iir:$yy8%%2299"&"9"9,"G 2 +;  "&&--"558N|n\a6bc%'/  "0077E!&&--k:+ %.  	ICA3GHH	Is   DD 
D:"D55D: N)__name__
__module____qualname____firstlineno__r   r*   __static_attributes__r,   r   r   r   r      s    I'@ Ir   r   N)9services.vulnerability_intelligence.handlers.base_handlerr   !models.vulnerability_intelligencer   r   r,   r   r   <module>r4      s    Q GI{ Ir   