This is a simple Python program that compares two Java war files.
- Extracted the given war file.
- Decompiled those class files into a Java file.
- Compare those two directory files and show the difference.
- Install Python: Make sure Python is installed on your system. You can download it from python.org.
- Install unzip: Ensure the unzip utility is installed on your system. On Windows, you can use a tool like unzip via a package manager like Chocolatey. PS CMD: choco install unzip
- Install diff: The diff command is typically available on Unix-like systems. On Windows, you can use tools like Cygwin or Git Bash which include the diff command. PS CMD: choco install diffutils
- Download CFR (Class File Reader): Download the CFR jar file from CFR's official website. Place the jar file in a known location.
python compare_java_war_directories.py <path_to_war1> <path_to_output1> <path_to_war2> <path_to_output2> <path_to_cfr_jar>