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.28.160
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 /
json /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
14.4
KB
-rw-r--r--
__init__.pyc
13.63
KB
-rw-r--r--
__init__.pyo
13.63
KB
-rw-r--r--
decoder.py
13.43
KB
-rw-r--r--
decoder.pyc
11.81
KB
-rw-r--r--
decoder.pyo
11.81
KB
-rw-r--r--
encoder.py
16
KB
-rw-r--r--
encoder.pyc
13.39
KB
-rw-r--r--
encoder.pyo
13.39
KB
-rw-r--r--
scanner.py
2.24
KB
-rw-r--r--
scanner.pyc
2.18
KB
-rw-r--r--
scanner.pyo
2.18
KB
-rw-r--r--
tool.py
997
B
-rw-r--r--
tool.pyc
1.26
KB
-rw-r--r--
tool.pyo
1.26
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tool.py
r"""Command-line tool to validate and pretty-print JSON Usage:: $ echo '{"json":"obj"}' | python -m json.tool { "json": "obj" } $ echo '{ 1.2:3.4}' | python -m json.tool Expecting property name enclosed in double quotes: line 1 column 3 (char 2) """ import sys import json def main(): if len(sys.argv) == 1: infile = sys.stdin outfile = sys.stdout elif len(sys.argv) == 2: infile = open(sys.argv[1], 'rb') outfile = sys.stdout elif len(sys.argv) == 3: infile = open(sys.argv[1], 'rb') outfile = open(sys.argv[2], 'wb') else: raise SystemExit(sys.argv[0] + " [infile [outfile]]") with infile: try: obj = json.load(infile) except ValueError, e: raise SystemExit(e) with outfile: json.dump(obj, outfile, sort_keys=True, indent=4, separators=(',', ': ')) outfile.write('\n') if __name__ == '__main__': main()
Close