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


Tema destacado: Como proteger una cartera - billetera de Bitcoin


  Mostrar Mensajes
Páginas: 1 ... 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [41] 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 75
401  Programación / Scripting / Re: problema findstr en: 3 Octubre 2018, 22:23 pm
Solo tenias q dejar la Sub-rutina BS :

Código
  1. :Bs
  2. cls
  3.   set file=%~1
  4.   if not exist %file% goto leer
  5.   Echo Por Favor Espere...
  6.   findstr /i %string% "%file%"
  7.   if %errorlevel% == 0 echo Palabra %string% Encontrada en %file% >> lista.txt

De ultimo (osea al final de batch) y ya eso es todo. eso se debe por que no puse el :

Código:
GOTO :EOF

Eso era todo.

PD: no te puedo explicar mas por que ando un poco ocupado. vuelvo dentro de unas 3 horas bay.
402  Programación / .NET (C#, VB.NET, ASP) / Re: [Ayuda] Agrego el paquete NuGet "SharpDX" pero me da error. en: 3 Octubre 2018, 22:19 pm
Instale por medio de la consola en una nueva solucion . me agarro el paquete "SharpDX" , "SharpDX.Mathematics" y "SharpDX.Desktop" pero con los demás paquetes me sale lo mismo:



Alguna Idea? Gracias de antemano
403  Programación / .NET (C#, VB.NET, ASP) / Re: [Ayuda] Agrego el paquete NuGet "SharpDX" pero me da error. en: 3 Octubre 2018, 22:05 pm
Tengo VS 2012 ya q mi pc es kk

me voy a :




Y solo tengo instalado el paquete SharpDX la mas nueva versión.




Ya verifique y si lo tengo instalado, bueno voy hacer todos desde 0 con un nuevo proyecto y te aviso.
404  Programación / Scripting / Re: problema findstr en: 3 Octubre 2018, 21:15 pm
Código
  1. @echo off
  2. Rem By **Aincrad**
  3. del %temp%\a.txt>nul
  4. del lista.txt>nul
  5. :menu & cls  
  6. color a
  7. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿    EL
  8. echo ³                                                               ³ H
  9. echo ³                                                               ³  a
  10. echo ³   Entrodusca la Palabra / Frase a Buscar.                     ³   c
  11. echo ³                                                               ³    k
  12. echo ³                                                               ³     e
  13. echo ³                                                               ³      r
  14. echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ       .NET
  15. echo    Create BY **Aincrad**  Foro el hacker.NET
  16. Set /P string=^>^>^>
  17. if not defined string (goto:menu) >NUL
  18. cls
  19.  
  20. for %%x in (*.txt) do (echo %%x >> %temp%\a.txt)
  21.  
  22. for /f "delims=·" %%A IN (%temp%\a.txt) do call:Bs "%%A"
  23.  
  24.  
  25.  
  26. :leer
  27. cls
  28. color b
  29. type lista.txt
  30. pause>nul
  31. exit
  32.  
  33. :Bs
  34. cls
  35.   set file=%~1
  36.   if not exist %file% goto leer
  37.   Echo Por Favor Espere...
  38.   findstr /i %string% "%file%"
  39.   if %errorlevel% == 0 echo Palabra %string% Encontrada en %file% >> lista.txt
405  Programación / Scripting / Re: problema findstr en: 3 Octubre 2018, 18:46 pm
Termine, me tarde por que la ultima vez que hice algo así me lleve 104 lineas y de paso código mal optimizado .

Pero ahora soy mas cuidadoso . y optimizo muy bien mis script.

El code Busca en todos los .txt la palabra que tu escribas. (Pon el bat en la carpeta donde tienes tus txt) o bueno lo modificas a tu gusto.

Código
  1. @echo off
  2. Rem By **Aincrad**
  3. del %temp%\a.txt>nul
  4. del lista.txt>nul
  5. :menu & cls  
  6. color a
  7. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿    EL
  8. echo ³                                                               ³ H
  9. echo ³                                                               ³  a
  10. echo ³   Entrodusca la Palabra / Frase a Buscar.                     ³   c
  11. echo ³                                                               ³    k
  12. echo ³                                                               ³     e
  13. echo ³                                                               ³      r
  14. echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ       .NET
  15. echo    Create BY **Aincrad**  Foro el hacker.NET
  16. Set /P string=^>^>^>
  17. if not defined string (goto:menu) >NUL
  18. cls
  19.  
  20. for %%x in (*.txt) do (echo %%x >> %temp%\a.txt)
  21.  
  22. for /f "delims=·" %%A IN (%temp%\a.txt) do call:Bs "%%A"
  23.  
  24. :Bs
  25. cls
  26.   set file=%~1
  27.   if not exist %file% exit >nul
  28.   Echo Por Favor Espere...
  29.   findstr /i %string% %file%
  30.   if %errorlevel% == 0 echo Palabra %string% Encontrada en %file% >> lista.txt
  31.  

100% FUNCIONAL con palabras. y bien optimizado , pruebalo.
406  Programación / .NET (C#, VB.NET, ASP) / [Ayuda] Agrego el paquete NuGet "SharpDX" pero me da error. en: 3 Octubre 2018, 17:18 pm
En internet encontré  el sig código : 


Clase : "SharpDXRenderer"

Código
  1. Imports System
  2. Imports System.Windows.Forms
  3. Imports SharpDX
  4. Imports SharpDX.DXGI
  5. Imports SharpDX.Direct3D
  6. Imports SharpDX.Direct3D11
  7. Imports SharpDX.Direct2D1
  8. Imports SharpDX.Windows
  9. Imports SharpDX.Mathematics
  10. Imports Device = SharpDX.Direct3D11.Device
  11. Imports FactoryD2D = SharpDX.Direct2D1.Factory
  12. Imports FactoryDXGI = SharpDX.DXGI.Factory1
  13.  
  14.  
  15. Public Class SharpDXRenderer
  16.  
  17. #Region "Properties"
  18.  
  19. Private _showFPS As Boolean = False
  20. Public Property ShowFPS() As Boolean
  21. Get
  22. Return _showFPS
  23. End Get
  24. Set(ByVal value As Boolean)
  25. _showFPS = value
  26. End Set
  27. End Property
  28.  
  29. Private _renderWindow As New RenderForm
  30. Public Property RenderWindow As RenderForm
  31. Get
  32. Return _renderWindow
  33. End Get
  34. Set(value As RenderForm)
  35. _renderWindow = value
  36. End Set
  37. End Property
  38.  
  39. Private _renderWindowTitle As String = ""
  40. Public Property RenderWindowTitle As Integer
  41. Get
  42. Return Nothing
  43. End Get
  44. Set(value As Integer)
  45. End Set
  46. End Property
  47.  
  48. Private _renderWindowWidth As Integer = 800
  49. Public Property RenderWindowWidth() As String
  50. Get
  51. Return _renderWindowWidth
  52. End Get
  53. Set(ByVal value As String)
  54. _renderWindowWidth = value
  55. End Set
  56. End Property
  57.  
  58. Private _renderWindowHeight As Integer = 600
  59. Public Property RenderWindowHeight() As Integer
  60. Get
  61. Return _renderWindowHeight
  62. End Get
  63. Set(ByVal value As Integer)
  64. _renderWindowHeight = value
  65. End Set
  66. End Property
  67.  
  68. Private _isWindowed As Boolean = True
  69. Public Property IsWindowed() As Boolean
  70. Get
  71. Return _isWindowed
  72. End Get
  73. Set(ByVal value As Boolean)
  74. _isWindowed = value
  75. End Set
  76. End Property
  77.  
  78. Private _refreshRate As Integer = 60
  79. Public Property RefreshRate() As Integer
  80. Get
  81. Return _refreshRate
  82. End Get
  83. Set(ByVal value As Integer)
  84. _refreshRate = value
  85. End Set
  86. End Property
  87.  
  88. #End Region
  89.  
  90. ' **** Operational class level vars
  91. Dim device As Device
  92. Dim swapChain As SwapChain
  93. Dim renderTarget As RenderTarget
  94.  
  95.  
  96. Public Sub New()
  97.  
  98. 'nuttin atm
  99.  
  100. End Sub
  101.  
  102. Public Sub Initialize()
  103.  
  104. ' Create render target window
  105. _renderWindow.Text = _renderWindowTitle
  106.  
  107. ' Create swap chain description
  108. Dim swapChainDesc = New SwapChainDescription() With {
  109. .BufferCount = 2,
  110. .Usage = Usage.RenderTargetOutput,
  111. .OutputHandle = _renderWindow.Handle,
  112. .IsWindowed = _isWindowed,
  113. .ModeDescription = New ModeDescription(0, 0, New Rational(_refreshRate, 1), Format.R8G8B8A8_UNorm),
  114. .SampleDescription = New SampleDescription(1, 0),
  115. .Flags = SwapChainFlags.AllowModeSwitch,
  116. .SwapEffect = SwapEffect.Discard
  117. }
  118.  
  119. ' Create swap chain And Direct3D device
  120. ' The BgraSupport flag Is needed for Direct2D compatibility otherwise RenderTarget.FromDXGI will fail!
  121. Device.CreateWithSwapChain(DriverType.Hardware, DeviceCreationFlags.BgraSupport, swapChainDesc, device, swapChain)
  122.  
  123. ' Get back buffer in a Direct2D-compatible format (DXGI surface)
  124. Dim backBuffer As Surface = Surface.FromSwapChain(swapChain, 0)
  125.  
  126. 'Create Direct2D factory
  127. Using factory = New FactoryD2D()
  128. 'Get desktop DPI
  129. Dim dpi = factory.DesktopDpi
  130. 'Create bitmap render target from DXGI surface
  131. renderTarget = New RenderTarget(factory, backBuffer, New RenderTargetProperties() With {
  132. .DpiX = dpi.Width,
  133. .DpiY = dpi.Height,
  134. .MinLevel = SharpDX.Direct2D1.FeatureLevel.Level_DEFAULT,
  135. .PixelFormat = New PixelFormat(Format.Unknown, Direct2D1.AlphaMode.Ignore),
  136. .Type = RenderTargetType.[Default],
  137. .Usage = RenderTargetUsage.None
  138. })
  139. End Using
  140.  
  141. 'Disable automatic ALT+Enter processing because it doesn't work properly with WinForms
  142. Using factory = swapChain.GetParent(Of FactoryDXGI)()
  143. factory.MakeWindowAssociation(_renderWindow.Handle, WindowAssociationFlags.IgnoreAltEnter)
  144. End Using
  145.  
  146. ' Add event handler for ALT+Enter
  147. AddHandler _renderWindow.KeyDown, Sub(o, e)
  148.  If e.Alt AndAlso e.KeyCode = Keys.Enter Then
  149.  swapChain.IsFullScreen = Not swapChain.IsFullScreen
  150.  End If
  151.  End Sub
  152.  
  153. ' Set window size
  154. _renderWindow.Size = New System.Drawing.Size(_renderWindowWidth, _renderWindowHeight)
  155.  
  156. ' Prevent window from being re-sized
  157. _renderWindow.AutoSizeMode = AutoSizeMode.GrowAndShrink
  158.  
  159. End Sub
  160.  
  161. Public Sub RunRenderLoop()
  162.  
  163. Dim clock = New System.Diagnostics.Stopwatch()
  164. Dim clockFrequency = CDbl(System.Diagnostics.Stopwatch.Frequency)
  165. clock.Start()
  166. Dim deltaTime = 0.0
  167. Dim fpsTimer = New System.Diagnostics.Stopwatch()
  168. fpsTimer.Start()
  169. Dim fps = 0.0
  170. Dim fpsFrames As Integer = 0
  171.  
  172. RenderLoop.Run(_renderWindow, Function()
  173.  renderTarget.BeginDraw()
  174.  renderTarget.Transform = Matrix3x2.Identity
  175.  renderTarget.Clear(Color.DarkBlue)
  176.  
  177.  ' FPS display
  178.  Dim totalSeconds = clock.ElapsedTicks / clockFrequency
  179.  fpsFrames += 1
  180.  If fpsTimer.ElapsedMilliseconds > 1000 Then
  181.  fps = 1000 * fpsFrames / fpsTimer.ElapsedMilliseconds
  182.  If _showFPS Then
  183.  ' Update window title with FPS once every second
  184.  _renderWindow.Text = String.Format("D3DRendering D3D11.1 - FPS: {0:F2} ({1:F2}ms/frame)", fps, CSng(fpsTimer.ElapsedMilliseconds) / fpsFrames)
  185.  End If
  186.  ' Restart the FPS counter
  187.  fpsTimer.Reset()
  188.  fpsTimer.Start()
  189.  fpsFrames = 0
  190.  End If
  191.  
  192.  'Draw the frame
  193.  DrawFrame(renderTarget)
  194.  
  195.  renderTarget.EndDraw()
  196.  
  197.  swapChain.Present(0, PresentFlags.None)
  198.  
  199.  ' Determine the time it took to render the frame
  200.  deltaTime = (clock.ElapsedTicks / clockFrequency) - totalSeconds
  201.  
  202.  End Function)
  203.  
  204. renderTarget.Dispose()
  205. swapChain.Dispose()
  206. device.Dispose()
  207.  
  208. End Sub
  209.  
  210. Private Function DrawFrame(renderTarget As RenderTarget) As RenderTarget
  211.  
  212. renderTarget.DrawRectangle(New RectangleF(renderTarget.Size.Width / 2 - (Form1.WidthTB.Value / 2),
  213.  renderTarget.Size.Height / 2 - (Form1.HeightTB.Value / 2),
  214.  Form1.WidthTB.Value,
  215.  Form1.HeightTB.Value), New SolidColorBrush(renderTarget, Color.CornflowerBlue))
  216.  
  217. Return renderTarget
  218.  
  219. End Function
  220.  
  221. End Class



Bueno entonces abro mi VS he instalo la referencia de SharpDX . pero como verán me sale esto:



Entonces intento buscar por ejemplo la referencia que me sale que no tengo , por ejemplo : "SharpDX.Direct2D1" y me dice que ya tengo esa referencia en SharpDX que agregue, pero entonce por que me sale como si no la tuviera?




Gracias de Antemano!


407  Programación / Scripting / Re: problema findstr en: 3 Octubre 2018, 17:07 pm
No te estoy entendiendo muy bien, explícate. lo que entendí : osea tienes un directorio con varios .txt y quieres crear un bat que busque en todos esos .txt una palabra. es eso?
408  Programación / Scripting / Re: Almacenar nombre de un archivo en una variable [BATCH] en: 3 Octubre 2018, 15:43 pm
Metodo 1.

Código
  1. @echo off & title Contador de Archivos & set a=0 & color a & :by **Aincrad**
  2.      echo/ & dir /b *.java | findstr /n ".java$" & echo/
  3.                                        (for %%x in (*.java) do set /a a+=1)
  4.      echo/ & echo/ & echo      Archivos txt encontrados %a% & echo/
  5. pause  
  6.  


Metodo 2.

Código
  1. @echo off  
  2. ::::::::::::::::::::::::
  3. :se crea el directorio.
  4. ::::::::::::::::::::::::
  5.      (if exist lista.dll del lista.dll          
  6.               dir /b *.java >> lista.dll
  7.                    cls     )                    
  8. ::::::::::::::::::::::::::::::::
  9. :se crea un backup
  10. ::::::::::::::::::::::::::::::::
  11.    (    echo/
  12.              echo/
  13.                  copy "lista.dll" "%temp%\lista.txt"
  14.              cls
  15.           echo/  )
  16. ::::::::::::::::::::::::::::::::::::::
  17. :se muestra el directorio en la cmd
  18. ::::::::::::::::::::::::::::::::::::::
  19.  (      color a
  20.           type "%temp%\lista.txt"    
  21.     echo/
  22.     echo ================================
  23.     echo =   candad de archivos  .java  =
  24.     echo ================================
  25.     echo/
  26.                 dir /b *.txt | find /c  ".txt"
  27.      del /f /q "%temp%\lista.txt"
  28.      ECHO CREATE BY **Aincrad**
  29. pause >nul)


Metodo 3

Código
  1. @echo off
  2. del %temp%\a.txt
  3. cls
  4. :Crearlista
  5.  
  6.  for %%x in (*.java) do (echo %%x >> %temp%\a.txt)
  7.      echo lista Creada.
  8. ping localhost -n 2 >nul
  9.  
  10. :leerlista
  11. cls
  12. color b
  13. type "%temp%\a.txt"
  14. pause>nul
  15. exit

SALUDOS
409  Programación / Scripting / Re: Ayuda con batch para crear archivos de texto plano en: 3 Octubre 2018, 04:05 am
Código
  1. @echo off
  2.  
  3. for /R %%x in (*.mp3) do (
  4.  
  5. echo LoadPlugin("C:\Program Files\AviSynth\plugins\NicAudio.dll"^) > %%~dx%%~px%%~nx.avs
  6. echo A = NicMPG123Source("%%~dx%%~px%%~nx.mp3"^) >> %%~dx%%~px%%~nx.avs
  7. echo V = ImageSource("D:\logo karaokear canal 4 redimencionado.jpg"^) >> %%~dx%%~px%%~nx.avs
  8. echo return(V,A^) >> %%~dx%%~px%%~nx.avs
  9. )
  10. exit

Listo, a mi me sirve así. pruebalo y me dices.
410  Informática / Software / Re: [APORTE] Ofuscar HTML Online (Sitio web) en: 3 Octubre 2018, 00:19 am
Modificado por Aincrad? Quien sos? JJAJAJA, como si lo hubieses modificado tú... Si supieras leer, podrías ver claramente el post dice que es una recopilación y que el código original se encuentra en www.angelsresist.com/obfuscator.shtml pero como a ti siempre se te ocurre buscarle lo "malo a las cosas" intentas dejar mal a la gente de ElHacker, la verdad, que buen usuario, ¿no?, me tomé la molestia de hostearlo en mi página web (también aclarado en el post que está hosteado en 000webhost)  buscando errores de por qué no funcionaba cuando metía el obfuser.js javascript.js e index.html después de también tomarme el tiempo de traducir todo o casi todo, e intentar dejarlo más lindo de lo que estaba...
¿A demás no se que le ves de malo? Si en el post está aclarado.
¡Un saludo! A ver si tenes algún argumento...

Ya sabia yo que te habías copiado de alguna pagina.! , Bueno si eres ciego te mostrare que modifique.

Simplemente coloque las Funciones JS "javascript.js" y "Obfuscator.js" dentro del HTML.

así el que quiera solo copia y pega el code en un block de notas y lo guarda con extensión .HTML Y LO ABRE CON SU NAVEGADOR Y NO IMPORTA SI tines INTERNET igual LO PUEDE USAR. AHORA ENTENDÉIS?.

Saludos para el : "Tino Copy&Paste"

Páginas: 1 ... 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 [41] 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 ... 75
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines