⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
dbm
/
__pycache__
/
View File Name :
dumb.cpython-310.pyc
o }5h- @ sV d Z ddlZddlZddlZddlZddgZ dZ eZG dd dej jZdd dZdS )a A dumb and slow but simple dbm clone. For database spam, spam.dir contains the index (a text file), spam.bak *may* contain a backup of the index (also a text file), while spam.dat contains the data (a binary file). XXX TO DO: - seems to contain a bug when updating... - reclaim free space (currently, space once occupied by deleted or expanded items is never reused) - support concurrent access (currently, if two processes take turns making updates, they can mess up the index) - support efficient access to large databases (currently, the whole index is read when the database is opened, and some updates rewrite the whole index) - support opening for read-only (flag = 'm') Nerroropeni c @ s e Zd ZeZeZd+ddZdd Zdd Zdd ZeZ d d Z dd Zdd Zdd Z dd Zdd Zdd Zdd Zdd Zdd Zdd ZeZd d! Zd"d# ZeZd$d% Zd&d' Zd(d) Zd*S ), _Databasecc C sL || _ |dk| _|d | _|d | _|d | _d | _| | | | d S )Nrz.dirz.datz.bak)_mode _readonly_dirfile_datfile_bakfile_index_create_update)selffilebasenamemodeflag r /usr/lib/python3.10/dbm/dumb.py__init__0 s z_Database.__init__c C s |dkr| j | j| jfD ]}zt| W q ty Y qw ztj| j ddd}W n0 tyZ |dvr6 tj| j ddd}| | j W d Y d S 1 sRw Y Y d S w | d S )Nnr Latin-1encodingr r w) r r r _osremoveOSError_ior _chmodclose)r r filenamefr r r r I s" &z_Database._createc C s d| _ i | _ztj| jddd}W n ty# |dvr d| _ Y d S w |# |D ]}| }t|\}}| d}|| j|<