403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/pickle2db.cpython-36.pyc
3

x2_��-@sdZddlZyddlZWnek
r0dZYnXyddljZWnek
rXdZYnXyddljZ	Wnek
r�dZ	YnXyddljZ
Wnek
r�dZ
YnXddlZyddlZWnek
r�ddlZYnXej
dZdd�Zdd�Zedk�rejeej
dd���dS)	aM
Synopsis: %(prog)s [-h|-b|-g|-r|-a|-d] [ picklefile ] dbfile

Read the given picklefile as a series of key/value pairs and write to a new
database.  If the database already exists, any contents are deleted.  The
optional flags indicate the type of the output database:

    -a - open using dbm (open any supported format)
    -b - open as bsddb btree file
    -d - open as dbm.ndbm file
    -g - open as dbm.gnu file
    -h - open as bsddb hash file
    -r - open as bsddb recno file

The default is hash.  If a pickle file is named it is opened for read
access.  If no pickle file is named, the pickle input is read from standard
input.

Note that recno databases can only contain integer keys, so you can't dump a
hash or btree database using db2pickle.py and reconstitute it to a recno
database with %(prog)s unless your keys are integers.

�NcCstjjtt��dS)N)�sys�stderr�write�__doc__�globals�rr�</opt/alt/python36/lib64/python3.6/Tools/scripts/pickle2db.py�usage4sr	c#Csy"tj|dddddddg�\}}Wntjk
r>t�dSXt|�d	ksXt|�d
krbt�dSt|�dkr~tj}|d	}nDyt|d	d�}Wn(tk
r�tjj	d|d	�dSX|d}d}�xj|D�]`\}}|d"k�ry
t
j}Wn"tk
�rtjj	d�dSXq�|d#k�rLy
t
j
}Wn"tk
�rHtjj	d�dSXq�|d$k�r�y
t
j}Wn"tk
�r�tjj	d�dSXq�|d%k�r�y
tj}Wn"tk
�r�tjj	d�dSXq�|d&k�r�y
tj}Wn"tk
�r�tjj	d�dSXq�|d'kr�y
tj}Wq�tk
�r.tjj	d�dSXq�W|dk�rjt
dk�rdtjj	d�tjj	d�dSt
j}y||d�}Wn4t
jk
�r�tjj	d |�tjj	d!�dSXxt|j��D]}||=�q�Wx:ytj|�\}	}
Wntk
�r�PYnX|
||	<�q�W|j�|j�d	S)(NZhbrdag�hashZbtreeZrecno�dbm�anydbm�gdbm�r��rbzUnable to open %s
�-h�--hashzbsddb module unavailable.
�-b�--btree�-r�--recno�-a�--anydbmzdbm module unavailable.
�-g�--gdbmzdbm.gnu module unavailable.
�-d�--dbmzdbm.ndbm module unavailable.
zbsddb module unavailable - zmust specify dbtype.
�czUnable to open %s.  z&Check for format or version mismatch.
)rr)rr)rr)rr)rr)rr)�getopt�errorr	�lenr�stdin�open�IOErrorrr�bsddbZhashopen�AttributeErrorZbtopenZrnopenrr
r�list�keys�pickle�load�EOFError�close)�argsZoptsZpfileZdbfileZdbopenZopt�argZdb�k�key�valrrr�main7s�















r1�__main__r)rrr$�ImportErrorZdbm.ndbmZndbmrZdbm.gnuZgnur
rrr(�argv�progr	r1�__name__�exitrrrr�<module>s6




[


Youez - 2016 - github.com/yon3zu
LinuXploit