Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
opt
›
alt
›
python38
›
lib64
›
python3.8
›
test
›
ziptestdata
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ exe_with_zip
← Back
#!/bin/bash INTERPRETER_UNDER_TEST="$1" if [[ ! -x "${INTERPRETER_UNDER_TEST}" ]]; then echo "Interpreter must be the command line argument." exit 4 fi EXECUTABLE="$0" exec "${INTERPRETER_UNDER_TEST}" -E - <<END_OF_PYTHON import os import zipfile namespace = {} filename = os.environ['EXECUTABLE'] print(f'Opening {filename} as a zipfile.') with zipfile.ZipFile(filename, mode='r') as exe_zip: for file_info in exe_zip.infolist(): data = exe_zip.read(file_info) exec(data, namespace, namespace) break # Only use the first file in the archive. print('Favorite number in executable:', namespace["FAVORITE_NUMBER"]) ### Archive contents will be appended after this file. ### END_OF_PYTHON PK \*OI_?SE E testdata_module_inside_zip.pyUT �{w]��w]ux � � # Test data file to be stored within a zip file. FAVORITE_NUMBER = 5 PK \*OI_?SE E �� testdata_module_inside_zip.pyUT �{w]ux � � PK c �
💻
System Info
Current path
/opt/alt/python38/lib64/python3.8/test/ziptestdata
Contents
1 folders, 5 files
Disk free
100.88 GB
PHP version
8.3.30
🚀
Quick Actions
📍 Script location
🌐 Web root
🗑️ Temp
📁 /opt/alt/python38/lib64/python3.8/test/ziptestdata
⚡ Nexus File Manager • 6 items