Hum


SUBMITTED BY: Sidokassh

DATE: March 26, 2022, 2:16 p.m.

FORMAT: Text only

SIZE: 4.2 kB

HITS: 290

  1. #!/bin/bash
  2. clear
  3. #----☢-☠-✌--@miuisshplusbr-✌--☠-☢-------#
  4. source ShellBot2.sh
  5. ShellBot.init --token "5174120928:AAEZvKXBy8iHqU9i6y47l11sRhV1EFTU5cU" --monitor --flush
  6. ShellBot.username
  7. # - Funcao menu
  8. menu() {
  9. local msg
  10. msg="=×=×=×=×=×=×=×=×=×=×=×=×=×=×=×=×=\n"
  11. msg+="<b>--♾️☁-SEJAM BEM VINDOS--@SIDOKASSH_VENDAS_BOT-♾️-</b>\n"
  12. msg+="=×=×=×=×=×=×=×=×=×=×=×=×=×=×=×=×=\n\n"
  13. msg+="<b>VENDEDOR OFICIAL DO SIDOKA SSH</b>\n"
  14. msg+="<b>VALOR:</b> 15 MENSAL\n"
  15. msg+="<b>PIX EMAIL: </b>c59ad9b6-66ad-4fcf-9599-3d6a1d8f9dc5\n"
  16. msg+="<b>APERTE EM ✘“COMPRAR ACESSO”✘ E ENVIE SEU COMPROVANTE @SIDOKA_SSH</b>\n\n"
  17. msg+="⚠️<b>APENAS CHAME SE REALMENTE FOR COMPRAR @SIDOKA_SSH </b>🚀\n"
  18. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  19. --text "$(echo -e $msg)" \
  20. --reply_markup "$keyboard1" \
  21. --parse_mode html
  22. return 0
  23. }
  24. # - funcao criar ssh
  25. criarteste() {
  26. [[ $(grep -wc ${callback_query_from_id} lista) != '0' ]] && {
  27. ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
  28. --text "VC JA CRIOU @SIDOKASSH_VENDAS_BOT SSH HOJE !"
  29. return 0
  30. }
  31. usuario=$(echo lite$(( RANDOM% + 99999 )))
  32. senha=$((RANDOM% + 99999))
  33. limite='1'
  34. tempo='1'
  35. tuserdate=$(date '+%C%y/%m/%d' -d " +1 days")
  36. useradd -M -N -s /bin/false $usuario -e $tuserdate > /dev/null 2>&1
  37. (echo "$senha";echo "$senha") | passwd $usuario > /dev/null 2>&1
  38. echo "$senha" > /etc/SSHPlus/senha/$usuario
  39. echo "$usuario $limite" >> /root/usuarios.db
  40. echo "#!/bin/bash
  41. pkill -f "$usuario"
  42. userdel --force $usuario
  43. grep -v ^$usuario[[:space:]] /root/usuarios.db > /tmp/ph ; cat /tmp/ph > /root/usuarios.db
  44. rm /etc/SSHPlus/senha/$usuario > /dev/null 2>&1
  45. rm -rf /etc/SSHPlus/userteste/$usuario.sh" > /etc/SSHPlus/userteste/$usuario.sh
  46. chmod +x /etc/SSHPlus/userteste/$usuario.sh
  47. at -f /etc/SSHPlus/userteste/$usuario.sh now + $tempo hour > /dev/null 2>&1
  48. echo ${callback_query_from_id} >> lista
  49. # - ENVIA O SSH
  50. ShellBot.sendMessage --chat_id ${callback_query_message_chat_id} \
  51. --text "$(echo -e "✅ ✘<b>Criado com sucesso</b>✘ ✅\n\nIP: $(cat /etc/IP)\nUSUARIO: <code>$usuario</code>\nSENHA: <code>$senha</code>\n\n⏳ Expira em: $tempo Hora")" \
  52. --parse_mode html
  53. return 0
  54. }
  55. #enviar app
  56. enviarapp() {
  57. ShellBot.answerCallbackQuery --callback_query_id ${callback_query_id[$id]} \
  58. --text "♻️✉ ENVIANDO APLICATIVO, AGUARDE.✘⚡.."
  59. ShellBot.sendDocument --chat_id ${callback_query_message_chat_id} \
  60. --document "@/root/base.apk" \
  61. return 0
  62. }
  63. #informacoes usuario
  64. infouser () {
  65. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  66. --text "$(echo -e "Nome: ${message_from_first_name[$(ShellBot.ListUpdates)]}\nUser: @${message_from_username[$(ShellBot.ListUpdates)]:-null}")\nID: ${message_from_id[$(ShellBot.ListUpdates)]} " \
  67. --parse_mode html
  68. return 0
  69. }
  70. unset botao1
  71. botao1=''
  72. ShellBot.InlineKeyboardButton --button 'botao1' --line 1 --text '♻️⌛GERA TESTE @miuisshplusbr⌛♻️' --callback_data 'gerarssh'
  73. ShellBot.InlineKeyboardButton --button 'botao1' --line 2 --text '🔰BAIXAR APLICATIVO⚡https://t.me/apksidokassh/2🔰' --callback_data 'appenviar'
  74. ShellBot.InlineKeyboardButton --button 'botao1' --line 3 --text '💲✉💲COMPRAR ACESSO💲✉ @SIDOKA_SSH💲' --callback_data '3' --url 'https://t.me/SIDOKA_SSH'
  75. ShellBot.regHandleFunction --function criarteste --callback_data gerarssh
  76. ShellBot.regHandleFunction --function enviarapp --callback_data appenviar
  77. unset keyboard1
  78. keyboard1="$(ShellBot.InlineKeyboardMarkup -b 'botao1')"
  79. while :; do
  80. [[ "$(date +%d)" != "$(cat RESET)" ]] && {
  81. echo $(date +%d) > RESET
  82. echo ' ' > lista
  83. }
  84. ShellBot.getUpdates --limit 100 --offset $(ShellBot.OffsetNext) --timeout 30
  85. for id in $(ShellBot.ListUpdates); do
  86. (
  87. ShellBot.watchHandle --callback_data ${callback_query_data[$id]}
  88. comando=(${message_text[$id]})
  89. [[ "${comando[0]}" = "/menu" || "${comando[0]}" = "/start" ]] && menu
  90. [[ "${comando[0]}" = "/id" ]] && infouser
  91. ) &
  92. done
  93. done

comments powered by Disqus