widhisec

terj.sh

Jun 21st, 2021
735
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # auto translate via bash shell
  3. # kode kea begini fix mau di recode
  4. #
  5. hijau=$(tput setaf 2)
  6. translate(){
  7.          aoao=$(curl "https://translate.google.com/m?hl=id&sl=$frm&tl=$toz&ie=UTF-8&prev=_m&q=${o}" --location --silent \
  8.          -H 'authority: translate.google.com'  \
  9.          -H 'pragma: no-cache' \
  10.          -H 'cache-control: no-cache' \
  11.          -H 'upgrade-insecure-requests: 1' \
  12.          -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36' \
  13.          -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' \
  14.          -H 'accept-encoding: gzip, deflate, br' \
  15.          -H 'accept-language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7' --compressed)
  16.    njr=$(echo -e "$aoao" | grep -Po 'class="t0">(\D+)</div>' | cut -d ">" -f2 | cut -d "<" -f1)
  17.   echo -e "[+] Result -> $njr"
  18. }
  19. echo "${hijau}"
  20. cat << "EOF"
  21.            /!_.-_|\      
  22.            `-/_'--'                                
  23.            (_(o)\\\)                              
  24.             (||\\\\;_,                            
  25.              /  _-".----.    AUTHOR : widhisec                      
  26.           ./_-"  /o,--.o\
  27.           /      |o (  ) o|                        
  28.          !__,--.__\o `-'o/   GOOGLE TRANSLATE ==                      
  29.          |_-__--__`----'                          
  30.          __,/\_|\/\,                              
  31.         (   `/_'`X_;        
  32.         `.____)____)
  33. EOF
  34. echo -n "translate -> "; read TRJ
  35. o=$(echo -e "$TRJ" | sed 's/ /+/g')
  36. echo -n "from :"; read frm
  37. echo -n "to :"; read toz
  38. translate
RAW Paste Data