OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
python311
/
bin
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/16/2024 08:50:23 PM
rwxr-xr-x
📄
2to3
110 bytes
06/23/2025 03:47:39 PM
rwxr-xr-x
📁
__pycache__
-
05/08/2024 06:43:06 PM
rwxr-xr-x
📄
chardetect
235 bytes
05/08/2024 06:42:09 PM
rwxr-xr-x
📄
easy_install
244 bytes
05/08/2024 06:41:49 PM
rwxr-xr-x
📄
easy_install-3.11
244 bytes
05/08/2024 06:41:49 PM
rwxr-xr-x
📄
jp.py
1.67 KB
05/08/2024 06:43:06 PM
rwxr-xr-x
📄
markdown-it
234 bytes
05/08/2024 06:42:35 PM
rwxr-xr-x
📄
msgfmt3.11.py
7.43 KB
06/03/2025 06:38:25 PM
rwxr-xr-x
📄
msgfmt3.py
7.43 KB
06/03/2025 06:38:25 PM
rwxr-xr-x
📄
pathfix.py
6.64 KB
06/03/2025 06:38:25 PM
rwxr-xr-x
📄
pip
662 bytes
11/13/2023 10:00:32 PM
rwxr-xr-x
📄
pip-3
662 bytes
11/13/2023 10:00:32 PM
rwxr-xr-x
📄
pip-3.11
662 bytes
11/13/2023 10:00:32 PM
rwxr-xr-x
📄
pip3
662 bytes
11/13/2023 10:00:32 PM
rwxr-xr-x
📄
pip3.11
662 bytes
11/13/2023 10:00:32 PM
rwxr-xr-x
📄
pydoc3
93 bytes
06/23/2025 03:47:39 PM
rwxr-xr-x
📄
pydoc3.11
93 bytes
06/23/2025 03:47:39 PM
rwxr-xr-x
📄
pygettext3.11.py
23.67 KB
06/03/2025 06:38:25 PM
rwxr-xr-x
📄
pygettext3.py
23.67 KB
06/03/2025 06:38:25 PM
rwxr-xr-x
📄
pygmentize
229 bytes
05/08/2024 06:42:35 PM
rwxr-xr-x
📄
pyroute2-cli
227 bytes
05/08/2024 06:42:21 PM
rwxr-xr-x
📄
pyroute2-dhcp-client
231 bytes
05/08/2024 06:42:21 PM
rwxr-xr-x
📄
pyroute2-test-platform
240 bytes
05/08/2024 06:42:21 PM
rwxr-xr-x
📄
python3
15.59 KB
06/23/2025 03:48:27 PM
rwxr-xr-x
📄
python3-config
173 bytes
06/23/2025 03:47:41 PM
rwxr-xr-x
📄
python3.11
15.59 KB
06/23/2025 03:48:27 PM
rwxr-xr-x
📄
python3.11-config
173 bytes
06/23/2025 03:47:41 PM
rwxr-xr-x
📄
python3.11-x86_64-config
3.37 KB
06/23/2025 03:30:08 PM
rwxr-xr-x
📄
ss2
236 bytes
05/08/2024 06:42:21 PM
rwxr-xr-x
📄
tabulate
223 bytes
05/08/2024 06:42:40 PM
rwxr-xr-x
📄
typer
222 bytes
05/08/2024 06:42:36 PM
rwxr-xr-x
Editing: jp.py
Close
#!/opt/alt/python311/bin/python3 import sys import json import argparse from pprint import pformat import jmespath from jmespath import exceptions def main(): parser = argparse.ArgumentParser() parser.add_argument('expression') parser.add_argument('-f', '--filename', help=('The filename containing the input data. ' 'If a filename is not given then data is ' 'read from stdin.')) parser.add_argument('--ast', action='store_true', help=('Pretty print the AST, do not search the data.')) args = parser.parse_args() expression = args.expression if args.ast: # Only print the AST expression = jmespath.compile(args.expression) sys.stdout.write(pformat(expression.parsed)) sys.stdout.write('\n') return 0 if args.filename: with open(args.filename, 'r') as f: data = json.load(f) else: data = sys.stdin.read() data = json.loads(data) try: sys.stdout.write(json.dumps( jmespath.search(expression, data), indent=4, ensure_ascii=False)) sys.stdout.write('\n') except exceptions.ArityError as e: sys.stderr.write("invalid-arity: %s\n" % e) return 1 except exceptions.JMESPathTypeError as e: sys.stderr.write("invalid-type: %s\n" % e) return 1 except exceptions.UnknownFunctionError as e: sys.stderr.write("unknown-function: %s\n" % e) return 1 except exceptions.ParseError as e: sys.stderr.write("syntax-error: %s\n" % e) return 1 if __name__ == '__main__': sys.exit(main())