Files
SuperVPN/.history/decompile_libs_20251009081546.sh
2025-10-09 09:57:24 +09:00

25 lines
854 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Декомпиляция всех DLL библиотек
DESKTOP_DIR="/home/data/decompile/desktop"
OUTPUT_DIR="/home/data/decompile/output/Libraries"
echo "Декомпилируем библиотеки..."
for dll in "$DESKTOP_DIR"/*.dll; do
if [ -f "$dll" ]; then
filename=$(basename "$dll" .dll)
echo "Декомпилируем $filename..."
# Создаем отдельную папку для каждой библиотеки
mkdir -p "$OUTPUT_DIR/$filename"
# Декомпилируем с созданием проекта
ilspycmd -p --nested-directories -o "$OUTPUT_DIR/$filename" "$dll"
echo "Завершено: $filename"
echo "---"
fi
done
echo "Декомпиляция всех библиотек завершена!"