SHARE
TWEET

Untitled

a guest Aug 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. while True
  4. do
  5.  
  6.     if [ ! -e "password.txt" ]
  7.     then
  8.         python trans.py `ls | grep -oE ".*\.png"`
  9.  
  10.  
  11.         password=`gocr -c "abcdefghijklmnopqrstuvwxyz" res.png | tr "_" "g" | tr [:upper:] [:lower:] | tr -d " " | tr -d "\n"`
  12.  
  13.         if [ ${password:0:1} == "y" ]
  14.         then
  15.             password=${password:1:${#password}}${password:0:1}
  16.         fi
  17.         printf "password = $password\n"
  18.         printf $password > password.txt
  19.     fi
  20.  
  21.     unzip -P `cat password.txt` `ls | grep -oE ".*\.zip"` || exit
  22.  
  23.     rm *.zip *.png *.txt
  24.  
  25.     folder=`find . -mindepth 1 -maxdepth 1 -type d`
  26.     cp $folder/*.* . 2>/dev/null
  27.     rm -r $folder
  28.  
  29. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top