Guest User

SWTOR Password Hash Extraction Script

a guest
Dec 1st, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.45 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # Star Wars: The Old Republic Password Hash Extractor
  4. # Used for running the game on Wine.
  5. #
  6. # Instructions:
  7. # Run the launcher and log in.
  8. # Click play.
  9. # Run script.
  10. # Copy the arguments and paste it on PlayOnLinux configuration.
  11. # Run the hack.
  12. #
  13.  
  14. # Sample Args:
  15. # C:\Program Files (x86)\Electronic Arts\BioWare\Star Wars - The Old Republic\swtor\RetailClient\swtor.exe -set username sampleuser -set password somelonghashxxyy== -set platform gamepad.swtor.com:443 -set environment swtor -set lang en-us -set torsets main,en-us @swtor_dual.icb
  16.  
  17. PID=`pidof swtor.exe`
  18.  
  19. if [ -z "$PID" ]; then
  20.     echo "No PID found.  Exiting."
  21.     exit 1;
  22. fi
  23.  
  24. case "$PID" in
  25.     *\ * )
  26.           echo "Invalid PID: $PID."
  27.           exit 1
  28.          ;;
  29.     *) echo "PID Found is: $PID" ;;
  30. esac
  31.  
  32.  
  33. ARGPATH="/proc/$PID/cmdline"
  34.  
  35. OUTPUT="swtor.exe "
  36.  
  37. echo "Commandline Executed is in: $ARGPATH"
  38.  
  39. WRITE=0
  40.  
  41. for i in $(cat $ARGPATH | xargs -0 echo); do
  42.     #printf "cmd: %s \n" "$i";
  43.     if [ "$WRITE" -eq "1" ];then
  44.         OUTPUT="$OUTPUT $i"
  45.     fi
  46.  
  47.     # This effectively skips the swotr.exe part.
  48.     if [ "$WRITE" -eq "0" ];then
  49.         case "$i" in
  50.             *swtor.exe*) WRITE=1 ;;
  51.             *) ;;
  52.         esac
  53.     fi
  54.  
  55. done;
  56.  
  57. echo "RECONSTRUCTED OUTPUT: $OUTPUT"
  58.  
  59. zenity --title "SWTOR Arguments" --text "Copy/Paste these arguments: $OUTPUT" --info --width 800 &
  60.  
  61. echo "Killing stray SWTOR process..."
  62. kill -9 $PID
Advertisement
Add Comment
Please, Sign In to add comment