Skip to content

Instantly share code, notes, and snippets.

@AZcaptcha
Created September 14, 2018 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AZcaptcha/759e2ed9f4170569da2d95625a677e62 to your computer and use it in GitHub Desktop.
Save AZcaptcha/759e2ed9f4170569da2d95625a677e62 to your computer and use it in GitHub Desktop.
Change hostname for other captcha
@echo off
set hostsFile=%SYSTEMROOT%\System32\drivers\etc\hosts
set myServer=azcaptcha.com
set toRedirect=2captcha.com
rem -------------------------
rem azcaptcha captcha gate
rem -------------------------
rem %toRedirect%
rem -------------------------
setlocal EnableDelayedExpansion
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit)
echo [+] azcaptcha captcha gate (hostsfile editor)
echo [+] --------------------------------------------
echo [+] %toRedirect% gate
for /f "tokens=1,2 delims=[]" %%a IN ('ping -n 1 !myServer!') DO (
if "%%b" NEQ "" set ip=%%b
)
echo [+] IP address %ip%
echo.>>%hostsFile%
echo #azcaptcha gate>>%hostsFile%
echo !ip! %toRedirect%>>%hostsFile%
echo [+] Appended to hosts file: !hostsFile!
echo [+] Check page and make sure you get the message: Captcha gate enabled ^^!
echo [+] --------------------------------------------------------------------------------
timeout /t 10
start "" http://%toRedirect%
pause
@echo off
set hostsFile=%SYSTEMROOT%\System32\drivers\etc\hosts
set myServer=azcaptcha.com
set toRedirect=api.anti-captcha.com
rem -------------------------
rem azcaptcha captcha gate
rem -------------------------
rem %toRedirect%
rem -------------------------
setlocal EnableDelayedExpansion
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit)
echo [+] azcaptcha captcha gate (hostsfile editor)
echo [+] --------------------------------------------
echo [+] %toRedirect% gate
for /f "tokens=1,2 delims=[]" %%a IN ('ping -n 1 !myServer!') DO (
if "%%b" NEQ "" set ip=%%b
)
echo [+] IP address %ip%
echo.>>%hostsFile%
echo #azcaptcha gate>>%hostsFile%
echo !ip! %toRedirect%>>%hostsFile%
echo [+] Appended to hosts file: !hostsFile!
echo [+] Check page and make sure you get the message: Captcha gate enabled ^^!
echo [+] --------------------------------------------------------------------------------
timeout /t 10
start "" http://%toRedirect%
pause
@echo off
set hostsFile=%SYSTEMROOT%\System32\drivers\etc\hosts
set myServer=azcaptcha.com
set toRedirect=api.dbcapi.me
rem -------------------------
rem azcaptcha captcha gate
rem -------------------------
rem %toRedirect%
rem -------------------------
setlocal EnableDelayedExpansion
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit)
echo [+] azcaptcha captcha gate (hostsfile editor)
echo [+] --------------------------------------------
echo [+] %toRedirect% gate
for /f "tokens=1,2 delims=[]" %%a IN ('ping -n 1 !myServer!') DO (
if "%%b" NEQ "" set ip=%%b
)
echo [+] IP address %ip%
echo.>>%hostsFile%
echo #azcaptcha gate>>%hostsFile%
echo !ip! %toRedirect%>>%hostsFile%
echo [+] Appended to hosts file: !hostsFile!
echo [+] Check page and make sure you get the message: Captcha gate enabled ^^!
echo [+] --------------------------------------------------------------------------------
timeout /t 10
start "" http://%toRedirect%
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment