Skip to content

Instantly share code, notes, and snippets.

@Hoyasumii
Created November 14, 2025 13:05
Show Gist options
  • Select an option

  • Save Hoyasumii/dc54e28a7261ec4452a6073e61610aca to your computer and use it in GitHub Desktop.

Select an option

Save Hoyasumii/dc54e28a7261ec4452a6073e61610aca to your computer and use it in GitHub Desktop.
Decompile C# Libs
import os
import sys
entry_dir = sys.argv[1]
output_dir = sys.argv[2]
dlls = [item for item in os.listdir(entry_dir) if item.endswith(".dll")]
for dll in dlls:
# ilspycmd -p -o ./{output}/{dll without .dll} ./{entry_dir}/{dll}
os.system(f"ilspycmd -p -o ./{output_dir}/{dll.split('.')[0]} ./{entry_dir}/{dll}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment