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

 

 


Tema destacado: Estamos en la red social de Mastodon


  Mostrar Mensajes
Páginas: 1 ... 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 57 58 59 ... 72
431  Programación / .NET (C#, VB.NET, ASP) / Re: aplicar atributos a archivos y carpetas. en: 15 Abril 2018, 17:38 pm
Bueno lo he hecho así espero sus criticas constructivas:  :xD

Código
  1. Imports System.IO
  2.  
  3. Public Class Form1
  4. Public Shared MyDrive As String
  5. Private Sub buttonScan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonScan.Click
  6.        Using folder As New FolderBrowserDialog
  7.            With folder
  8.                If .ShowDialog = 1 Then
  9.                    MyDrive = .SelectedPath.ToString
  10.                    Unhide()
  11.                End If
  12.            End With
  13.        End Using
  14.    End Sub
  15.  
  16. #Region "unhide"
  17.  
  18.    Private Function GetFilesRecursive(ByVal initial As String) As List(Of String)
  19.  
  20.        Dim result As New List(Of String)
  21.  
  22.        Dim stack As New Stack(Of String)
  23.  
  24.        stack.Push(initial)
  25.  
  26.        Do While (stack.Count > 0)
  27.            Dim dir As String = stack.Pop
  28.            Try
  29.                result.AddRange(Directory.GetFiles(dir, "*.*"))
  30.  
  31.                Dim directoryName As String
  32.                For Each directoryName In Directory.GetDirectories(dir)
  33.                    stack.Push(directoryName)
  34.                Next
  35.  
  36.            Catch ex As Exception
  37.            End Try
  38.        Loop
  39.  
  40.        Return result
  41.    End Function
  42.  
  43.    Private Function GetDirectoriesRecursive(ByVal initial As String) As List(Of String)
  44.  
  45.        Dim result As New List(Of String)
  46.  
  47.  
  48.        Dim stack As New Stack(Of String)
  49.  
  50.  
  51.        stack.Push(initial)
  52.  
  53.  
  54.        Do While (stack.Count > 0)
  55.  
  56.            Dim dir As String = stack.Pop
  57.            Try
  58.  
  59.                result.AddRange(Directory.GetDirectories(dir, "*.*"))
  60.  
  61.  
  62.                Dim directoryName As String
  63.                For Each directoryName In Directory.GetDirectories(dir)
  64.                    stack.Push(directoryName)
  65.                Next
  66.  
  67.            Catch ex As Exception
  68.            End Try
  69.        Loop
  70.  
  71.  
  72.        Return result
  73.    End Function
  74.  
  75.    Public Sub Unhide()
  76.        Dim FileCounter As Integer = 0
  77.        Dim FolderCounter As Integer = 0
  78.  
  79.        Dim Files As List(Of String) = GetFilesRecursive(MyDrive)
  80.        Dim Directories As List(Of String) = GetDirectoriesRecursive(MyDrive)
  81.  
  82.        For Each Filename In Files
  83.            If (IO.File.GetAttributes(Filename) And IO.FileAttributes.Hidden) = IO.FileAttributes.Hidden Then
  84.  
  85.                IO.File.SetAttributes(Filename, IO.FileAttributes.Normal)
  86.                FileCounter = FileCounter + 1
  87.            End If
  88.        Next
  89.  
  90.        For Each DirectoryName In Directories
  91.            If (IO.File.GetAttributes(DirectoryName) And IO.FileAttributes.Hidden) = IO.FileAttributes.Hidden Then
  92.  
  93.                IO.File.SetAttributes(DirectoryName, IO.FileAttributes.Normal)
  94.                FolderCounter = FolderCounter + 1
  95.            End If
  96.        Next
  97.    End Sub
  98.  
  99. #End Region
  100.  
  101. End Class

lo único que me falta es el ProgressBar. pero estoy pensando en mejor poner unos labels que muestren los numeros de archivos y otro que muestre el directorio.



432  Programación / .NET (C#, VB.NET, ASP) / Re: Crypter en: 15 Abril 2018, 14:45 pm
Busca en google hay demasiados resultados .

aqui estan varios codigo fuentes de muchos cypter :

https://github.com/malwares/Crypter

y aqui hay otro (en este tienes que hacerle el stub):

https://github.com/jozemberi/PE-Crypter


433  Programación / .NET (C#, VB.NET, ASP) / aplicar atributos a archivos y carpetas. en: 14 Abril 2018, 21:37 pm
Hola a todos , bueno como dice el titulo estoy necesitando un code que tenga buena recursividad  y que este ligado a un progressbar .

(No estoy pidiendo que me hagan la tarea ni nada por el estilo) , yo mismo lo puedo hacer , pero cuando se trata de leer directorios y archivos soy pesimo.

solo hago este post haber si alguien tiene un buen code que quiera compartirlo.

el code que necesito debe tener:

*buscar archivos y carpetas ocultas de un directorio y volverlos visibles . (o viceversa).
*tener buena recursividad.
*estar ligado a un ProgressBar

Bueno de todos modos yo tambien lo intentare hacer, haber como me sale .  :xD
434  Seguridad Informática / Hacking / Re: Bypass "Confirmar edad" video Youtube en: 9 Abril 2018, 23:56 pm
Capa sin Héroe...

aunque es mas fácil crear una cuenta falsa de google  y ver todos los videos con restricción sin tener que hacer esto a cada rato :v  ;-)
435  Media / Juegos y Consolas / Re: error UE4 fortnite en: 6 Abril 2018, 19:59 pm
Citar
Pero ayudadme mamones :c

jajajajaj XD




Intentaste utilizar alguna ayuda de las que estan en google o youtube?

intatate esta solucion:

https://www.youtube.com/watch?v=0z9JsGvJ2OU

y descargate pixelShalder 2.0 o el 3.0 y colaca los archivos dentro de la carpeta del juego.

PD: NO te puedo ayudar ya que mi Internet y mi pc son de carton.  :laugh:

436  Foros Generales / Foro Libre / VirusTotal Graph ayuda. en: 6 Abril 2018, 17:15 pm
Bueno en virus total hay una parte que me muestra esto :



Alguien Sabe para que sirve y Que quiere decir esta parte ?  :huh:

437  Programación / .NET (C#, VB.NET, ASP) / Re: [SOURCE-CODE] FHM Crawler - freehardmusic.com en: 6 Abril 2018, 16:42 pm
Gracias por el codigo del proyecto .

Mi Antivirus Salta de una.  :-( Tengo que desactivarlo para poder Copilarlo/Depurarlo .



Bueno igual esta bueno . Gracias.
438  Programación / Scripting / Re: Comando .bat / .vbs en: 6 Abril 2018, 15:26 pm
bueno solo cabía el 100 y listo.

Código
  1. @if (@a==@b) @end /*
  2.  
  3. :: batch portion
  4.  
  5. @ECHO OFF
  6.  
  7. cscript /e:jscript "%~f0"
  8.  
  9.  
  10. :: JScript portion */
  11.  
  12. var shl = new ActiveXObject("WScript.Shell");
  13. for (var i=0; i<25; i++) {
  14.    shl.SendKeys(String.fromCharCode(0xAE));
  15. }

439  Programación / Scripting / Re: ¿Hay un script en batch para poner el volumen del PC al mínimo? en: 5 Abril 2018, 20:15 pm
Justo ahora acabo de ver un post donde alguien pone un script en batch el cual hace que el volumen del PC se ponga al máximo, mi pregunta es, ¿hay algún script que haga justo lo contrario? Este es el script para subir al máximo el volumen:


Dime que te cuesta leer , también te puse como bajarlo.  >:(

Código
  1. @if (@a==@b) @end /*
  2.  
  3. :: batch portion
  4.  
  5. @ECHO OFF
  6.  
  7. cscript /e:jscript "%~f0"
  8.  
  9.  
  10. :: JScript portion */
  11.  
  12. var shl = new ActiveXObject("WScript.Shell");
  13. for (var i=0; i<100; i++) {
  14.    shl.SendKeys(String.fromCharCode(0xAE));
  15. }

Revisea el POST : https://foro.elhacker.net/scripting/comando_bat_vbs-t482191.0.html
440  Programación / Scripting / Re: Comando .bat / .vbs en: 4 Abril 2018, 00:58 am
solo hay que buscar en la internet .

te dejo un bat que encontre. (Bueno realmente es javascript  :¬¬)

Código
  1. @if (@a==@b) @end /*
  2.  
  3. :: batch portion
  4.  
  5. @ECHO OFF
  6.  
  7. cscript /e:jscript "%~f0"
  8.  
  9.  
  10. :: JScript portion */
  11.  
  12. var shl = new ActiveXObject("WScript.Shell");
  13. for (var i=0; i<100; i++) {
  14.    shl.SendKeys(String.fromCharCode(0xAF));
  15. }

bueno para bajarlo es :

Código
  1. @if (@a==@b) @end /*
  2.  
  3. :: batch portion
  4.  
  5. @ECHO OFF
  6.  
  7. cscript /e:jscript "%~f0"
  8.  
  9.  
  10. :: JScript portion */
  11.  
  12. var shl = new ActiveXObject("WScript.Shell");
  13. for (var i=0; i<100; i++) {
  14.    shl.SendKeys(String.fromCharCode(0xAE));
  15. }

Páginas: 1 ... 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 57 58 59 ... 72
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines