Advertisement
widhisec

[Bash] termux-ap

Mar 12th, 2019
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. #!/bin/bash
  2. # widhisec | jangan recode hargai pembuatnya
  3. check(){
  4. echo "pasang termux api baru jalankan tools ini"
  5. echo "termux api ada di playstore"
  6. }
  7. wifx(){
  8. read -p "ON OR OFF {?}/Y/T => " up
  9. if [[ $up == "Y" ]]; then
  10. termux-wifi-enable true
  11. fi
  12. case $up in
  13. T)
  14. termux-wifi-enable false
  15. ;;
  16. esac
  17. }
  18. azw(){
  19. termux-tts-engines | grep "label"
  20. }
  21. njirz(){
  22. Gaa=`termux-wifi-connectioninfo | tr '{}' "\n"`
  23. printf "$Gaa"
  24. }
  25. aaa(){
  26. Ga=$(termux-battery-status | jq -r .percentage)
  27. Gaz=`termux-battery-status | jq -r .status`
  28. printf "status : %s"$Gaz
  29. printf "\njumlah battrey : %s"$Ga
  30. }
  31. ha(){
  32. termux-contact-list | gawk '{print $2}'
  33. }
  34. esms(){
  35. bad=`termux-sms-list | awk '{print $2}'`
  36. printf "$bad"
  37. }
  38. BanNer(){
  39. printf "
  40. \t ================================
  41. \t < CREATE BY \033[0;34mWIDHISEC >
  42. \t [\033[0;32mVERSION : 1.1]
  43. \t powered by ExPloiT_ID
  44. \t ================================
  45. "
  46. }
  47. njr(){
  48. termux-telephony-deviceinfo | tr '{}' "\n" | tr ',' "\n"
  49. }
  50. g3tmenu(){
  51. #ajgg
  52. BanNer
  53. check
  54. printf "\t[*] SILAHKAN PILIH NOMORNYA\n"
  55. echo -e "\t(1).BATTRE STATUS | Get the status of the device battery"
  56. echo -e "\t(2).SMS LIST | List sms messages"
  57. echo -e "\t(3).WIFI ENABLE | Toggle Wi-Fi On/Off"
  58. echo -e "\t(4).WIFI SCAN | Get information about the last wifi scan."
  59. echo -e "\t(5).CONTACT LIST | DUMP LIST ALL CONTACTS"
  60. echo -e "\t(6).CALL LOG | DUMP List call log history."
  61. echo -e "\t(7).DEVICE INFO | Get information about the telephony device"
  62. echo -e "\t(8).WALLPAPER | set wallpaper from url resource"
  63. echo -e "\t(9).TORCH | Toggle LED Torch on device"
  64. echo -e "\t(10).TTS ENGINES | Get information about the available text-to-speech engines.\n"
  65. echo -e "\t(11).MEDIA PLAYER | play musik"
  66. echo -e "\t(12).VIBRATE | vibrate the device."
  67. echo -e "\t(13).INFO "
  68. echo -e "\t(00).EXIT"
  69. echo -n " [*] => "; read nox
  70. if [[ $nox == "11" ]]; then
  71. for (( ; ; )); do
  72. echo "1.PLAY MUSIK"
  73. echo "2.STOP MUSIK"
  74. echo pesan : tekan ctrl c untuk keluar!
  75. read -p ":" gazs
  76. done
  77. case $gazs in
  78. 1)
  79. read -p "NAMA FILE : " file
  80. termux-media-player play $file
  81. ;;
  82. 2)
  83. read -p "STOP MUSIK (Y/N) : " stopz
  84. termux-media-player stop $stopz
  85. esac
  86. fi
  87. if [[ $nox == "8" ]]; then
  88. read -p "URL FOTO : " url
  89. termux-wallpaper -u $url
  90. elif [[ $nox == "9" ]]; then
  91. while [ true ]; do
  92. echo pesan : tekan ctrl c untuk keluar
  93. read -p "ON OR OFF {?}/Y/T => " up
  94. case $up in
  95. T)
  96. termux-torch off
  97. ;;
  98. Y)
  99. termux-torch on
  100. ;;
  101. esac
  102. done
  103. elif [[ $nox == "13" ]]; then
  104. printf "JIKA ADA ERORR\n"
  105. printf "SILAHKAN INSTALL TERMUX API DI PLAY STORE \n"
  106. printf "TERIMA KASIH SUDAH PAKAI TOOL SAYA \n"
  107. printf "SUPPORT ME ON INSTAGRAM : @widhisec \n"
  108. printf "GABUNG GROUP ON TELEGRAM : https://t.me/termuxid\n"
  109. fi
  110. }
  111. g3tmenu
  112. function gblk(){
  113. if [[ $nox == "1" ]]; then
  114. aaa
  115. elif [[ $nox == "2" ]]; then
  116. esms
  117. elif [[ $nox == "4" ]]; then
  118. njirz
  119. elif [[ $nox == "6" ]]; then
  120. termux-call-log | grep 'name'
  121. termux-call-log | grep "phone_number"
  122. elif [[ $nox == "10" ]]; then
  123. azw
  124. elif [[ $nox == "12" ]]; then
  125. termux-vibrate
  126. fi
  127. }
  128. case $nox in
  129. 3)
  130. wifx
  131. ;;
  132. 5)
  133. ha
  134. ;;
  135. 7)
  136. njr
  137. ;;
  138. esac
  139. gblk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement