send
Grupo de Telegram
play_arrow
Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

[FUNCION] Autoit CMD Prompt

  • 1 Respuestas
  • 1790 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado 79137913

  • *
  • Moderator
  • Mensajes: 615
  • Actividad:
    3.33%
  • Reputación 10
  • 4 Esquinas
    • Ver Perfil
    • Doors.Party
    • Email
  • Skype: fg_mdq@hotmail.com
« en: Noviembre 28, 2013, 10:42:17 am »
HOLA!!!

Jugando con autoit cree esta pequeña suite de funciones para trabajar con CMD:
Código: AutoIt
  1. ;Creado por 79137913
  2. #include <Constants.au3>
  3. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $cmdpid
  4. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $cmdresponse
  5.  
  6. ;~ _iniciarCMD()
  7. ;~ _sendCMDCommand("ping 127.0.0.1",2)
  8. ;~ MsgBox(0,"",$cmdresponse)
  9. ;~ _sendCMDCommand("cd ..",1)
  10. ;~ MsgBox(0,"",$cmdresponse)
  11. ;~ _sendCMDCommand("cd ..",1)
  12. ;~ MsgBox(0,"",$cmdresponse)
  13. ;~ _CerrarCMD()
  14. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  15. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login _SendCMDCommand($command,$timeoutlimit);Envia un comando CMD y devuelve la respuesta, timeout es en segundos
  16.     You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login($cmdpid,$command)
  17.     You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login($cmdpid,You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login)
  18.         ;StdinWrite($cmdpid)
  19.     You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $data
  20.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $response
  21.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $timeout
  22.         $data = ""
  23.     You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  24.             You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login(100)
  25.         $data &= You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login($cmdpid)
  26.         You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $data <> "" You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  27.                         $response=$response & $data
  28.                         $data=""
  29.                         $timeout=0
  30.                 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  31.                 $timeout=$timeout+1
  32.                 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login $timeout=$timeoutlimit*10 You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  33.     You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  34.     $cmdresponse = $response
  35. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
  36. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login _CerrarCMD();Cerrar CMD
  37.    You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login($cmdpid)
  38. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login  
  39. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login _IniciarCMD();Inicializar CMD
  40.     $cmdpid = You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login("C:\Windows\system32\cmd.exe",You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login, You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login, $STDIN_CHILD + $STDOUT_CHILD)
  41. You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

GRACIAS POR LEER!!!
« Última modificación: Diciembre 02, 2013, 12:35:30 pm por 79137913 »
"Algunos creen que soy un bot, puede que tengan razon"
"Como no se puede igualar a Dios, ya he decidido que hacer, ¡SUPERARLO!"
"La peor de las ignorancias es no saber corregirlas"

*Shadow Scout Team*                                                   You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Desconectado ANTRAX

  • *
  • Administrator
  • Mensajes: 5283
  • Actividad:
    35%
  • Reputación 28
  • ANTRAX
    • Ver Perfil
    • Underc0de
    • Email
  • Skype: underc0de.org
  • Twitter: @Underc0de
« Respuesta #1 en: Noviembre 28, 2013, 10:51:28 am »
Que bien numeros!!
Jamas he programado en Autoit, pero tiene aire a VB6


 

¿Te gustó el post? COMPARTILO!



[AutoIt] Ayuda: alguna manera de formatear unidades

Iniciado por fortil

Respuestas: 1
Vistas: 1574
Último mensaje Abril 14, 2014, 06:29:19 am
por 0b3Y
[RAT] Lo basico para empezar un RAT en AUTOIT

Iniciado por 79137913

Respuestas: 1
Vistas: 1790
Último mensaje Diciembre 02, 2013, 11:37:43 am
por ANTRAX
[AUTOIT] Anti VMWare & AntiVbox

Iniciado por Expermicid

Respuestas: 0
Vistas: 1605
Último mensaje Julio 03, 2012, 11:33:30 am
por Expermicid
Como agregar skins en autoit

Iniciado por Flame

Respuestas: 0
Vistas: 2815
Último mensaje Agosto 17, 2016, 11:18:56 pm
por Flame
Alternative StringLen ( AutoIt )

Iniciado por M3

Respuestas: 0
Vistas: 1456
Último mensaje Junio 28, 2012, 09:54:10 pm
por M3