Advertisement
opexxx

didfailsetup.sh

Mar 26th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.25 KB | None | 0 0
  1. #!/bin/bash
  2. set -e  # abort on error
  3.  
  4. export didfail=~/didfail
  5. if [ ! -d $didfail ]; then mkdir $didfail; fi
  6. if [ ! -d $didfail/epicc ]; then mkdir $didfail/epicc; fi
  7. if [ ! -d $didfail/workspace ]; then mkdir $didfail/workspace; fi
  8. cd $didfail
  9.  
  10. #sudo apt-get update
  11. sudo apt-get install openjdk-7-jdk openjdk-7-jre-headless
  12. sudo apt-get install gcc-4.6-multilib lib32stdc++6 zlib1g-dev:i386
  13.  
  14. wget -nc http://siis.cse.psu.edu/epicc/downloads/epicc-0.1.tgz
  15. wget -nc https://github.com/dare-android/platform_dalvik/releases/download/dare-1.1.0/dare-1.1.0-linux.tgz
  16. wget -nc http://www.cs.cmu.edu/~wklieber/didfail/didfail.zip
  17. wget -nc http://www.cs.cmu.edu/~wklieber/didfail/workspace.tar.bz2
  18. wget -nc http://www.cs.cmu.edu/~wklieber/didfail/platform-16.zip
  19. wget -nc http://www.cs.cmu.edu/~wklieber/didfail/toyapps-2014-04-28.zip
  20.  
  21. tar xzf epicc-0.1.tgz -C epicc
  22. tar xzf dare-1.1.0-linux.tgz
  23. unzip -q -d $didfail/cert didfail.zip
  24. cp cert/paths.distrib.sh cert/paths.local.sh
  25. #cp cert/dare.sh $didfail/dare-1.1.0-linux/dare
  26. unzip platform-16.zip
  27. unzip -q toyapps-2014-04-28.zip
  28. tar xjf workspace.tar.bz2 -C workspace
  29.  
  30. echo "To run analysis on provided toy apps:"
  31. echo "    $didfail/cert/run-didfail.sh $didfail/toyapps/out/ $didfail/toyapps/*.apk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement