ADMbot.sh 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. #!/bin/bash
  2. exit 1
  3. #19/12/2019
  4. SCPdir="/etc/newadm" && [[ ! -d ${SCPdir} ]] && exit 1
  5. SCPusr="${SCPdir}/ger-user" && [[ ! -d ${SCPusr} ]] && mkdir ${SCPusr}
  6. SCPfrm="/etc/ger-frm" && [[ ! -d ${SCPfrm} ]] && mkdir ${SCPfrm}
  7. SCPinst="/etc/ger-inst" && [[ ! -d ${SCPfrm} ]] && mkdir ${SCPfrm}
  8. SCPidioma="${SCPdir}/idioma" && [[ ! -e ${SCPidioma} ]] && touch ${SCPidioma}
  9. # VERIFICANDO CONDIÇÕES PRIMARIAS
  10. [[ $(dpkg --get-selections|grep -w "jq"|head -1) ]] || apt-get install jq -y &>/dev/null
  11. [[ ! -e "/bin/ShellBot.sh" ]] && wget -O /bin/ShellBot.sh https://raw.githubusercontent.com/shellscriptx/shellbot/master/ShellBot.sh &> /dev/null
  12. [[ -e /etc/texto-bot ]] && rm /etc/texto-bot
  13. #VARIAVEL ENTRADA TOKEN
  14. msg -ama " BOT DE TELEGRAM Mod By MEX \033[1;31m"
  15. msg -bar
  16. if [[ $1 = "id" || -z $(ps aux |grep -v grep |grep -w "ADMbot.sh"|grep dmS|awk '{print $2}') ]]; then
  17. [[ -z $2 ]] && echo -ne "\033[1;37m$(fun_trans "Digite el Token del bot"): " && read TOKEN || TOKEN="$2"
  18. [[ -z "$TOKEN" ]] && exit 1 #SEM TOKEN, SEM BOT
  19. IDIOMA="$(cat ${SCPidioma})" && [[ -z $IDIOMA ]] && IDIOMA="es" #ARGUMENTO 2 (IDIOMA)
  20. [[ -z $3 ]] && echo -ne "\033[1;37m$(fun_trans "Digite su Usuario"): " && read USERLIB || USERLIB="$3"
  21. [[ -z "$USERLIB" ]] && exit 1 #USUARIO
  22. [[ -z $4 ]] && echo -ne "\033[1;37m$(fun_trans "Digite su Contraseña"): " && read PASSLIB || PASSLIB="$4"
  23. [[ -z "$PASSLIB" ]] && exit 1 #SENHA
  24. [[ -z $2 ]] && [[ -z $3 ]] && [[ -z $4 ]] && {
  25. screen -dmS telebot ${SCPfrm}/ADMbot.sh id "$TOKEN" "$USERLIB" "$PASSLIB"
  26. msg -bar
  27. exit 0
  28. }
  29. else
  30. kill -9 $(ps aux |grep -v grep |grep -w "ADMbot.sh"|grep dmS|awk '{print $2}') && echo -e "\033[1;37m$(fun_trans "Bot Cerrado Con Exito")"
  31. msg -bar
  32. exit 0
  33. fi
  34. LINE='================================='
  35. USRdatabase="/etc/ADMuser"
  36. #IMPORTANDO API
  37. source ShellBot.sh
  38. ShellBot.init --token "$TOKEN"
  39. ShellBot.username
  40. # SUPRIME ERROS
  41. exec 2>/dev/null
  42. # SISTEMA DE PIDS
  43. dropbear_pids () {
  44. unset pids
  45. port_dropbear=`ps aux | grep dropbear | awk NR==1 | awk '{print $17;}'`
  46. log=/var/log/auth.log
  47. loginsukses='Password auth succeeded'
  48. [[ -z $port_dropbear ]] && return 1
  49. for port in `echo $port_dropbear`; do
  50. for pidx in $(ps ax |grep dropbear |grep "$port" |awk -F" " '{print $1}'); do
  51. pids="${pids}$pidx\n"
  52. done
  53. done
  54. for pid in `echo -e "$pids"`; do
  55. pidlogs=`grep $pid $log |grep "$loginsukses" |awk -F" " '{print $3}'`
  56. i=0
  57. for pidend in $pidlogs; do
  58. let i++
  59. done
  60. if [[ $pidend ]]; then
  61. login=$(grep $pid $log |grep "$pidend" |grep "$loginsukses")
  62. PID=$pid
  63. user=`echo $login |awk -F" " '{print $10}' | sed -r "s/'//g"`
  64. waktu=$(echo $login |awk -F" " '{print $2"-"$1,$3}')
  65. [[ -z $user ]] && continue
  66. echo "$user|$PID|$waktu"
  67. fi
  68. done
  69. }
  70. openvpn_pids () {
  71. #nome|#loguin|#rcv|#snd|#time
  72. byte () {
  73. while read B dummy; do
  74. [[ "$B" -lt 1024 ]] && echo "${B} bytes" && break
  75. KB=$(((B+512)/1024))
  76. [[ "$KB" -lt 1024 ]] && echo "${KB} Kb" && break
  77. MB=$(((KB+512)/1024))
  78. [[ "$MB" -lt 1024 ]] && echo "${MB} Mb" && break
  79. GB=$(((MB+512)/1024))
  80. [[ "$GB" -lt 1024 ]] && echo "${GB} Gb" && break
  81. echo $(((GB+512)/1024)) terabytes
  82. done
  83. }
  84. for user in $(mostrar_usuarios); do
  85. [[ ! $(sed -n "/^${user},/p" /etc/openvpn/openvpn-status.log) ]] && continue
  86. i=0
  87. unset RECIVED
  88. unset SEND
  89. unset HOUR
  90. while read line; do
  91. IDLOCAL=$(echo ${line}|cut -d',' -f2)
  92. RECIVED+="$(echo ${line}|cut -d',' -f3)+"
  93. SEND+="$(echo ${line}|cut -d',' -f4)+"
  94. DATESEC=$(date +%s --date="$(echo ${line}|cut -d',' -f5|cut -d' ' -f1,2,3,4)")
  95. TIMEON="$(($(date +%s)-${DATESEC}))"
  96. MIN=$(($TIMEON/60)) && SEC=$(($TIMEON-$MIN*60)) && HOR=$(($MIN/60)) && MIN=$(($MIN-$HOR*60))
  97. HOUR+="${HOR}h:${MIN}m:${SEC}s\n"
  98. let i++
  99. done <<< "$(sed -n "/^${user},/p" /etc/openvpn/openvpn-status.log)"
  100. RECIVED=$(echo $(echo ${RECIVED}0|bc)|byte)
  101. SEND=$(echo $(echo ${SEND}0|bc)|byte)
  102. HOUR=$(echo -e $HOUR|sort -n|tail -1)
  103. echo -e "$user|$i|$RECIVED|$SEND|$HOUR"
  104. done
  105. }
  106. # ADICIONA USUARIO
  107. add_user () {
  108. #nome senha Dias limite
  109. [[ $(cat /etc/passwd |grep $1: |grep -vi [a-z]$1 |grep -v [0-9]$1 > /dev/null) ]] && return 1
  110. valid=$(date '+%C%y-%m-%d' -d " +$3 days") && datexp=$(date "+%F" -d " + $3 days")
  111. useradd -M -s /bin/false $1 -e ${valid} > /dev/null 2>&1 || return 1
  112. (echo $2; echo $2)|passwd $1 2>/dev/null || {
  113. userdel --force $1
  114. return 1
  115. }
  116. [[ -e ${USRdatabase} ]] && {
  117. newbase=$(cat ${USRdatabase}|grep -w -v "$1")
  118. echo "$1|$2|${datexp}|$4" > ${USRdatabase}
  119. for value in `echo ${newbase}`; do
  120. echo $value >> ${USRdatabase}
  121. done
  122. } || echo "$1|$2|${datexp}|$4" > ${USRdatabase}
  123. }
  124. # REMOVER USUARIO
  125. rm_user () {
  126. #nome
  127. userdel --force "$1" &>/dev/null || return 1
  128. [[ -e ${USRdatabase} ]] && {
  129. newbase=$(cat ${USRdatabase}|grep -w -v "$1")
  130. rm ${USRdatabase} && touch ${USRdatabase}
  131. for value in `echo ${newbase}`; do
  132. echo $value >> ${USRdatabase}
  133. done
  134. }
  135. }
  136. # LISTA OS USUARIOS CADASTRADOS
  137. mostrar_usuarios () {
  138. for u in `awk -F : '$3 > 900 { print $1 }' /etc/passwd | grep -v "nobody" |grep -vi polkitd |grep -vi system-`; do
  139. echo "$u"
  140. done
  141. }
  142. # DEFINE UM IP
  143. meu_ip () {
  144. if [[ -e /etc/MEUIPADM ]]; then
  145. echo "$(cat /etc/MEUIPADM)"
  146. else
  147. MEU_IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
  148. MEU_IP2=$(wget -qO- ipv4.icanhazip.com)
  149. [[ "$MEU_IP" != "$MEU_IP2" ]] && echo "$MEU_IP2" || echo "$MEU_IP"
  150. echo "$MEU_IP2" > /etc/MEUIPADM
  151. fi
  152. }
  153. # USUARIO BLOCK
  154. blockfun () {
  155. local bot_retorno="$LINE\n"
  156. bot_retorno+="$(fun_trans "USTED NO PUEDE USAR EL BOT")\n"
  157. bot_retorno+="$LINE\n"
  158. bot_retorno+="$(fun_trans "Comandos Bloqueados")\n"
  159. bot_retorno+="$LINE\n"
  160. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  161. --text "$(echo -e $bot_retorno)" \
  162. --parse_mode markdown
  163. return 0
  164. }
  165. # SISTEMA DE LOGUIN
  166. ativarid_fun () {
  167. if [[ ! -z $LIBERADOS ]] && [[ $(echo ${LIBERADOS}|grep -w "$3") ]]; then
  168. local bot_retorno+="$LINE\n"
  169. bot_retorno+="$(fun_trans "ACESSO LIBERADO")\n"
  170. bot_retorno+="$LINE\n"
  171. bot_retorno+="$(fun_trans "Usted ya Puede usar el Bot")\n"
  172. bot_retorno+="$(fun_trans "Dele Buen Uso")\n"
  173. bot_retorno+="$LINE\n"
  174. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  175. --text "$(echo -e $bot_retorno)" \
  176. --parse_mode markdown
  177. return 0
  178. elif [[ $1 = ${USERLIB} ]] && [[ $2 = ${PASSLIB} ]]; then
  179. [[ -z $LIBERADOS ]] && LIBERADOS="${3}" || LIBERADOS="${LIBERADOS} ${3}"
  180. local bot_retorno+="$LINE\n"
  181. bot_retorno+="$(fun_trans "LIBERACION EFECTUADA CON EXITO")\n"
  182. bot_retorno+="$LINE\n"
  183. bot_retorno+="$(fun_trans "Usted ya Puede usar el Bot")\n"
  184. bot_retorno+="$(fun_trans "Dele Buen Uso")\n"
  185. bot_retorno+="$LINE\n"
  186. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  187. --text "$(echo -e $bot_retorno)" \
  188. --parse_mode markdown
  189. return 0
  190. else
  191. local bot_retorno+="$LINE\n"
  192. bot_retorno+="$(fun_trans "USTED NO PUEDE USAR EL BOT")\n"
  193. bot_retorno+="$LINE\n"
  194. bot_retorno+="$(fun_trans "No tiene los permisos de uso")\n"
  195. bot_retorno+="$(fun_trans "Intento de acesso negada")\n"
  196. bot_retorno+="$(fun_trans "Usuario y Contraseña Erroneos")\n"
  197. bot_retorno+="$LINE\n"
  198. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  199. --text "$(echo -e $bot_retorno)" \
  200. --parse_mode markdown
  201. return 0
  202. fi
  203. }
  204. loguin_fun () {
  205. local bot_retorno+="$LINE\n"
  206. bot_retorno+="$(fun_trans "USUARIOS LIBERADOS EN BOT")\n"
  207. bot_retorno+="$LINE\n"
  208. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  209. --text "$(echo -e $bot_retorno)" \
  210. --parse_mode markdown
  211. for lines in $(echo $LIBERADOS); do
  212. local bot_retorno+="$LINE\n"
  213. bot_retorno2+="$(fun_trans "Usuario") ID: $lines\n"
  214. bot_retorno+="$LINE\n"
  215. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  216. --text "$(echo -e $bot_retorno2)" \
  217. --parse_mode markdown
  218. done
  219. return 0
  220. }
  221. # INFORMAÇÕES DA VPS
  222. infovps () {
  223. mine_port () {
  224. unset portas
  225. portas_var=$(lsof -V -i tcp -P -n | grep -v "ESTABLISHED" |grep -v "COMMAND" | grep "LISTEN")
  226. i=0
  227. while read port; do
  228. var1=$(echo $port | awk '{print $1}') && var2=$(echo $port | awk '{print $9}' | awk -F ":" '{print $2}')
  229. [[ "$(echo -e ${portas}|grep "$var1|$var2")" ]] || {
  230. portas+="$var1|$var2\n"
  231. let i++
  232. }
  233. done <<< "$portas_var"
  234. echo -e $portas
  235. }
  236. local bot_retorno="$LINE\n"
  237. bot_retorno+="$(fun_trans "Puertos y Servicos Activos")\n"
  238. bot_retorno+="$LINE\n"
  239. bot_retorno+="IP: $(meu_ip)\n"
  240. while read line; do
  241. local serv=$(echo $line|cut -d'|' -f1)
  242. local port=$(echo $line|cut -d'|' -f2)
  243. bot_retorno+="$(fun_trans "Servicio"): ${serv} $(fun_trans "Puerto"): ${port}\n"
  244. done <<< "$(mine_port)"
  245. bot_retorno+="$LINE\n"
  246. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  247. --text "$(echo -e $bot_retorno)" \
  248. --parse_mode markdown
  249. return 0
  250. }
  251. # AJUDA
  252. ajuda_fun () {
  253. local bot_retorno="$LINE\n"
  254. bot_retorno+="$(fun_trans "Hola Amigo")\n"
  255. bot_retorno+="$(fun_trans "Bienvenido al BOT") Mod By @Kalix1\n"
  256. bot_retorno+="$LINE\n"
  257. bot_retorno+="$(fun_trans "Lista de Comandos Disponibles")\n"
  258. bot_retorno+="$LINE\n"
  259. bot_retorno+="$(fun_trans "COMANDOS")\n"
  260. bot_retorno+="/online ($(fun_trans "usuarios online"))\n"
  261. bot_retorno+="/useradd ($(fun_trans "agregar usuario"))\n"
  262. [[ $(dpkg --get-selections|grep -w "openvpn"|head -1) ]] && [[ -e /etc/openvpn/openvpn-status.log ]] && bot_retorno+="/openadd ($(fun_trans "crear archivo openvpn"))\n"
  263. bot_retorno+="/userdell ($(fun_trans "remover usuario"))\n"
  264. bot_retorno+="/info ($(fun_trans "informacion de usuarios"))\n"
  265. bot_retorno+="/infovps ($(fun_trans "informacion de servidor"))\n"
  266. bot_retorno+="/usuarios ($(fun_trans "usuarios liberados en bot"))\n"
  267. bot_retorno+="/lang ($(fun_trans "Traducir texto"))\n"
  268. bot_retorno+="/scan ($(fun_trans "scan de subdominios"))\n"
  269. bot_retorno+="/gerar ($(fun_trans "generador de payload"))\n"
  270. bot_retorno+="/criptar ($(fun_trans "Codifica y Decodifica un Texto"))\n"
  271. bot_retorno+="/logar ($(fun_trans "Usuario Contraseña") ($(fun_trans "libera el bot"))\n"
  272. bot_retorno+="$LINE\n"
  273. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  274. --text "$(echo -e $bot_retorno)" \
  275. --parse_mode markdown
  276. return 0
  277. }
  278. info_fun () {
  279. if [[ ! -e "${USRdatabase}" ]]; then
  280. local bot_retorno="$LINE\n"
  281. bot_retorno="$(fun_trans "No se ha identificado una base de datos con los usuarios")\n"
  282. bot_retorno="$(fun_trans "Los Usuarios a Seguir No contiene Ninguna Informacion")\n"
  283. bot_retorno+="$LINE\n"
  284. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  285. --text "$(echo -e $bot_retorno)" \
  286. --parse_mode markdown
  287. else
  288. VPSsec=$(date +%s)
  289. local bot_retorno="$LINE\n"
  290. bot_retorno+="$(fun_trans "Usuarios Cadastrados")\n"
  291. bot_retorno+="$LINE\n"
  292. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  293. --text "$(echo -e $bot_retorno)" \
  294. --parse_mode markdown
  295. for user in $(mostrar_usuarios); do
  296. sen=$(cat ${USRdatabase}|grep -w "$user"|cut -d '|' -f2)
  297. [[ -z $sen ]] && sen="???"
  298. DateExp="$(cat ${USRdatabase}|grep -w "${user}"|cut -d'|' -f3)"
  299. if [[ ! -z $DateExp ]]; then
  300. DataSec=$(date +%s --date="$DateExp")
  301. [[ "$VPSsec" -gt "$DataSec" ]] && EXPTIME="${red}[Exp]" || EXPTIME="${gren}[$(($(($DataSec - $VPSsec)) / 86400))]"
  302. else
  303. EXPTIME="???"
  304. fi
  305. limit=$(cat ${USRdatabase}|grep -w "$user"|cut -d '|' -f4)
  306. [[ -z $limit ]] && limit="???"
  307. bot_retorno="$LINE\n"
  308. bot_retorno+="$(fun_trans "Usuario"): $user\n"
  309. bot_retorno+="$(fun_trans "Contraseña"): $sen\n"
  310. bot_retorno+="$(fun_trans "Dias Restantes"): $EXPTIME\n"
  311. bot_retorno+="$(fun_trans "Limite"): $limit\n"
  312. bot_retorno+="$LINE\n"
  313. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  314. --text "$(echo -e $bot_retorno)" \
  315. --parse_mode markdown
  316. done
  317. fi
  318. return 0
  319. }
  320. online_fun () {
  321. MyTIME="${SCPusr}/time-adm"
  322. [[ -e ${MyTIME} ]] && source ${MyTIME} || touch ${MyTIME}
  323. local bot_retorno="$LINE\n"
  324. bot_retorno+="$(fun_trans "Monitor de Usuarios")\n"
  325. bot_retorno+="$LINE\n"
  326. while read user; do
  327. PID="0+"
  328. [[ $(dpkg --get-selections|grep -w "openssh"|head -1) ]] && PID+="$(ps -u $user|grep sshd|wc -l)+"
  329. [[ $(dpkg --get-selections|grep -w "dropbear"|head -1) ]] && PID+="$(dropbear_pids|grep -w "${user}"|wc -l)+"
  330. [[ $(dpkg --get-selections|grep -w "openvpn"|head -1) ]] && [[ -e /etc/openvpn/openvpn-status.log ]] && [[ $(openvpn_pids|grep -w "$user"|cut -d'|' -f2) ]] && PID+="$(openvpn_pids|grep -w "$user"|cut -d'|' -f2)+"
  331. PID+="0"
  332. [[ $(echo $PID|bc) = 0 ]] && continue
  333. TIMEON="${TIMEUS[$user]}"
  334. [[ -z $TIMEON ]] && TIMEON=0
  335. MIN=$(($TIMEON/60))
  336. SEC=$(($TIMEON-$MIN*60))
  337. HOR=$(($MIN/60))
  338. MIN=$(($MIN-$HOR*60))
  339. HOUR="${HOR}h:${MIN}m:${SEC}s"
  340. [[ -z $(cat ${USRdatabase}|grep -w "${user}") ]] && MAXPID="?" || MAXPID="$(cat ${USRdatabase}|grep -w "${user}"|cut -d'|' -f4)"
  341. TOTALPID="$(echo $PID|bc)/$MAXPID"
  342. local IMPRIME="YES"
  343. local bot_retorno+="$LINE\n"
  344. bot_retorno="$(fun_trans "Usuario"): $user\n"
  345. bot_retorno+="$(fun_trans "Conexiones"): $TOTALPID\n"
  346. bot_retorno+="$(fun_trans "Tiempo Total"): $HOUR\n"
  347. bot_retorno+="$LINE\n"
  348. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  349. --text "$(echo -e $bot_retorno)" \
  350. --parse_mode markdown
  351. done <<< "$(mostrar_usuarios)"
  352. [[ -z $IMPRIME ]] && {
  353. local bot_retorno="$LINE\n"
  354. bot_retorno+="$(fun_trans "No hay usuarios en linea")\n"
  355. bot_retorno+="$LINE\n"
  356. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  357. --text "$(echo -e $bot_retorno)" \
  358. --parse_mode markdown
  359. return 0
  360. }
  361. }
  362. useradd_fun () {
  363. error_fun () {
  364. local bot_retorno="$LINE\n"
  365. bot_retorno+="$(fun_trans "MODO DE USO")\n"
  366. bot_retorno+="$LINE\n"
  367. bot_retorno+="useradd $(fun_trans "Usuario Contraseña Dias Limite")\n"
  368. bot_retorno+="$(fun_trans "Ejemplo"):\n"
  369. bot_retorno+='useradd admin admin 30 1\n'
  370. bot_retorno+="$LINE\n"
  371. case $1 in
  372. [1-3]|14)
  373. [[ $1 = 1 ]] && bot_retorno+="$(fun_trans "Usuario Nulo")" && bot_retorno+="$LINE\n"
  374. [[ $1 = 2 ]] && bot_retorno+="$(fun_trans "Usuario Con Nombre Muy Corto")" && bot_retorno+="$LINE\n"
  375. [[ $1 = 3 ]] && bot_retorno+="$(fun_trans "Usuario Con Nombre Muy Grande")" && bot_retorno+="$LINE\n"
  376. [[ $1 = 14 ]] && bot_retorno+="$(fun_trans "Usuario ya Existe")" && bot_retorno+="$LINE\n"
  377. ;;
  378. [4-6])
  379. [[ $1 = 4 ]] && bot_retorno+="$(fun_trans "Contraseña Nula")" && bot_retorno+="$LINE\n"
  380. [[ $1 = 5 ]] && bot_retorno+="$(fun_trans "Contraseña Muy Corta")" && bot_retorno+="$LINE\n"
  381. [[ $1 = 6 ]] && bot_retorno+="$(fun_trans "Contraseña Muy Grande")" && bot_retorno+="$LINE\n"
  382. ;;
  383. [7-9])
  384. [[ $1 = 7 ]] && bot_retorno+="$(fun_trans "Duracion Nula")" && bot_retorno+="$LINE\n"
  385. [[ $1 = 8 ]] && bot_retorno+="$(fun_trans "Duracion invalida utilize numeros")" && bot_retorno+="$LINE\n"
  386. [[ $1 = 9 ]] && bot_retorno+="$(fun_trans "Duracion maxima de un año")" && bot_retorno+="$LINE\n"
  387. ;;
  388. 1[1-3])
  389. [[ $1 = 11 ]] && bot_retorno+="$(fun_trans "Limite Nulo")" && bot_retorno+="$LINE\n"
  390. [[ $1 = 12 ]] && bot_retorno+="$(fun_trans "Limite invalido utilize numeros")" && bot_retorno+="$LINE\n"
  391. [[ $1 = 13 ]] && bot_retorno+="$(fun_trans "Limite maximo de 999")" && bot_retorno+="$LINE\n"
  392. ;;
  393. esac
  394. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  395. --text "$(echo -e $bot_retorno)" \
  396. --parse_mode markdown
  397. }
  398. usuarios_ativos=($(mostrar_usuarios))
  399. [[ -z "$1" ]] && error_fun && return 0
  400. [[ -z "$2" ]] && error_fun && return 0
  401. [[ -z "$3" ]] && error_fun && return 0
  402. [[ -z "$4" ]] && error_fun && return 0
  403. if [[ -z $1 ]]; then
  404. error_fun 1 && return 0
  405. elif [[ "${#1}" -lt "4" ]]; then
  406. error_fun 2 && return 0
  407. elif [[ "${#1}" -gt "24" ]]; then
  408. error_fun 3 && return 0
  409. elif [[ "$(echo ${usuarios_ativos[@]}|grep -w "$1")" ]]; then
  410. error_fun 14 && return 0
  411. fi
  412. if [[ -z $2 ]]; then
  413. error_fun 4 && return 0
  414. elif [[ "${#2}" -lt "6" ]]; then
  415. error_fun 5 && return 0
  416. elif [[ "${#2}" -gt "20" ]]; then
  417. error_fun 6 && return 0
  418. fi
  419. if [[ -z "$3" ]]; then
  420. error_fun 7 && return 0
  421. elif [[ "$3" != +([0-9]) ]]; then
  422. error_fun 8 && return 0
  423. elif [[ "$3" -gt "360" ]]; then
  424. error_fun 9 && return 0
  425. fi
  426. if [[ -z "$4" ]]; then
  427. error_fun 11 && return 0
  428. elif [[ "$4" != +([0-9]) ]]; then
  429. error_fun 12 && return 0
  430. elif [[ "$4" -gt "999" ]]; then
  431. error_fun 13 && return 0
  432. fi
  433. add_user "$1" "$2" "$3" "$4"
  434. if [[ "$?" = "1" ]]; then
  435. local bot_retorno="$LINE\n"
  436. bot_retorno+="$(fun_trans "Usuario No Fue Creado")\n"
  437. bot_retorno+="$LINE\n"
  438. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  439. --text "$(echo -e $bot_retorno)" \
  440. --parse_mode markdown
  441. return 0
  442. else
  443. local bot_retorno="$LINE\n"
  444. bot_retorno+="$(fun_trans "USUARIO CREADO")\n"
  445. bot_retorno+="$(fun_trans "Usuario"): $1\n"
  446. bot_retorno+="$(fun_trans "Contraseña"): $2\n"
  447. bot_retorno+="$(fun_trans "Duracion"): $3\n"
  448. bot_retorno+="$(fun_trans "Limite"): $4\n"
  449. bot_retorno+="$LINE\n"
  450. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  451. --text "$(echo -e $bot_retorno)" \
  452. --parse_mode markdown
  453. return 0
  454. fi
  455. }
  456. userdell_fun () {
  457. error_fun () {
  458. local bot_retorno="$LINE\n"
  459. bot_retorno+="$(fun_trans "MODO DE USO")\n"
  460. bot_retorno+="$LINE\n"
  461. bot_retorno+="userdell $(fun_trans "Usuario")\n"
  462. bot_retorno+="$(fun_trans "Ejemplo"):\n"
  463. bot_retorno+='userdell admin\n'
  464. bot_retorno+="$LINE\n"
  465. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  466. --text "$(echo -e $bot_retorno)" \
  467. --parse_mode markdown
  468. return 0
  469. }
  470. [[ -z "$1" ]] && error_fun && return 0
  471. rm_user "$1" && {
  472. local bot_retorno="$LINE\n"
  473. bot_retorno+="$(fun_trans "Removido Con Exito")\n"
  474. bot_retorno+="$LINE\n"
  475. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  476. --text "$(echo -e $bot_retorno)" \
  477. --parse_mode markdown
  478. return 0
  479. } || {
  480. local bot_retorno="$LINE\n"
  481. bot_retorno+="$(fun_trans "Usuario No Removido")\n"
  482. bot_retorno+="$LINE\n"
  483. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  484. --text "$(echo -e $bot_retorno)" \
  485. --parse_mode markdown
  486. return 0
  487. }
  488. }
  489. paygen_fun () {
  490. gerar_pays () {
  491. echo 'GET http://mhost/ HTTP/1.1[crlf][raw][crlf] [crlf][crlf]
  492. CONNECT mhost@[host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf][crlf]
  493. CONNECT mhost@[host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf] [crlf]
  494. CONNECT [host_port]@mhost HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf][crlf]
  495. CONNECT [host_port]@mhost HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf] [crlf]
  496. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf][crlf]CONNECT [host_port]@mhost [protocol][crlf][crlf]
  497. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf][crlf]CONNECT [host_port]@mhost [protocol][crlf] [crlf]
  498. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf][crlf]
  499. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]User-Agent: [ua][crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf] [crlf]
  500. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]User-Agent: [ua][crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf][crlf]
  501. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]User-Agent: [ua][crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf] [crlf]
  502. CONNECT mhost@[host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]User-Agent: [ua][crlf][crlf]
  503. CONNECT mhost@[host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]User-Agent: [ua][crlf] [crlf]
  504. CONNECT mhost@[host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Referer: mhost[crlf][crlf]
  505. CONNECT mhost@[host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Referer: mhost[crlf] [crlf]
  506. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf][crlf]
  507. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf] [crlf]
  508. GET mhost@[host_port] [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf][crlf]
  509. GET mhost@[host_port] [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf] [crlf]
  510. GET [host_port]@mhost [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf][crlf]
  511. GET [host_port]@mhost [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf] [crlf]
  512. CONNECT [host_port]@mhost [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf]
  513. CONNECT [host_port]@mhost [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf] [crlf]
  514. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf][raw][crlf][crlf]
  515. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf][raw][crlf] [crlf]
  516. CONNECT [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][crlf]
  517. CONNECT [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf] [crlf]
  518. GET http://mhost/ HTTP/1.1[crlf]User-Agent: [ua][crlf][crlf][split][raw][crlf][crlf]CONNECT mhost:443 HTTP/1.1[crlf][raw][crlf][crlf]GET http://mhost/ HTTP/1.0[crlf]Host: mhost[crlf]Proxy-Authorization: basic: mhost[crlf]User-Agent: [ua][crlf]Connection: close[crlf]Proxy-Connection: Keep-Alive [crlf]Host: [host][crlf][crlf][split][raw][crlf][crlf]GET http://mhost/ HTTP/1.0[crlf]Host: mhost/[crlf][crlf]CONNECT [host_port] HTTP/1.0[crlf][crlf][realData][crlf][crlf]
  519. [method] mhost:443 HTTP/1.1[crlf][raw][crlf][crlf]GET http://mhost/ HTTP/1.1\nHost: mhost\nConnection: close\nConnection: close\nUser-Agent:[ua][crlf]Proxy-Connection: Keep-Alive[crlf]Host: [host][crlf][crlf][delay_split][raw][crlf][crlf][raw][crlf][realData][crlf][crlf]
  520. GET http://mhost/ HTTP/1.1[crlf]User-Agent: KDDI[crlf]Host: [host][crlf][crlf][raw][raw][crlf][raw][crlf][raw][crlf][crlf]DELETE http://mhost/ HTTP/1.1[crlf]Host: m.opera.com[crlf]Proxy-Authorization: basic: *[crlf]User-Agent: KDDI[crlf]Connection: close[crlf]Proxy-Connection: Direct[crlf]Host: [host][crlf][crlf][raw][raw][crlf][crlf][raw][method] http://mhost[port] HTTP/1.1[crlf]Host: [host][crlf][crlf]CONNECT [host] [protocol][crlf][crlf][CONNECT [host] [protocol][crlf][crlf]
  521. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][netData][crlf][instant_split]MOVE http://mhost[delay_split][crlf][crlf][netData][crlf][instant_split]MOVE http://mhost[delay_split][crlf][crlf][netData][crlf][instant_split]MOVE http://mhost[delay_split][crlf][crlf]X-Online-Host: mhost[crlf]Packet Length: Authorization[crlf]Packet Content: Authorization[crlf]Transfer-Encoding: chunked[crlf]Referer: mhost[crlf][crlf]
  522. [crlf][crlf]CONNECT [host_port]@mhost/ [protocol][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]User-Agent: [ua][crlf]CONNECT [host]@mhost/ [protocol][crlf][crlf]
  523. [method] [host_port] [protocol] [delay_split]GET http://mhost/ HTTP/1.1[netData][crlf]GET mip:80[crlf]X-GreenArrow-MtaID: smtp1-1[crlf]CONNECT http://mhost/ HTTP/1.1[crlf]CONNECT http://mhost/ HTTP/1.0[crlf][split]CONNECT http://mhost/ HTTP/1.1[crlf]CONNECT http://mhost/ HTTP/1.1[crlf][crlf][method] [host_port] [protocol]?[split]GET http://mhost:8080/[crlf][crlf]GET [host_port] [protocol]?[split]OPTIONS http://mhost/[crlf]Connection: Keep-Alive[crlf]User-Agent: Mozilla/5.0 (Android; Mobile; rv:35.0) Gecko/35.0 Firefox/35.0[crlf]CONNECT [host_port] [protocol] [crlf]GET [host_port] [protocol]?[split]GET http://mhost/[crlf][crlf][method] mip:80[split]GET mhost/[crlf][crlf]: Cache-Control:no-store,no-cache,must-revalidate,post-check=0,pre-check=0[crlf]Connection:close[crlf]CONNECT [host_port] [protocol]?[split]GET http://mhost:/[crlf][crlf]POST [host_port] [protocol]?[split]GET[crlf]mhost:/[crlf]Content-Length: 999999999\r\n\r\n
  524. GET [host_port] [protocol][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Referer: mhost[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][raw][crlf][crlf]
  525. CONNECT [host_port] [protocol]GET http://mhost/ [protocol][crlf][split]GET mhost/ HTTP/1.1[crlf][crlf]
  526. CONNECT [host_port] [protocol]GET http://mhost/ [protocol][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: navegue.vivo.ddivulga.com/pacote[crlf][crlf]CONNECT [host_port] [protocol]GET http://mhost/ [protocol][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf]CONNECT [host_port] [protocol]GET http://mhost/ [protocol][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf]CONNECT [host_port] [protocol]GET http://mhost/ [protocol][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf]CONNECT [host_port] [protocol]GET http://mhost/ [protocol][crlf][split]CONNECT [host_port]@mhost/ [protocol][crlf]Host: mhost/[crlf]GET mhost/ HTTP/1.1[crlf]HEAD mhost/ HTTP/1.1[crlf]TRACE mhost/ HTTP/1.1[crlf]OPTIONS mhost/ HTTP/1.1[crlf]PATCH mhost/ HTTP/1.1[crlf]PROPATCH mhost/ HTTP/1.1[crlf]DELETE mhost/ HTTP/1.1[crlf]PUT mhost/ HTTP/1.1[crlf]Host: mhost/[crlf]Host: mhost/[crlf]X-Forward-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]X-Forwarded-For: mhost[protocol][crlf][crlf]
  527. [raw][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost/[crlf]X-Forward-Host: mhost/[crlf]Connection: Keep-Alive[crlf]Connection: Close[crlf]User-Agent: [ua][crlf][crlf]
  528. [raw][split]GET mhost/ HTTP/1.1[crlf] [crlf]
  529. CONNECT [host_port]@mhost/ [protocol][crlf][instant_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf][crlf]
  530. GET http://mhost/ HTTP/1.1[crlf]GET mhost/[crlf]Connection: close Keep-Alive[crlf]User-Agent: [ua][crlf][crlf][raw][crlf][crlf]
  531. [raw]split]GET mhost/ HTTP/1.1[crlf][crlf]
  532. GET [host_port] [protocol][instant_split]GET http://mhost/ HTTP/1.1[crlf]
  533. GET [host_port] [protocol][crlf][delay_split]CONNECT http://mhost/ HTTP/1.1[crlf]
  534. CONNECT [host_port] [protocol] [instant_split]GET http://mhost/ HTTP/1.1[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][crlf][instant_split]GET http://mhost/ HTTP/1.1[crlf]User-Agent: [ua][crlf][crlf]
  535. GET http://mhost/ HTTP/2.0[auth][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]CONNECT [host_port] [protocol] [auth][crlf][crlf][delay_split][raw][crlf]JAZZ http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][raw][crlf][crlf][delay_split]CONNECT [host_port] [protocol] [method][crlf] [crlf][crlf]
  536. CONNECT [host_port] [protocol][crlf]GET http://mhost/ HTTP/1.1\rHost: mhost\r[crlf]X-Online-Host: mhost\r[crlf]X-Forward-Host: mhost\rUser-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-gb) AppleWebKit/534.35 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.35 Puffin/2.9174AP[crlf]
  537. GET http://mhost/ HTTP/1.1[crlf]Host: mhost/ [crlf]User-Agent: Yes[crlf]Connection: close[crlf]Proxy-Connection: Keep-Alive[crlf][crlf][raw][crlf][crlf]
  538. GET [host_port] [protocol][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][raw][crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Connection: close[crlf]Proxy-connection: Keep-Alive[crlf]Proxy-Authorization: Basic[crlf]UseDNS: Yes[crlf]Cache-Control: no-cache[crlf][raw][crlf] [crlf]
  539. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf] Access-Control-Allow-Credentials: true, true[crlf] Access-Control-Allow-Headers: X-Requested-With,Content-Type, X-Requested-With,Content-Type[crlf] Access-Control-Allow-Methods: GET,PUT,OPTIONS,POST,DELETE, GET,PUT,OPTIONS,POST,DELETE[crlf] Age: 8, 8[crlf] Cache-Control: max-age=86400[crlf] public[crlf] Connection: keep-alive[crlf] Content-Type: text/html; charset=UTF-8[crlf]Content-Length: 9999999999999[crlf]UseDNS: Yes[crlf]Vary: Accept-Encoding[crlf][raw][crlf] [crlf][crlf]
  540. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf] Access-Control-Allow-Credentials: true, true[crlf] Access-Control-Allow-Headers: X-Requested-With,Content-Type, X-Requested-With,Content-Type[crlf] Access-Control-Allow-Methods: GET,PUT,OPTIONS,POST,DELETE, GET,PUT,OPTIONS,POST,DELETE[crlf] Age: 8, 8[crlf] Cache-Control: max-age=86400[crlf] public[crlf] Connection: keep-alive[crlf] Content-Type: text/html; charset=UTF-8[crlf]Content-Length: 9999999999999[crlf]Vary: Accept-Encoding[crlf][raw][crlf] [crlf][crlf]
  541. [netData][split][raw][crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf]
  542. GET http://mhost/ HTTP/1.1[crlf]Host: mhost/[crlf]User-Agent: Yes[crlf]Connection: close[crlf]Proxy-Connection: update[crlf][netData][crlf] [crlf][crlf]
  543. GET http://mhost/ HTTP/1.1[crlf]host: http://mhost/[crlf]Connection: close update[crlf]User-Agent: [ua][crlf][crlf][raw][crlf][crlf] [crlf]
  544. [raw][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][raw][crlf][crlf]User-Agent: [ua][crlf]Connection: Close[crlf]Proxy-connection: Close[crlf]Proxy-Authorization: Basic[crlf]Cache-Control: no-cache[crlf]Connection: Keep-Alive[crlf][raw][crlf] [crlf]
  545. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Content-Type: text/html; charset=iso-8859-1[crlf]Connection: close[crlf][crlf]User-Agent: [ua][crlf][crlf]Referer: mhost[crlf]Cookie: mhost[crlf]Proxy-Connection: Keep-Alive [crlf][crlf][raw][crlf] [crlf][crlf]
  546. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Upgrade-Insecure-Requests: 1[crlf]User-Agent: Mozilla/5.0 (Linux; Android 5.1; LG-X220 Build/LMY47I) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36[crlf]Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8[crlf]Referer: http://mhost[crlf]Accept-Encoding: gzip, deflate, sdch[crlf]Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4[crlf]Cookie: _ga=GA1.2.2045323091.1494102805; _gid=GA1.2.1482137697.1494102805; tfp=80bcf53934df3482b37b54c954bd53ab; tpctmp=1494102806975; pnahc=0; _parsely_visitor={%22id%22:%22719d5f49-e168-4c56-b7c7-afdce6daef18%22%2C%22session_count%22:1%2C%22last_session_ts%22:1494102810109}; sc_is_visitor_unique=rx10046506.1494105143.4F070B22E5E94FC564C94CB6DE2D8F78.1.1.1.1.1.1.1.1.1[crlf][crlf]Connection: close[crlf]Proxy-Connection: Keep-Alive[crlf][netData][crlf] [crlf][crlf]
  547. GET [host_port] [protocol][crlf][split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][raw][crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Connection: close[crlf]Proxy-connection: Keep-Alive[crlf]Proxy-Authorization: Basic[crlf]Cache-Control: no-cache[crlf][raw][crlf] [crlf]
  548. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]User-Agent: [ua][crlf]Connection: close [crlf]Referer:http://mhost[crlf]Content-Type: text/html; charset=iso-8859-1[crlf]Content-Length:0[crlf]Accept: text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5[crlf][raw][crlf] [crlf]
  549. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]User-Agent: null[crlf]Connection: close[crlf]Proxy-Connection: x-online-host[crlf][crlf] CONNECT [host_port] [protocol] [netData][crlf]Content-Length: 130 [crlf][crlf]
  550. [raw][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Connection: close[crlf][crlf]User-Agent: Yes[crlf]Accept-Encoding: gzip,deflate[crlf]Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7[crlf]Connection: Basic[crlf]Referer: mhost[crlf]Cookie: mhost/ [crlf]Proxy-Connection: Keep-Alive[crlf][crlf][netData][crlf] [crlf][crlf]
  551. [raw][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Connection: close[crlf]Accept-Language: en-us,en;q=0.5[crlf]Accept-Encoding: gzip,deflate[crlf]Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7[crlf]Keep-Alive: 115[crlf]Connection: keep-alive[crlf]Referer: mhost[crlf]Cookie: mhost/ Proxy-Connection: Keep-Alive[crlf][crlf][netData][crlf] [crlf][crlf]
  552. [raw][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Connection: close[crlf]Proxy-connection: Keep-Alive[crlf]Proxy-Authorization: Basic[crlf]Cache-Control: no-cache[crlf][raw][crlf] [crlf]
  553. [raw][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf]Connection: close[crlf][crlf][raw][crlf] [crlf]
  554. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][netData][crlf] [crlf][crlf]CONNECT [host_port][method]HTTP/1.1[crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost[crlf][crlf]DELETE http://mhost/ HTTP/1.1[crlf][crlf][netData][crlf] [crlf][crlf]
  555. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][method] [host_port]@mip [crlf][crlf]http://mhost/ HTTP/1.1[crlf]mip[crlf][crlf] [crlf][crlf]http://mhost/ HTTP/1.1[crlf]Host@mip[crlf][crlf] [crlf][crlf] http://mhost/ HTTP/1.1[crlf]Host mhost/[crlf][crlf][netData][crlf] [crlf][crlf] http://mhost/ HTTP/1.1[crlf] [crlf][crlf][netData][crlf] [crlf][crlf] http://mhost/ HTTP/1.1[cr][crlf] [crlf][crlf][netData][cr][crlf] [crlf][crlf]CONNECT mip:22@http://mhost/ HTTP/1.1[crlf] [crlf][crlf][netData][crlf] [crlf][crlf]
  556. CONNECT [host_port]@mhost/ HTTP/1.1[crlf][crlf]CONNECT http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: close[crlf]User-Agent: [ua][crlf]Proxy-connection: Keep-Alive[crlf]Proxy-Authorization: Basic[crlf]Cache-Control : no-cache[crlf][crlf]
  557. CONNECT [host_port]@mhost/ HTTP/1.0[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: close[crlf]User-Agent: [ua][crlf]Proxy-connection: Keep-Alive[crlf]Proxy-Authorization: Basic[crlf]Cache-Control : no-cache[crlf][crlf]
  558. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13[crlf]Accept-Language: en-us,en;q=0.5[crlf]Accept-Encoding: gzip,deflate[crlf]Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7[crlf]Keep-Alive: 115[crlf]Connection: keep-alive[crlf]Referer: mhost[crlf]Cookie: mhost/ Proxy-Connection: Keep-Alive [crlf][crlf][netData][crlf] [crlf][crlf]
  559. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]User-Agent: Yes[crlf]Accept-Encoding: gzip,deflate[crlf]Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7[crlf]Connection: Basic[crlf]Referer: mhost[crlf]Cookie: mhost/ [crlf]Proxy-Connection: Keep-Alive[crlf][crlf][netData][crlf] [crlf][crlf]
  560. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][crlf][delay_split]CONNECT [host_port]@mhost/ [protocol][crlf][crlf]
  561. GET http://mhost/ HTTP/1.1[crlf]DATA: 2048B[crlf]Host: mhost[crlf]User-Agent: Yes[crlf]Connection: close[crlf]Accept-Encoding: gzip[crlf]Non-Buffer: true[crlf]Proxy: false[crlf][crlf][netData][crlf] [crlf][crlf]
  562. GET [host_port] [protocol][crlf][delay_split]CONNECT http://mhost/ HTTP/1.1[crlf]Host: http://mhost/[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: http://mhost[crlf]X-Forwarded-For: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][raw][crlf][crlf]
  563. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Cache-Control=max-age=0[crlf][crlf][raw][crlf] [crlf][crlf]
  564. CONNECT [host_port]@mhost/ [protocol][crlf]X-Online-Host: mhost[crlf][crlf][raw][crlf][crlf]
  565. GET http://mhost/ HTTP/1.1[crlf]Referer: mhost[crlf]GET /HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf]User-Agent: [ua][crlf][raw][crlf][crlf][raw][crlf]Referer: mhost[crlf][crlf]
  566. GET http://mhost/ HTTP/1.1[cr][crlf]Host: mhost/\nUser-Agent: Yes\nConnection: close\nProxy-Connection: Keep-Alive\n\r\n\r\n[netData]\r\n \r\n\r\n
  567. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: close Keep-Alive[crlf]User-Agent: [ua][crlf][crlf][raw][crlf][crlf]
  568. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf][split]CONNECT mhost@[host_port] [protocol][crlf][crlf]
  569. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf][realData][crlf][crlf]
  570. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf][raw][crlf][crlf]
  571. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf][crlf]CONNECT mhost/ [protocol][crlf][crlf]
  572. [raw][crlf]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]CONNECT mhost/ [protocol][crlf]
  573. [raw] HTTP/1.0\r\n\r\nGET http://mhost/ HTTP/1.1\r\nHost: mhost\r\nConnection: Keep-Alive\r\nCONNECT mhost\r\n\r\n
  574. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][raw][crlf][crlf]
  575. GET [host_port]@mhost/ HTTP/1.1[crlf]X-Real-IP:mip[crlf]X-Forwarded-For:http://mhost/ http://mhost/[crlf]X-Forwarded-Port:mhost[crlf]X-Forwarded-Proto:http[crlf]Connection:Keep-Alive[crlf][crlf][instant_split][raw][crlf][crlf]
  576. GET http://mhost/ HTTP/1.1[crlf]Host:mhost[crlf][crlf][split][realData][crlf][crlf]
  577. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf][realData][crlf]CONNECT mhost/ HTTP/1.1[crlf][crlf]
  578. CONNECT [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forward-Host: mhost[crlf]User-Agent: [ua][crlf][raw][crlf][crlf]
  579. [raw][crlf]GET http://mhost/ [protocol][crlf][split]mhost:/ HTTP/1.1[crlf]Host: mhost:[crlf]X-Forward-Host: mhost:[crlf][raw][crlf][crlf]
  580. GET http://mhost/ HTTP/1.1[crlf][crlf]Connection: close[crlf][crlf][netData][crlf] [crlf][crlf]
  581. GET http://mhost/ HTTP/1.1[crlf]Host:http://mhost[crlf][crlf][netData][crlf] [crlf][crlf]
  582. GET http://mhost/ HTTP/1.1\r\nHost: mhost\r\n\r\n[netData]\r\n\r\n\r\n
  583. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][realData][crlf][crlf]
  584. GET http://mhost/ HTTP/1.1\r\nX-Online-Host:mhost\r\n\r\nCONNECT mip:443[crlf]HTTP/1.0\r\n \r\n\\r\n\r\n\\r\n\r\n\\r\n\r\n\\r\n\r\n\\\r\n
  585. GET http://mhost/ HTTP/1.1\r\nGET: mhost\n\r\nCONNECT mip:443[crlf]HTTP/1.0\r\n \r\n\\r\n\r\n\\r\n\r\n\\r\n\r\n\\r\n\r\n\\\r\n
  586. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf]Connection: close[crlf][raw][crlf] [crlf][crlf]
  587. GET http://mhost/[crlf]X-Forward-Host: mhost[crlf][crlf][netData][crlf] [crlf][crlf]
  588. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf]X-Forward-Host: mhost[crlf][crlf][netData][crlf] [crlf][crlf]
  589. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf][crlf]CONNECT mhost/ [protocol][crlf] [crlf][crlf]
  590. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf]mhost[crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost/ [crlf]
  591. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf]Forward-Host: mhost[crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost/ [crlf]
  592. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf]Connection: http://mhost[crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost/ [crlf]
  593. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf]CONNECT mhost@[host_port] [protocol][crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost/ [crlf]
  594. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf]Connection: Keep-Alive[crlf]mhost@[host_port][crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost/ [crlf]
  595. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf][netdata][crlf] [crlf]GET mhost/ [protocol][crlf]User-Agent: [ua][crlf][raw][crlf][crlf]
  596. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf][crlf]User-Agent: [ua][crlf][raw][crlf][crlf]
  597. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf][crlf][split]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]X-Forwarded-For: mhost[crlf][crlf]User-Agent: [ua][crlf]Connection: close[crlf][raw][crlf][crlf]
  598. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf][crlf][raw][crlf][netData][crlf] [crlf][crlf]
  599. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf][raw][crlf] [crlf][crlf]
  600. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf]
  601. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf][crlf]CONNECT http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf]
  602. GET http://mhost/ [method] [host_port] HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf]Connection: close[crlf][netData][crlf] [crlf]
  603. GET http://mhost/ HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf]CONNECT mhost@[host_port] [protocol][crlf] [crlf]
  604. GET http://mhost/ HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]CONNECT mhost@[host_port] [protocol][crlf] [crlf]
  605. GET http://mhost/ HTTP/1.1[crlf][crlf]CONNECT http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf]Connection: close[crlf][netdata][crlf] [crlf][split]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf][netData][crlf] [crlf]
  606. GET http://mhost/ HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf][netData][crlf] [crlf]
  607. GET http://mhost/ HTTP/1.1[crlf]mhost\r\nHost:mhost\r\n\r\n[netData]\r\n \r\n\r\n
  608. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf][crlf][realData][crlf][crlf]
  609. GET http://mhost/ HTTP/1.1[crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf]HEAD http://mhost/ [protocol][crlf]Host: mhost/ [crlf]CONNECT mhost/ [crlf][crlf]
  610. GET http://mhost/ HTTP/1.1[crlf][crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][netData][crlf] [crlf][crlf]
  611. GET http://mhost/ HTTP/1.1[crlf][crlf]host: mhost[crlf][crlf][realData][crlf] [crlf][crlf]
  612. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost/ [crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf][raw][crlf] [crlf][crlf]
  613. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf]Connection: Keep-Alive[crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf][realData][crlf][crlf]
  614. GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf][crlf]CONNECT mhost/ [protocol][crlf] [crlf]
  615. GET http://mhost/ HTTP/1.1[crlf]mhost[crlf]Host: mhost[crlf][crlf]CONNECT mhost/ [crlf][raw][crlf][crlf]
  616. GET http://mhost/ HTTP/1.1[crlf]mhost[crlf]Host: mhost[crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf]CONNECT [host_port][crlf]CONNECT mhost/ [crlf][crlf][cr]
  617. [realData][crlf][split]GET http://mhost/ HTTP/1.1[crlf][crlf]Host: mhost[crlf]X-Online-Host: mhost[crlf]Connection: Keep-Alive[crlf][crlf]
  618. GET http://mhost/ HTTP/1.1[crlf]mhost[crlf]Host: mhost[crlf][crlf]CONNECT [host_port][crlf]GET mhost/ [crlf]
  619. CONNECT [host_port]@mhost/ HTTP/1.1[crlf][crlf]GET http://mhost/ [protocol][crlf]Host: mhost[crlf]X-Forward-Host: mhost[crlf][raw][crlf][crlf]
  620. [raw][crlf][cr][crlf]X-Online-Host: mhost[crlf]Connection: [crlf]User-Agent: [ua][crlf]Content-Lenght: 99999999999[crlf][crlf]
  621. [raw][crlf]X-Online-Host: mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][raw][crlf]X-Online-Host: mhost[crlf][crlf]
  622. GET http://mhost/ HTTP/1.1[crlf]Authorization: Basic: Connection: X-Forward-Keep-AliveX-Online-Host: mhost[crlf][crlf][netData][crlf] [crlf][crlf]
  623. GET http://mhost/ HTTP/1.1[crlf]host:frontend.claro.com.br[crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf][crlf][netData][crlf] [crlf][crlf]
  624. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][raw][crlf] [crlf][crlf]
  625. GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf][netData][crlf] [crlf][crlf]
  626. GET http://mhost/ HTTP/1.1[crlf]Host: Multibanco.com.br[crlf][crlf][raw][crlf] [crlf][crlf]
  627. GET http://mhost/ HTTP/1.1[crlf]Host: mhost/ [crlf][crlf][raw][crlf]CONNECT [crlf]
  628. GET http://mhost/ HTTP/1.1[crlf] Proxy-Authorization: Basic:Connection: X-Forward-Keep-AliveX-Online-Host:[crlf][crlf][netData][crlf] [crlf][crlf]
  629. CONNECT [host_port]@mhost/ [protocol][crlf][instant_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf]
  630. CONNECT [host_port]@mhost/ [protocol][crlf]Host: mhost[crlf][crlf]
  631. [raw][crlf]X-Online-Host: mhost[crlf][crlf][raw][crlf]X-Online-Host: mhost/ [crlf][crlf]
  632. [raw][crlf]X-Online-Host: http://mhost[crlf][crlf]CONNECT[host_port] [protocol][crlf]X-Online-Host: mhost/ [crlf][crlf]
  633. CONNECT [host_port]@mhost/ HTTP/1.1[crlf]CONNECT mip:443 [crlf][crlf]
  634. CONNECT [host_port]@mhost/ [protocol][crlf]Host: mhost[crlf]X-Forwarded-For: mhost[crlf][crlf][split]GET mhost/ HTTP/1.1[cr][crlf][raw][crlf] [crlf][crlf]
  635. CONNECT [host_port]@mhost/ [protocol][crlf][delay_split]GET http://mhost/ HTTP/1.1[crlf]Host:mhost[crlf][crlf]
  636. CONNECT [host_port]@mhost/ [protocol][crlf][instant_split]GET http://mhost/ HTTP/1.1[crlf]Host: mhost[crlf][crlf]
  637. GET http://mhost/ HTTP/1.1[crlf]Content-Type: text[crlf]Cache-Control: no-cache[crlf]Connection: close[crlf]Content-Lenght: 20624[crlf]GET mip:443@mhost/ HTTP/1.1[crlf][crlf]
  638. CONNECT [host_port]@mhost/ [protocol][crlf]Host: mhost[crlf]X-Forwarded-For: mhost/ User-Agent: Yes[crlf]Connection: close[crlf]Proxy-Connection: Keep-Alive Connection: Transfer-Encoding[crlf] [protocol][crlf]User-Agent: [ua][crlf][raw][auth][crlf][crlf][netData][crlf] [crlf][crlf]
  639. [raw][crlf]Host: mhost[crlf]GET http://mhost/ HTTP/1.1[crlf]X-Online-Host: mhost[crlf][crlf]' > $HOME/$1
  640. }
  641. fail_fun () {
  642. local bot_retorno="$LINE\n"
  643. bot_retorno+="$(fun_trans "MODO DE USO"):\n"
  644. bot_retorno+="$LINE\n"
  645. bot_retorno+="/gerar $(fun_trans "Host") $(fun_trans "Solicitud") $(fun_trans "Conexion")\n"
  646. bot_retorno+="$(fun_trans "Ejemplo"):\n"
  647. bot_retorno+="/gerar www.host.com (1 a 9) (1 a 3)\n"
  648. bot_retorno+="/gerar www.host.com 2 1\n"
  649. bot_retorno+="$LINE\n"
  650. bot_retorno+="$(fun_trans "Metodos Solicitud")\n${LINE}\n1-GET, 2-CONNECT, 3-PUT, 4-OPTIONS, 5-DELETE, 6-HEAD, 7-TRACE, 8-PROPATCH, 9-PATCH\n"
  651. bot_retorno+="$LINE\n"
  652. bot_retorno+="$(fun_trans "Metodos Conexion")\n${LINE}\n1-REALDATA, 2-NETDATA, 3-RAW\n"
  653. bot_retorno+="$LINE\n"
  654. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  655. --text "$(echo -e $bot_retorno)" \
  656. --parse_mode markdown
  657. unset bot_retorno
  658. return 0
  659. }
  660. valor1="$1" #Entrada Host
  661. valor2="127.0.0.1" #Entrada IP
  662. valor3="$2" #Metodo Requisicao
  663. valor4="$3" #Metodo Conexao
  664. [[ "$1" = "" ]] && fail_fun && return 0
  665. [[ "$2" = "" ]] && fail_fun && return 0
  666. [[ "$3" = "" ]] && fail_fun && return 0
  667. case $valor3 in
  668. 1)req="GET";;
  669. 2)req="CONNECT";;
  670. 3)req="PUT";;
  671. 4)req="OPTIONS";;
  672. 5)req="DELETE";;
  673. 6)req="HEAD";;
  674. 7)req="PATCH";;
  675. 8)req="POST";;
  676. *)req="GET";;
  677. esac
  678. case $valor4 in
  679. 1)in="realData";;
  680. 2)in="netData";;
  681. 3)in="raw";;
  682. *)in="netData";;
  683. esac
  684. gerar_pays Payloads.txt
  685. sed -i "s;realData;abc;g" $HOME/Payloads.txt
  686. sed -i "s;netData;abc;g" $HOME/Payloads.txt
  687. sed -i "s;raw;abc;g" $HOME/Payloads.txt
  688. sed -i "s;abc;$in;g" $HOME/Payloads.txt
  689. sed -i "s;GET;$req;g" $HOME/Payloads.txt
  690. sed -i "s;get;$req;g" $HOME/Payloads.txt
  691. sed -i "s;mhost;$valor1;g" $HOME/Payloads.txt
  692. sed -i "s;mip;$valor2;g" $HOME/Payloads.txt
  693. if [[ -e $HOME/Payloads.txt ]]; then
  694. local bot_retorno="$LINE\n"
  695. bot_retorno+="$(fun_trans "PAYLOADS GERADAS CON EXITO")\n"
  696. bot_retorno+="$LINE\n"
  697. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  698. --text "$(echo -e $bot_retorno)" \
  699. --parse_mode markdown
  700. local bot_retorno2
  701. ShellBot.sendDocument --chat_id ${message_chat_id[$id]} \
  702. --document @$HOME/Payloads.txt
  703. return 0
  704. else
  705. local bot_retorno="$LINE\n"
  706. bot_retorno+="$(fun_trans "PAYLOADS NO GERADAS")\n"
  707. bot_retorno+="$(fun_trans "Algun Error")\n"
  708. bot_retorno+="$LINE\n"
  709. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  710. --text "$(echo -e $bot_retorno)" \
  711. --parse_mode markdown
  712. return 0
  713. fi
  714. }
  715. scan_fun () {
  716. error_fun () {
  717. local bot_retorno="$LINE\n"
  718. bot_retorno+="$(fun_trans "Modo de uso"):\n"
  719. bot_retorno+="/scan $(fun_trans "dominio")\n"
  720. bot_retorno+="$(fun_trans "Ejemplo"): /scan www.host.com\n"
  721. bot_retorno+="$LINE\n"
  722. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  723. --text "$(echo -e $bot_retorno)" \
  724. --parse_mode markdown
  725. return 0
  726. }
  727. [[ -z $1 ]] && error_fun && return 0
  728. local HOST=$1
  729. local RETURN=$(curl -sSL "$HOST"|grep -Eoi '<a [^>]+>'|grep -Eo 'href="[^\"]+"'|grep -Eo '(http|https)://[a-zA-Z0-9./*]+'|sort -u|uniq)
  730. if [[ -z $RETURN ]]; then
  731. local bot_retorno="$LINE\n"
  732. bot_retorno+="$(fun_trans "Ningun Host Encontrado en Dominio"): ${1}\n"
  733. bot_retorno+="$LINE\n"
  734. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  735. --text "$(echo -e $bot_retorno)" \
  736. --parse_mode markdown
  737. return 0
  738. else
  739. i=1
  740. local bot_retorno="$LINE\n"
  741. bot_retorno+="$(fun_trans "SUBDOMINIOS ENCONTRADOS")\n$LINE\n"
  742. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  743. --text "$(echo -e $bot_retorno)" \
  744. --parse_mode markdown
  745. unset bot_retorno
  746. while read hostreturn; do
  747. local bot_retorno+="$hostreturn\n"
  748. if [[ $i -gt 20 ]]; then
  749. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  750. --text "*$(echo -e $bot_retorno)*" \
  751. --parse_mode markdown
  752. unset bot_retorno
  753. unset i
  754. fi
  755. let i++
  756. done <<< "$RETURN"
  757. [[ ! -z $bot_retorno ]] && {
  758. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  759. --text "*$(echo -e $bot_retorno)*" \
  760. --parse_mode markdown
  761. }
  762. fi
  763. }
  764. openadd_fun () {
  765. [[ $(dpkg --get-selections|grep -w "openvpn"|head -1) ]] || return 0
  766. [[ -e /etc/openvpn/openvpn-status.log ]] || return 0
  767. newclient "$nomeuser" "$senhauser"
  768. [[ -z $1 ]] && client="adm" || client="$1"
  769. cp /etc/openvpn/client-common.txt $HOME/$client.ovpn
  770. echo "<key>
  771. $(cat /etc/openvpn/client-key.pem)
  772. </key>
  773. <cert>
  774. $(cat /etc/openvpn/client-cert.pem)
  775. </cert>
  776. <ca>
  777. $(cat /etc/openvpn/ca.pem)
  778. </ca>" >> $HOME/$client.ovpn
  779. [[ ! -z $1 ]] && [[ ! -z $2 ]] && sed -i "s;auth-user-pass;<auth-user-pass>\n$1\n$2\n</auth-user-pass>;g" $HOME/$client.ovpn
  780. local bot_retorno="$LINE\n"
  781. bot_retorno+="$(fun_trans "Para Generar Archivos Con Autenticación Automatica Utilice"):\n/openadd usuario senha\n$LINE\n"
  782. bot_retorno+="$(fun_trans "ARCHIVO OPENVPN GENERADO CON EXITO")\n"
  783. bot_retorno+="$LINE\n"
  784. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  785. --text "$(echo -e $bot_retorno)" \
  786. --parse_mode markdown
  787. local bot_retorno2
  788. ShellBot.sendDocument --chat_id ${message_chat_id[$id]} \
  789. --document @$HOME/$client.ovpn
  790. rm $HOME/$client.ovpn
  791. return 0
  792. }
  793. cript_fun () {
  794. if [[ -z $2 ]]; then
  795. local bot_retorno="$LINE\n"
  796. bot_retorno+="$(fun_trans "Modo de uso"):\n"
  797. bot_retorno+="/criptar texto_for_cript\n"
  798. bot_retorno+="$LINE\n"
  799. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  800. --text "_$(echo -e $bot_retorno)_" \
  801. --parse_mode markdown
  802. return 0
  803. else
  804. local array=($@)
  805. for((i=1; i<=${#array[@]}; i++)); do
  806. unset txtofus
  807. local number=$(expr length "${array[$i]}")
  808. for((e=1; e<$number+1; e++)); do
  809. local txt[$e]=$(echo "${array[$i]}" | cut -b $e)
  810. case ${txt[$e]} in
  811. ".")txt[$e]="#";;
  812. "#")txt[$e]=".";;
  813. "1")txt[$e]="%";;
  814. "%")txt[$e]="1";;
  815. "2")txt[$e]="?";;
  816. "?")txt[$e]="2";;
  817. "3")txt[$e]="&";;
  818. "&")txt[$e]="3";;
  819. "/")txt[$e]="!";;
  820. "!")txt[$e]="/";;
  821. "a")txt[$e]="k";;
  822. "k")txt[$e]="a";;
  823. "s")txt[$e]="w";;
  824. "w")txt[$e]="s";;
  825. "h")txt[$e]="y";;
  826. "y")txt[$e]="h";;
  827. "o")txt[$e]="P";;
  828. "P")txt[$e]="o";;
  829. "v")txt[$e]="T";;
  830. "T")txt[$e]="v";;
  831. "f")txt[$e]="Z";;
  832. "Z")txt[$e]="f";;
  833. esac
  834. txtofus+="${txt[$e]}"
  835. done
  836. [[ -z $returntxt ]] && returntxt="$(echo $txtofus | rev)" || returntxt="$returntxt $(echo $txtofus | rev)"
  837. done
  838. unset txtofus
  839. local bot_retorno="$LINE\n"
  840. bot_retorno+="$(fun_trans "SU TEXTO ENCRIPTADO O DESCRIPTADO"):\n"
  841. bot_retorno+="$LINE\n"
  842. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  843. --text "*$(echo -e $bot_retorno)*" \
  844. --parse_mode markdown
  845. local bot_retorno="$returntxt\n"
  846. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  847. --text "_$(echo -e $bot_retorno)_" \
  848. --parse_mode markdown
  849. fi
  850. }
  851. language_fun () {
  852. if [[ -z $2 || -z $3 ]]; then
  853. local bot_retorno="$LINE\n"
  854. bot_retorno+="$(fun_trans "Modo de uso"):\n"
  855. bot_retorno+="/lang (pt, fr, es, en...) (text)\n"
  856. bot_retorno+="/lang es Hello\n"
  857. bot_retorno+="$LINE\n"
  858. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  859. --text "_$(echo -e $bot_retorno)_" \
  860. --parse_mode markdown
  861. return 0
  862. else
  863. local array=($@)
  864. local RETORNO
  865. for((i=2; i<=${#array[@]}; i++)); do
  866. local RET=$(source trans -b :$2 "${array[$i]}")
  867. [[ -z $RETORNO ]] && RETORNO=$RET || RETORNO="$RETORNO $RET"
  868. done
  869. local bot_retorno="$LINE\n"
  870. bot_retorno+="$(fun_trans "Su Traducion"):\n"
  871. bot_retorno+="$LINE\n"
  872. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  873. --text "*$(echo -e $bot_retorno)*" \
  874. --parse_mode markdown
  875. bot_retorno="$(echo $RETORNO|sed -e 's/[^a-z0-9 -]//ig')\n"
  876. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  877. --text "_$(echo -e $bot_retorno)_" \
  878. --parse_mode markdown
  879. return 0
  880. fi
  881. }
  882. teste_fun () {
  883. local bot_retorno="$LINE\n"
  884. bot_retorno+="$(fun_trans "USUARIO"): ${chatuser}\n"
  885. bot_retorno+="$(fun_trans "ARGUMENTOS"): ${comando[@]}\n"
  886. bot_retorno+="$LINE\n"
  887. ShellBot.sendMessage --chat_id ${message_chat_id[$id]} \
  888. --text "_$(echo -e $bot_retorno)_" \
  889. --parse_mode markdown
  890. #local bot_retorno="$LINE\n"
  891. # bot_retorno+="$(fun_trans "ESSE USUARIO"): ${chatuser}\n"
  892. # bot_retorno+="$(fun_trans "ESSES ARGUMENTOS"): ${comando[@]}\n"
  893. # bot_retorno+="$LINE\n"
  894. # ShellBot.editMessageText --chat_id ${message_chat_id[$id]} --message_id ${reply_to_message_message_id[$id]} --text "$(echo -e $bot_retorno)" --parse_mode markdown
  895. #return 0
  896. }
  897. # LOOP ESCUTANDO O TELEGRAN
  898. while true; do
  899. ShellBot.getUpdates --limit 100 --offset $(ShellBot.OffsetNext) --timeout 30
  900. for id in $(ShellBot.ListUpdates); do
  901. chatuser="$(echo ${message_chat_id[$id]}|cut -d'-' -f2)"
  902. echo $chatuser >&2
  903. comando=(${message_text[$id]})
  904. case ${comando[0]} in
  905. /[Tt]este|[Tt]este)teste_fun &;;
  906. /[Aa]juda|[Aa]juda|[Hh]elp|/[Hh]elp)ajuda_fun &;;
  907. /[Ss]tart|[Ss]tart|[Cc]omecar|/[Cc]omecar)ajuda_fun &;;
  908. /[Ll]ogar|[Ll]ogar|[Ll]oguin|/[Ll]oguin)ativarid_fun "${comando[1]}" "${comando[2]}" "$chatuser";;
  909. *)if [[ ! -z $LIBERADOS ]] && [[ $(echo ${LIBERADOS}|grep -w "${chatuser}") ]]; then
  910. case ${comando[0]} in
  911. [Oo]nline|/[Oo]nline|[Oo]nlines|/[Oo]nlines)online_fun &;;
  912. [Cc]riptar|/[Cc]riptar|[Cc]ript|/[Cc]ript)cript_fun "${comando[@]}" &;;
  913. [Uu]seradd|/[Uu]seradd|[Aa]dd|/[Aa]dd)useradd_fun "${comando[1]}" "${comando[2]}" "${comando[3]}" "${comando[4]}" &;;
  914. [Uu]serdell|/[Uu]serdell|[Dd]ell|/[Dd]ell)userdell_fun "${comando[1]}" &;;
  915. [Ii]nfo|/[Ii]nfo)info_fun &;;
  916. [Ii]nfovps|/[Ii]nfovps)infovps &;;
  917. [Ll]ang|/[Ll]ang)language_fun "${comando[@]}" &;;
  918. [Oo]penadd|/[Oo]penadd|[Oo]pen|/[Oo]pen)openadd_fun "${comando[1]}" "${comando[2]}" &;;
  919. [Gg]erar|/[Gg]erar|[Pp]ay|/[Pp]ay)paygen_fun "${comando[1]}" "${comando[2]}" "${comando[3]}" &;;
  920. [Uu]suarios|/[Uu]suarios|[Uu]ser|/[Uu]ser)loguin_fun &;;
  921. [Ss]can|/[Ss]can)scan_fun "${comando[1]}" &;;
  922. *)ajuda_fun;;
  923. esac
  924. else
  925. [[ ! -z "${comando[0]}" ]] && blockfun &
  926. fi;;
  927. esac
  928. done
  929. done