Skip to content

Instantly share code, notes, and snippets.

@akeeton
Created December 26, 2019 20:44
Show Gist options
  • Save akeeton/84ee158e15727080c2d4508af4943ce2 to your computer and use it in GitHub Desktop.
Save akeeton/84ee158e15727080c2d4508af4943ce2 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -u
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <input directory> <output directory>"
exit
fi
scriptdir="$(dirname "$0")"
indir=$(realpath "$1")
outdir=$(realpath "$2")
echo "Absolute script directory: '$scriptdir'"
echo "Absolute input directory: '$indir'"
echo "Absolute output directory: '$outdir'"
pushd "$scriptdir"
dotnet ./de4dot.dll -r "$indir" -ro "$outdir" -fpdb --dont-rename --preserve-tokens --preserve-table all,-pd --keep-types
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment