{"id":20171770,"url":"https://github.com/zombiegeek0/vbsinjection","last_synced_at":"2026-05-08T02:17:06.800Z","repository":{"id":227492992,"uuid":"770877857","full_name":"ZombieGeeK0/VBSInjection","owner":"ZombieGeeK0","description":"Un programa simple que combina VBS y Python para Windows que inyecta pulsaciones al teclado.","archived":false,"fork":false,"pushed_at":"2024-03-13T15:26:13.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T15:49:11.438Z","etag":null,"topics":["bash","basic","injection","keyboard","os","py","python","script","scripting","sh","vbs","vbsinjection","visual","windows","zombiegeek"],"latest_commit_sha":null,"homepage":"https://zombiegeek0.github.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZombieGeeK0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-12T10:17:53.000Z","updated_at":"2024-05-06T14:02:22.000Z","dependencies_parsed_at":"2024-03-13T16:42:07.869Z","dependency_job_id":null,"html_url":"https://github.com/ZombieGeeK0/VBSInjection","commit_stats":null,"previous_names":["zombiegeek0/vbsinjection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZombieGeeK0%2FVBSInjection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZombieGeeK0%2FVBSInjection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZombieGeeK0%2FVBSInjection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZombieGeeK0%2FVBSInjection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZombieGeeK0","download_url":"https://codeload.github.com/ZombieGeeK0/VBSInjection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241607470,"owners_count":19989895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","basic","injection","keyboard","os","py","python","script","scripting","sh","vbs","vbsinjection","visual","windows","zombiegeek"],"created_at":"2024-11-14T01:27:44.326Z","updated_at":"2026-05-08T02:17:01.765Z","avatar_url":"https://github.com/ZombieGeeK0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VBSInjection\n\n`[INFO]` Imagen:\n\n![VBSInjection](https://github.com/ZombieGeeK0/VBSInjection/assets/158185295/c91c9fff-d100-40fc-86c5-d156febc299d)\n\n\u003chr\u003e\n\n`[INFO]` Este es un proyecto para `Windows,` pero también se pueden generar los `scripts en Linux.`\n\n`[INFO]` Este proyecto combina `Python, BATCH y VBS (Visual Basic Scripting).`\n\n`[INFO]` Especiales agradecimientos a \u003ca href=\"https://www.github.com/Euronymou5\"\u003e`Euronymou5`\u003c/a\u003e sin el que este proyecto habría sido inviable.\n\n`[INFO]` Sistemas operativos `soportados:`\n\n| Sistema operativo  | Soporte |\n| ------------- | ------------- |\n| Windows  | ✔️  |\n| Linux  | ✔️  |\n| MacOS | :x: |\n| Android | :x: |\n| Apple \u0026 IOS | :x: |\n\n\u003chr\u003e\n\n`[INFO]` Instalación en `Windows:`\n\n`[1]` Descarga el archivo `.zip`\n\n`[2]` Abre la carpeta y ejecuta el `install.bat` gráficamente o desde el terminal con `start install.bat`\n\n\u003chr\u003e\n\n`[INFO]` Instalación en `Linux:`\n\n`[1]` Instalación con `comandos:`\n\n    sudo apt update \u0026\u0026 sudo apt upgrade \u0026\u0026 git clone https://www.github.com/VBSInjection \u0026\u0026 cd VBSInjection \u0026\u0026 chmod +x setup.sh \u0026\u0026 chmod 777 setup.sh \u0026\u0026 sudo bash setup.sh\n\n\u003chr\u003e\n\n`[INFO]` Hotkeys `soportadas:`\n\n`[INFO]` Source: https://ss64.com/vb/sendkeys.html\n\n| Hotkey  | Manera |\n| ------------- | ------------- |\n| SHIFT| (+ prefix) wshshell.sendkeys \"`%`{F6}\" |\n| CTRL | (^ PREFIX) wshshell.sendkeys \"`^`{escape}\" |\n| ALT | (% prefix) wshshell.sendkeys \"`%`{F4}\" |\n\n| Hotkey | Soporte para la v1 |\n| ------------- | ------------- |\n| ENTER | ✔️ |\n| ESCAPE | ✔️ |\n| BACKSPACE | ✔️ |\n| BREAK | ✔️ |\n| CAPSLOCK | ✔️ |\n| CLEAR | ✔️ |\n| DELETE | ✔️ |\n| INSERT | ✔️ |\n| LEFT/RIGHT/UP/DOWN | ✔️ |\n| END | ✔️ |\n| F1-F16 | ✔️ |\n| HELP | ✔️ |\n| HOME | ✔️ |\n| NUMLOCK | ✔️ |\n| PGUP/PGDN | ✔️ |\n| PRTSC (print screen) | ✔️ |\n| SCROLLOCK | ✔️ |\n| TAB | ✔️ |\n\n\u003chr\u003e\n\n`[INFO]` Comandos:\n\n    $ python3 main.py --help\n    usage: main.py [-h] [--open OPEN] [--begin BEGIN] [--sleep SLEEP] [--write WRITE] [--keyhot KEYHOT] [--appactivate APPACTIVATE] [--message MESSAGE]\n                   [--close CLOSE]\n    \n    options:\n      -h, --help            show this help message and exit\n      --open OPEN, -o OPEN  Indica el nombre y la extensión del archivo a abrir\n      --begin BEGIN, -b BEGIN\n                            Empieza creando el objeto de VBS en el archivo. Este argumento es necesario para empezar a crear el script\n      --sleep SLEEP, -s SLEEP\n                            Crea una pausa en el script de VBS del tiempo especificado en el argumento\n      --write WRITE, -w WRITE\n                            Escribe una tecla normal en el script VBS para que sea inyectada cuando se ejecute\n      --keyhot KEYHOT, -k KEYHOT\n                            Escribe una hotkey especificada en mayúscuñas en el archivo VBS\n      --appactivate APPACTIVATE, -a APPACTIVATE\n                            Avtiva la app indicada\n      --message MESSAGE, -m MESSAGE\n                            Indica el texto a mostrar en el mensaje\n      --close CLOSE, -c CLOSE\n                            Cierra el archivo \n\n\u003chr\u003e\n\n`[INFO]` Funcionamiento:\n\n`[INFO]` Se importan las `librerías:`\n\n```python\nimport os, argparse, sys\nfrom colorama import Fore, Back\n```\n\n`[INFO]` Creamos los argumentos de `parser:`\n\n```python\nparser = argparse.ArgumentParser()\n\nparser.add_argument('--open', '-o',\n                    required=False,\n                    help=\"Indica el nombre y la extensión del archivo a abrir\")\n\nargs = parser.parse_args()\n```\n\n`[INFO]` Para crear los colores del `texto:`\n\n```python\nclass color:\n    RED = Fore.RED + Back.RESET\n    RESET = Fore.RESET + Back.RESET\n```\n\n`[INFO]` Procesamos los argumentos con una `condicional:`\n\n```python\nif args.begin == 'true':\n    file = open('inject.vbs', 'a')\n    file.write('Set WshShell = WScript.CreateObject(\"WScript.Shell\")\\n')\n    file.write('strName = wshShell.ExpandEnvironmentStrings( \"%USERNAME%\" )\\n')\n    sys.exit()\n```\n\n\u003chr\u003e\n\n`[INFO]` Comandos de `VBS soportados:`\n\n`[INFO]` MsgBox:\n\n```vbs\nMsgBox\"Hello World\",48,\"Mensaje del sistema\"\n```\n\n`[INFO]` Inciar el código creando el `objeto:`\n\n```vbs\nSet WshShell = WScript.CreateObject(\"WScript.Shell\")\nstrName = wshShell.ExpandEnvironmentStrings( \"%USERNAME%\" )\n```\n\n`[INFO]` Iniciar una app:\n\n```vbs\nwshshell.run \"cmd.exe\"\nwshshell.AppActivate \"cmd.exe\"\n```\n\n`[INFO]` Tiempo de `pausa.` En el argumento de `Python` se indica el tiempo en segundos y se `traduce a milisegundos` en el programa de `VBS:`\n\n```vbs\nWScript.sleep 1000\n```\n\n`[INFO]` Inyección de `pulsaciones del teclado:`\n\n```vbs\nwshshell.sendkeys \"hello\"\n```\n\n`[INFO]` Inyección de hotkeys:\n\n```vbs\nwshshell.sendkeys \"{ENTER}\"\n```\n\n\u003chr\u003e\n\n`[INFO]` Ejemplos de `ejecución:`\n\n    python3 main.py -o true\n    python3 main.py -b true\n    python3 main.py -s 1\n    python3 main.py -a cmd.exe\n    python3 main.py -s 1\n    python3 main.py -m Ejecutando...\n    python3 main.py -w ipconfig\n    python3 main.py -k ENTER\n    python3 main.py -s 1\n    python3 main.py -w exit\n    python3 main.py -k ENTER\n    python3 main.py -c true\n\n`[INFO]` Esto generaría un programa de output `(inject.vbs)` donde estaría el siguiente `contenido:`\n\n    Set WshShell = WScript.CreateObject(\"WScript.Shell\")\n    strName = wshShell.ExpandEnvironmentStrings( \"%USERNAME%\" )\n    WScript.sleep 1000\n    wshshell.run \"cmd.exe\"\n    wshshell.AppActivate \"cmd.exe\"\n    WScript.sleep 1000\n    MsgBox\"Ejecutando...\",48,\"Mensaje del sistema\"\n    wshshell.sendkeys \"ipconfig\"\n    wshshell.sendkeys \"{ENTER}\"\n    WScript.sleep 1000\n    wshshell.sendkeys \"exit\"\n    wshshell.sendkeys \"{ENTER}\"\n\n`[INFO]` En este caso el `programa` serviría para abrir el `CMD,` ejecutar el comando `ipconfig` y salir del `terminal.`\n\n\u003chr\u003e\n\n![imagen](https://github.com/ZombieGeeK0/VBSInjection/assets/158185295/4a05d544-0e7e-4813-b29d-684b25bcd4ad)\n\n\u003chr\u003e\n\n## 🎖️ CONTRIBUIDORES 🎖️\n\n- \u003ca href=\"https://www.github.com/Euronymou5\"\u003eEuronymou5\u003c/a\u003e\n- \u003ca href=\"https://www.github.com/ZombieGeek0\"\u003eZombieGeek0\u003c/a\u003e\n    \n\u003chr\u003e\n\n`[ 📬 ]` Contacta conmigo a través de `Discord` mandando una invitación a `qwfkr.`\n\n    qwfkr\n`[ 📬 ]` Si lo prefieres, mándame un correo a `3xpl017.contact@proton.me.`\n\n    3xpl017.contact@proton.me.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzombiegeek0%2Fvbsinjection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzombiegeek0%2Fvbsinjection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzombiegeek0%2Fvbsinjection/lists"}