Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # Star Wars: The Old Republic Password Hash Extractor
- # Used for running the game on Wine.
- #
- # Instructions:
- # Run the launcher and log in.
- # Click play.
- # Run script.
- # Copy the arguments and paste it on PlayOnLinux configuration.
- # Run the hack.
- #
- # Sample Args:
- # 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
- PID=`pidof swtor.exe`
- if [ -z "$PID" ]; then
- echo "No PID found. Exiting."
- zenity --title "SWTOR Arguments" --text "No SWTOR PID found." --info
- exit 1;
- fi
- ALLPID=$PID
- case "$PID" in
- *\ * )
- echo "Invalid PID: $PID."
- found=0
- # look for the proper PID.
- for testpid in $PID
- do
- TESTARG=$(cat "/proc/$testpid/cmdline")
- case "$TESTARG" in
- *username*)
- PID=$testpid
- found=1
- ;;
- *);;
- esac
- done;
- if [ "$found" -eq "0" ];then
- zenity --title "SWTOR Arguments" --text "Too many SWTOR PIDs found. $PID No appropriate PID found." --info &
- exit 1
- fi
- ;;
- *) echo "PID Found is: $PID" ;;
- esac
- ARGPATH="/proc/$PID/cmdline"
- OUTPUT="swtor.exe "
- echo "Commandline Executed is in: $ARGPATH"
- WRITE=0
- for i in $(cat $ARGPATH | xargs -0 echo); do
- #printf "cmd: %s \n" "$i";
- if [ "$WRITE" -eq "1" ];then
- OUTPUT="$OUTPUT $i"
- fi
- # This effectively skips the swotr.exe part.
- if [ "$WRITE" -eq "0" ];then
- case "$i" in
- *swtor.exe*) WRITE=1 ;;
- *) ;;
- esac
- fi
- done;
- echo "RECONSTRUCTED OUTPUT: $OUTPUT"
- zenity --title "SWTOR Arguments" --text "Copy/Paste these arguments: $OUTPUT" --info --width 800 &
- for testpid in $ALLPID
- do
- echo "Killing all stray SWTOR processes..."
- kill -9 $testpid
- done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement