elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado:


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  Alguien me dice Para Que Sirve??
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Alguien me dice Para Que Sirve??  (Leído 3,384 veces)
zloloz

Desconectado Desconectado

Mensajes: 49


Ver Perfil
Alguien me dice Para Que Sirve??
« en: 15 Septiembre 2010, 23:18 pm »

@echo off
setlocal

REM *** Update HKCU for current user
call :CreateKeys "HKCU"

REM *** Update HKCU for all other users
cd /D %USERPROFILE%\..
for /f "tokens=*" %%i in ('dir /b /ad') do (
    if exist ".\%%i\NTUSER.DAT" call :CreateKeysForOtherUser "%%i" ".\%%i\NTUSER.DAT" HKLM\TempHive
)

endlocal

goto :EOF

REM ***
REM *** Args: %1 = username; %2 = name of registry hive file for user; %3 = location to load user hive to
REM *** Precondition: %keybase% has key (excluding GUID)
REM *** Ignores hives for current user (which should be updated directly with CreateKeys to prevent multiple access problems)
REM *** Ignores "All Users" and system service accounts which are irrelevant for our purposes
REM ***
:CreateKeysForOtherUser
set fUpdateUser=Y
if /I %1 equ "All Users" set fUpdateUser=N
if /I %1 equ "LocalService" set fUpdateUser=N
if /I %1 equ "NetworkService" set fUpdateUser=N
if /I %1 equ "%USERNAME%" set fUpdateUser=N

if %fUpdateUser% equ Y (
    %SystemRoot%\system32\reg.exe load %3 %2 >nul 2>&1
    call :CreateKeys %3
    %SystemRoot%\system32\reg.exe unload %3 >nul 2>&1
)

goto :EOF

REM ***
REM *** Args: %1 = hive
REM *** Precondition: proper hive is loaded (if necessary)
REM ***
:CreateKeys
set keybase=Software\Microsoft\Windows\CurrentVersion\Ext\Settings
for %%i in ({9059f30f-4eb1-4bd2-9fdc-36f43a218f4a}
            {7584c670-2274-4efb-b00b-d6aaba6d3850}
            {4EDCB26C-D24C-4e72-AF07-B576699AC0DE}
            {4eb89ff4-7f78-4a0f-8b8d-2bf02e94e4b2}
            {7390f3d8-0439-4c05-91e3-cf5cb290c3d0}) do (
    %SystemRoot%\system32\reg.exe add "%1\%keybase%\%%i" /v Flags /d 0x1 /t REG_DWORD /f >nul
    %SystemRoot%\system32\reg.exe add "%1\%keybase%\%%i" /v Version /d "*" /t REG_SZ /f >nul
)

set keybase=Software\Microsoft\Windows\CurrentVersion\Ext\Stats
for %%i in ({9059f30f-4eb1-4bd2-9fdc-36f43a218f4a}
            {7584c670-2274-4efb-b00b-d6aaba6d3850}
            {4EDCB26C-D24C-4e72-AF07-B576699AC0DE}
            {4eb89ff4-7f78-4a0f-8b8d-2bf02e94e4b2}
            {7390f3d8-0439-4c05-91e3-cf5cb290c3d0}) do (
    %SystemRoot%\system32\reg.exe add "%1\%keybase%\%%i\iexplore" /v Flags /d 0x4 /t REG_DWORD /f >nul
)


goto :EOF


En línea

flony


Desconectado Desconectado

Mensajes: 583



Ver Perfil
Re: Alguien me dice Para Que Sirve??
« Respuesta #1 en: 15 Septiembre 2010, 23:54 pm »

mira parece un bat que esta explicado por una persoan de habla inglesa...eso por los
Código:
rem
que sirve para que el q hace el bat sepa para que sirve cada bloque que va haciendo...pero al final depsues de fijarse si excisten las claves y valores respectivos trata de realizar un remote desktop(Conexión a Escritorio remoto)
Código:
Software\Microsoft\Windows\CurrentVersion\Ext\Settings\9059f30f-4eb1-4bd2-9fdc-36f43a218f4a
y las otras son para arreglar posibles errores....
en definitiva para tener acceso a la pc donde se aplique
edit
traduci los rem y sacalos solo la linea donde esta el rem igual no sirven y te queda el verdadero bat


« Última modificación: 16 Septiembre 2010, 17:51 pm por flony » En línea

si un problema no tiene solucion entonces no es un problema...es algo inevitable
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Alguien me dice el error? (solucionado)
Programación C/C++
;c1v!c 2 2,894 Último mensaje 8 Junio 2011, 21:41 pm
por ;c1v!c
alguien me dice q es esto?
Criptografía
elenan 4 4,371 Último mensaje 30 Abril 2012, 16:08 pm
por elenan
El FBI dice que su 'malware' sirve a buenos propósitos
Noticias
wolfbcn 1 1,322 Último mensaje 14 Julio 2016, 14:58 pm
por PalitroqueZ
FinScore, por fin alguien te dice cuánto vales para tu banco
Noticias
wolfbcn 0 1,344 Último mensaje 12 Diciembre 2017, 14:04 pm
por wolfbcn
Alguien me dice si es posible?
Hacking
Lino Romero 3 2,546 Último mensaje 6 Agosto 2019, 14:48 pm
por engel lex
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines