Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3.10 /
dbm /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
dumb.cpython-310.pyc
7.67
KB
-rw-r--r--
gnu.cpython-310.pyc
326
B
-rw-r--r--
__init__.cpython-310.pyc
4.14
KB
-rw-r--r--
ndbm.cpython-310.pyc
325
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : dumb.cpython-310.pyc
o � i- � @ sV d Z ddlZddlZddlZddlZddgZ dZ eZG dd� dej j�Zdd d�ZdS )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') � N�error�openi c @ s� e Zd ZeZeZd+dd�Zdd� 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 ),� _Database�cc C sL || _ |dk| _|d | _|d | _|d | _d | _| �|� | �|� d S )N�rz.dirz.datz.bak)�_mode� _readonly�_dirfile�_datfile�_bakfile�_index�_create�_update)�self�filebasename�mode�flag� 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 )N�nr �Latin-1��encoding�r r �w) r r r �_os�remove�OSError�_ior �_chmod�close)r r �filename�fr r r r I s"