A C++ tool to inspect and extract contents from PyInstaller archives.
- Opens and reads PyInstaller archive files.
- Detects PyInstaller version (2.0 or 2.1+).
- Parses and lists files from the archive.
- Windows
- C++17
- CMake
- Clone the repo:
git clone https://github.com/your_username/PyInstallerArchiveViewer.git cd PyInstallerArchiveViewer
- Build:
-
Build with Visual studio
sh
PyInstallerArchiveViewer.exe path/to/your/archive
#include <iostream>
#include "PyInstArchive.h"
int main(int argc, char* argv[]) {
if (argc != 2) {
std::cerr << "Usage: " << argv[0] << " <path/to/pyinstaller_archive>" << std::endl;
return 1;
}
PyInstArchive archive(argv[1]);
if (!archive.open()) return 1;
if (!archive.checkFile()) {
archive.close();
return 1;
}
if (!archive.getCArchiveInfo()) {
archive.close();
return 1;
}
archive.viewFiles();
archive.close();
return 0;
}