shell bypass 403

UnknownSec Shell

: /usr/lib64/python2.7/ [ drwxr-xr-x ]

name : dumbdbm.pyo
�
zfc@swdZddlZddlZddlZddlZejZdZ	e
Zdejfd��YZ
ddd�ZdS(s�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')

i����Nit	_DatabasecBs�eZeZeZdd�Zd�Zd�ZeZd�Zd�Z	d�Z
d�Zd�Zd	�Z
d
�Zd�Zd�Zd
�ZeZd�Zd�ZeZd�ZRS(tccCs�||_|dk|_|tjd|_|tjd|_|tjd|_d|_yt	|jd�}Wn<t
k
r�t	|jd��}|j|j�WdQXnX|j�|j
�dS(Ntrtdirtdattbaktw(t_modet	_readonlyt_ostextsept_dirfilet_datfilet_bakfiletNonet_indext_opentIOErrort_chmodtcloset_update(tselftfilebasenametmodetflagtf((s/usr/lib64/python2.7/dumbdbm.pyt__init__0s		

cCs�i|_yt|j�}Wntk
r<|j|_nVXt|_|�Dx<|D]4}|j�}tj	|�\}}||j|<qTWWdQXdS(N(
RRRRRt	_modifiedtFalsetrstript_asttliteral_eval(RRtlinetkeytpos_and_siz_pair((s/usr/lib64/python2.7/dumbdbm.pyRPs	
	
c	Cs�|jdks|jrdSy|jj|j�Wn|jjk
rMnXy|jj|j|j�Wn|jjk
r�nX|j	|jd��N}|j
|j�x4|jj�D]#\}}|jd||f�q�WWdQXdS(NRs%r, %r
(
RRRR	tunlinkR
terrortrenameRRRt	iteritemstwrite(RRR!R"((s/usr/lib64/python2.7/dumbdbm.pyt_commitascCsN|j|\}}t|jd��#}|j|�|j|�}WdQX|S(Ntrb(RRRtseektread(RR!tpostsizRR((s/usr/lib64/python2.7/dumbdbm.pyt__getitem__ys

cCs�t|jd��g}|jdd�t|j��}|tdtt}|jd||�|}|j|�WdQX|t|�fS(Nsrb+iiis(RRR*tintttellt
_BLOCKSIZER'tlen(RtvalRR,tnpos((s/usr/lib64/python2.7/dumbdbm.pyt_addval�scCsEt|jd��!}|j|�|j|�WdQX|t|�fS(Nsrb+(RRR*R'R2(RR,R3R((s/usr/lib64/python2.7/dumbdbm.pyt_setval�s
cCsS||j|<t|jd��.}|j|j�|jd||f�WdQXdS(Ntas%r, %r
(RRRRR'(RR!R"R((s/usr/lib64/python2.7/dumbdbm.pyt_addkey�s
cCs�t|�td�ko)t|�kns:td�nt|_||jkrn|j||j|��n{|j|\}}|tdt}t|�tdt}||kr�|j	||�|j|<n|j|�|j|<dS(Ntskeys and values must be stringsi(
ttypet	TypeErrortTrueRRR8R5R1R2R6(RR!R3R,R-t	oldblockst	newblocks((s/usr/lib64/python2.7/dumbdbm.pyt__setitem__�s.	cCs!t|_|j|=|j�dS(N(R<RRR((RR!((s/usr/lib64/python2.7/dumbdbm.pyt__delitem__�s	
cCs
|jj�S(N(Rtkeys(R((s/usr/lib64/python2.7/dumbdbm.pyRA�scCs
||jkS(N(R(RR!((s/usr/lib64/python2.7/dumbdbm.pythas_key�scCs
||jkS(N(R(RR!((s/usr/lib64/python2.7/dumbdbm.pyt__contains__�scCs
|jj�S(N(Rtiterkeys(R((s/usr/lib64/python2.7/dumbdbm.pyRD�scCs
t|j�S(N(R2R(R((s/usr/lib64/python2.7/dumbdbm.pyt__len__�scCs4z|j�Wdd|_|_|_|_XdS(N(R(RRRRR
(R((s/usr/lib64/python2.7/dumbdbm.pyR�scCs/t|jd�r+|jj||j�ndS(Ntchmod(thasattrR	RFR(Rtfile((s/usr/lib64/python2.7/dumbdbm.pyR�s(t__name__t
__module__R	RRRR(tsyncR.R5R6R8R?R@RARBRCRDt__iter__RERt__del__R(((s/usr/lib64/python2.7/dumbdbm.pyR#s*
 									
						i�cCsOy tjd�}tj|�Wntk
r3nX||@}t|||�S(s�Open the database file, filename, and return corresponding object.

    The flag argument, used to control how the database is opened in the
    other DBM implementations, is ignored in the dumbdbm module; the
    database is always opened for update, and will be created if it does
    not exist.

    The optional mode argument is the UNIX mode of the file, used only when
    the database has to be created.  It defaults to octal code 0666 (and
    will be modified by the prevailing umask).

    i(R	tumasktAttributeErrorR(RHRRtum((s/usr/lib64/python2.7/dumbdbm.pytopen�s
(t__doc__tastRtosR	t__builtin__tUserDictRQRR1RR$t	DictMixinRR(((s/usr/lib64/python2.7/dumbdbm.pyt<module>s	�

© 2025 UnknownSec
Web Design for Beginners | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar
Web Design for Beginners

Web Design for Beginners

in Design
Created by Linda Anderson
+2
5 Users are following this upcoming course
Course Published
This course was published already and you can check the main course
Course
Web Design for Beginners
in Design
4.25
1:45 Hours
8 Jul 2021
₹11.80

What you will learn?

Create any website layout you can imagine

Support any device size with Responsive (mobile-friendly) Design

Add tasteful animations and effects with CSS3

Course description

You can launch a new career in web development today by learning HTML & CSS. You don't need a computer science degree or expensive software. All you need is a computer, a bit of time, a lot of determination, and a teacher you trust. I've taught HTML and CSS to countless coworkers and held training sessions for fortune 100 companies. I am that teacher you can trust. 


Don't limit yourself by creating websites with some cheesy “site-builder" tool. This course teaches you how to take 100% control over your webpages by using the same concepts that every professional website is created with.


This course does not assume any prior experience. We start at square one and learn together bit by bit. By the end of the course you will have created (by hand) a website that looks great on phones, tablets, laptops, and desktops alike.


In the summer of 2020 the course has received a new section where we push our website live up onto the web using the free GitHub Pages service; this means you'll be able to share a link to what you've created with your friends, family, colleagues and the world!

Requirements

No prerequisite knowledge required

No special software required

Comments (0)

Report course

Please describe about the report short and clearly.

Share

Share course with your friends