| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/bin/__pycache__/ |
Upload File : |
o
Peg �
@ s� d dl Z d dlmZ d dlmZ dd� ZdZdZee j�dkr%e jd Z ne
d � e� z)ee d
�Zeee� e
de � de e�
� v rSeee� e
de � W dS W dS eys Z ze
d
ee� � e� W Y dZ[dS dZ[w ey� Z ze
d
ee� � e
de � e� W Y dZ[dS dZ[w ey� Z ze
dee�e f � e
d� e� W Y dZ[dS dZ[w ey� Z ze
d
ee� � e� W Y dZ[dS dZ[ww )� N)�ZipFile)�
BadZipFilec C s. | � d| �}t|d�}|�|� |�� d S )N�xl/�wb)�read�open�write�close)�xlsm_zip�filename�data�file� r �C/usr/local/lib/python3.10/dist-packages/../../../bin/vba_extract.py�extract_file s
r zvbaProject.binzvbaProjectSignature.bin� a(
Utility to extract a vbaProject.bin binary from an Excel 2007+ xlsm macro file for insertion into an XlsxWriter file.
If the macros are digitally signed, extracts also a vbaProjectSignature.bin file.
See: https://xlsxwriter.readthedocs.io/working_with_macros.html
Usage: vba_extract file.xlsm
�rz
Extracted: %sr zFile error: %sz.File may not be an Excel xlsm macro file: '%s'zFile error: %s: '%s'z)File may not be an Excel xlsm macro file.)�sys�zipfiler r r �vba_filename�vba_signature_filename�len�argv� xlsm_file�print�exitr
�namelist�IOError�e�str�KeyError� Exceptionr r r r �<module> sN
�
������