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


Tema destacado: AIO elhacker.NET 2021 Compilación herramientas análisis y desinfección malware


  Mostrar Mensajes
Páginas: 1 ... 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 [919] 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 ... 1254
9181  Programación / Desarrollo Web / ¿Cual es el tamaño máximo para un source HTML? en: 29 Mayo 2013, 01:11 am
Hola.

Esto es pura curiosidad...

Me estaba preguntando cuanto tardaría en pulir un parser para los tags de un sitio específico, y esa pregunta me ha llevado a otra un poco ridícula quizás:
¿Cuanto tardaría en parsear un html de 100 mb?, y esta pregunta me lleva a la pregunta que reálmente quiero hacer (por curiosidad):

- ¿Existe un tamaño límite especificado en el lenguaje html?

...Es decir, ¿Si un html sobrepasa X tamaño (o número de líneas) es posible que el intérprete del navegador no pueda interpretar el código?

...¿Puede existir por la inmensa Internet un html de 2 Gb por ejemplo?, sé que es un tamaño descomunal, debería contener millones de líneas escritas, pero ahí tengo esa duda xD

Saludos!
9182  Programación / .NET (C#, VB.NET, ASP) / Re: [Duda] Mostrar nueva pantalla sin cambiar de Form en: 29 Mayo 2013, 00:20 am
Usa paneles.




saludos
9183  Informática / Software / Re: Ikillnukes Launcher! :) (WIP) en: 28 Mayo 2013, 23:49 pm
Creo que eso es bastante ofensivo y discriminatorio...

Tienes razón, a veces se me va la boca sin pensar.
...Rectificado, espero que nadie más se haya molestado.

Saludos
9184  Informática / Software / Re: Ikillnukes Launcher! :) (WIP) en: 28 Mayo 2013, 23:39 pm
@Seazoux
pásame el proyecto please, que sé que dryv a echo muchas cosas ahí y a lo mejor me sale algún snippet de la class "basdeclaraciones.vb" xD (¿Era de este proyecto, no?)

Saludos de nuevo xD
9185  Informática / Software / Re: Ikillnukes Launcher! :) (WIP) en: 28 Mayo 2013, 23:35 pm
Antes de nada, esto debería en en programación.

Mi puntuación: 6.8

Mis Pros:
Diseño original, con sus elementos hechas por uno mismo.
Los botones de colores me gustan, me los imagino con una imagen de fondo (de algunos juegos) y creo que sí, que quedarán bien.
TitleBar customizado.

Mis Contras:
El background es muy típico y bastante cutre (sacado de google)
El contraste del texto del logo de la calavera con el background es malo, no pega nada, añadele un borde blanco de 3 pixels a alas letras.
La flecha de los 2 botones laterales no me gusta, tienen un sombreado extraño (grande) y demasiado resaltado 3D, tampoco me gusta esa forma de flecha.
Los botones del Framework son muy cuadrados, cuando todo lo demás está bastante redondeado , no pegan esos botones cuadrados ahí.
No hay opción para minimizar.

Saludos!
9186  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 28 Mayo 2013, 18:39 pm
Sección de ayuda para aplicaciones CommandLine.



Código
  1. #Region " Help Section "
  2.  
  3.    Private Sub Help()
  4.  
  5.        Dim Logo As String = <a><![CDATA[
  6. .____                        
  7. |    |    ____   ____   ____  
  8. |    |   /  _ \ / ___\ /  _ \
  9. |    |__(  <_> ) /_/  >  <_> )
  10. |_______ \____/\___  / \____/
  11.        \/    /_____/    By Elektro H@cker
  12. ]]></a>.Value
  13.  
  14.        Dim Help As String = <a><![CDATA[  
  15.  
  16. [+] Syntax:
  17.  
  18.    Program.exe [FILE] [SWITCHES]
  19.  
  20. [+] Switches:
  21.  
  22.    /Switch1   | Description.    (Default Value: X)
  23.    /Switch2   | Description.
  24.    /? (or) -? | Show this help.
  25.  
  26. [+] Switch value Syntax:
  27.  
  28.    /Switch1   (ms)
  29.    /Switch2   (X,Y)
  30.  
  31. [+] Usage examples:
  32.  
  33.    Program.exe "C:\File.txt" /Switch1
  34.    (Short explanation)
  35.  
  36. ]]></a>.Value
  37.  
  38.        Console.WriteLine(Logo & Help)
  39.        Application.Exit()
  40.  
  41.    End Sub
  42.  
  43. #End Region
9187  Programación / .NET (C#, VB.NET, ASP) / Re: Librería de Snippets !! (Posteen aquí sus snippets) en: 28 Mayo 2013, 17:24 pm
Una class para grabar tareas del mouse (mover el mouse aquí, clickar botón izquierdo hallá, etc)

De momento solo he conseguido implementar los botones del mouse izquierdo/derecho.

Saludos.



Código
  1. #Region " Record Mouse Class "
  2.  
  3. ' [ Record Mouse Functions ]
  4. '
  5. ' // By Elektro H@cker
  6. '
  7. ' Examples :
  8. ' Record_Mouse.Start_Record()
  9. ' Record_Mouse.Stop_Record()
  10. ' Record_Mouse.Play() : While Not Record_Mouse.Play_Is_Completed : Application.DoEvents() : End While
  11. ' Record_Mouse.Mouse_Speed = 50
  12.  
  13. Public Class Record_Mouse
  14.  
  15.    ''' <summary>
  16.    ''' Sets the speed of recording/playing the mouse actions.
  17.    ''' Default value is 25.
  18.    ''' </summary>
  19.    Public Shared Mouse_Speed As Int64 = 30
  20.  
  21.    ''' <summary>
  22.    ''' Gets the status pf the current mouse play.
  23.    ''' False = Mouse task is still playing.
  24.    ''' True = Mouse task play is done.
  25.    ''' </summary>
  26.    Public Shared Play_Is_Completed As Boolean
  27.  
  28.    ' Where the mouse coordenates will be stored:
  29.    Private Shared Coordenates_List As New List(Of Point)
  30.    ' Where the mouse clicks will be stored:
  31.    Private Shared Clicks_Dictionary As New Dictionary(Of Int64, MouseButton)
  32.    ' Timer to record the mouse:
  33.    Private Shared WithEvents Record_Timer As New Timer
  34.    ' Button click count to rec/play clicks:
  35.    Private Shared Click_Count As Int32 = 0
  36.    ' Thread to reproduce the mouse actions:
  37.    Private Shared Thread_MousePlay_Var As System.Threading.Thread = New Threading.Thread(AddressOf Thread_MousePlay)
  38.    ' API to record the current mouse button state:
  39.    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  40.    ' API to reproduce a mouse button click:
  41.    Private Declare Sub Mouse_Event Lib "User32" Alias "mouse_event" (ByVal dwFlags As MouseButton, ByVal dx As Integer, ByVal dy As Integer, ByVal dwData As Integer, ByVal dwExtraInfo As Integer)
  42.    ' GetAsyncKeyState buttons status
  43.    Private Shared Last_ClickState_Left As Int64 = -1
  44.    Private Shared Last_ClickState_Right As Int64 = -1
  45.    Private Shared Last_ClickState_Middle As Int64 = -1
  46.  
  47.    Enum MouseButton
  48.  
  49.        Left_Down = &H2    ' Left button (hold)
  50.        Left_Up = &H4      ' Left button (release)
  51.  
  52.        Right_Down = &H8   ' Right button (hold)
  53.        Right_Up = &H10    ' Right button (release)
  54.  
  55.        Middle_Down = &H20 ' Middle button (hold)
  56.        Middle_Up = &H40   ' Middle button (release)
  57.  
  58.        Left               ' Left   button (press)
  59.        Right              ' Right  button (press)
  60.        Middle             ' Middle button (press)
  61.  
  62.    End Enum
  63.  
  64.    ''' <summary>
  65.    ''' Starts recording the mouse actions over the screen.
  66.    ''' It records the position of the mouse and left/right button clicks.
  67.    ''' </summary>
  68.    Public Shared Sub Start_Record()
  69.  
  70.        ' Reset vars:
  71.        Play_Is_Completed = False
  72.        Coordenates_List.Clear() : Clicks_Dictionary.Clear()
  73.        Last_ClickState_Left = -1 : Last_ClickState_Right = -1 : Last_ClickState_Middle = -1
  74.        Click_Count = 0
  75.  
  76.        ' Set Mouse Speed
  77.        Record_Timer.Interval = Mouse_Speed
  78.  
  79.        ' Start Recording:
  80.        Record_Timer.Start()
  81.  
  82.    End Sub
  83.  
  84.    ''' <summary>
  85.    ''' Stop recording the mouse actions.
  86.    ''' </summary>
  87.    Public Shared Sub Stop_Record()
  88.        Record_Timer.Stop()
  89.    End Sub
  90.  
  91.    ''' <summary>
  92.    ''' Reproduce the mouse actions.
  93.    ''' </summary>
  94.    Public Shared Sub Play()
  95.        Thread_MousePlay_Var = New Threading.Thread(AddressOf Thread_MousePlay)
  96.        Thread_MousePlay_Var.IsBackground = True
  97.        Thread_MousePlay_Var.Start()
  98.    End Sub
  99.  
  100.    ' Procedure used to store the mouse actions
  101.    Private Shared Sub Record_Timer_Tick(sender As Object, e As EventArgs) Handles Record_Timer.Tick
  102.  
  103.        Coordenates_List.Add(Control.MousePosition)
  104.  
  105.        ' Record Left click
  106.        If Not Last_ClickState_Left = GetAsyncKeyState(1) Then
  107.            Last_ClickState_Left = GetAsyncKeyState(1)
  108.            If GetAsyncKeyState(1) = 32768 Then
  109.                Click_Count += 1
  110.                Coordenates_List.Add(Nothing)
  111.                Clicks_Dictionary.Add(Click_Count, MouseButton.Left_Down)
  112.            ElseIf GetAsyncKeyState(1) = 0 Then
  113.                Click_Count += 1
  114.                Coordenates_List.Add(Nothing)
  115.                Clicks_Dictionary.Add(Click_Count, MouseButton.Left_Up)
  116.            End If
  117.        End If
  118.  
  119.        ' Record Right click
  120.        If Not Last_ClickState_Right = GetAsyncKeyState(2) Then
  121.            Last_ClickState_Right = GetAsyncKeyState(2)
  122.            If GetAsyncKeyState(2) = 32768 Then
  123.                Click_Count += 1
  124.                Coordenates_List.Add(Nothing)
  125.                Clicks_Dictionary.Add(Click_Count, MouseButton.Right_Down)
  126.            ElseIf GetAsyncKeyState(2) = 0 Then
  127.                Click_Count += 1
  128.                Coordenates_List.Add(Nothing)
  129.                Clicks_Dictionary.Add(Click_Count, MouseButton.Right_Up)
  130.            End If
  131.        End If
  132.  
  133.        ' Record Middle click
  134.        If Not Last_ClickState_Middle = GetAsyncKeyState(4) Then
  135.            Last_ClickState_Middle = GetAsyncKeyState(4)
  136.            If GetAsyncKeyState(4) = 32768 Then
  137.                Click_Count += 1
  138.                Coordenates_List.Add(Nothing)
  139.                Clicks_Dictionary.Add(Click_Count, MouseButton.Middle_Down)
  140.            ElseIf GetAsyncKeyState(4) = 0 Then
  141.                Click_Count += 1
  142.                Coordenates_List.Add(Nothing)
  143.                Clicks_Dictionary.Add(Click_Count, MouseButton.Middle_Up)
  144.            End If
  145.        End If
  146.  
  147.    End Sub
  148.  
  149.    ' Procedure to play a mouse button (click)
  150.    Private Shared Sub Mouse_Click(ByVal MouseButton As MouseButton)
  151.        Select Case MouseButton
  152.            Case MouseButton.Left : Mouse_Event(MouseButton.Left_Down, 0, 0, 0, 0) : Mouse_Event(MouseButton.Left_Up, 0, 0, 0, 0)
  153.            Case MouseButton.Right : Mouse_Event(MouseButton.Right_Down, 0, 0, 0, 0) : Mouse_Event(MouseButton.Right_Up, 0, 0, 0, 0)
  154.            Case MouseButton.Middle : Mouse_Event(MouseButton.Middle_Down, 0, 0, 0, 0) : Mouse_Event(MouseButton.Middle_Up, 0, 0, 0, 0)
  155.            Case Else : Mouse_Event(MouseButton, 0, 0, 0, 0)
  156.        End Select
  157.    End Sub
  158.  
  159.    ' Thread used for reproduce the mouse actions
  160.    Private Shared Sub Thread_MousePlay()
  161.  
  162.        Click_Count = 0
  163.        Clicks_Dictionary.Item(0) = Nothing
  164.  
  165.        For Each Coordenate In Coordenates_List
  166.  
  167.            Threading.Thread.Sleep(Mouse_Speed)
  168.  
  169.            If Coordenate = Nothing Then
  170.                Click_Count += 1
  171.                If Click_Count > 1 Then
  172.                    Mouse_Click(Clicks_Dictionary.Item(Click_Count))
  173.                End If
  174.            Else
  175.                Cursor.Position = Coordenate
  176.            End If
  177.  
  178.        Next
  179.  
  180.        Mouse_Click(MouseButton.Left_Up)
  181.        Mouse_Click(MouseButton.Right_Up)
  182.        Mouse_Click(MouseButton.Middle_Up)
  183.  
  184.        Play_Is_Completed = True
  185.  
  186.    End Sub
  187.  
  188. End Class
  189.  
  190. #End Region
9188  Programación / Scripting / Re: Un renombrador en batch para imagenes en: 27 Mayo 2013, 21:15 pm
En win 7 no funca la wapada.

(Yo uso Windows 7 como SO principal.)

Asegúrate que estos valores son correctos:

Citar
Código:
Set "Pattern=*.jpg"
Set "Replace=300x250"

Es decir que las imágenes sean jpg y que tengan el string "300x250" en el nombre del archivo.

Si no has modificado nada no se me ocurre porque no te funciona, pero el código en si mismo funciona como debe.

Saludos
9189  Programación / .NET (C#, VB.NET, ASP) / Re: Como sobreescribir un txt en visual basic .net en: 27 Mayo 2013, 20:08 pm
Aquí tienes mi versión:

Código
  1. #Region " Replace TextFile Line "
  2.  
  3.    ' [ Replace TextFile Line Function ]
  4.    '
  5.    ' // By Elektro H@cker
  6.    '
  7.    ' Examples :
  8.    ' Replace_TextFile_Line("C:\File.txt", 1, "Hello world!")
  9.    ' Replace_TextFile_Line("C:\File.txt", 3, True)
  10.    ' If Replace_TextFile_Line("C:\File.txt", 5, "Elektro H@cker") Then ...
  11.  
  12.    Private Function Replace_TextFile_Line(ByVal Text_File As String, _
  13.                                           ByVal Line_Number As Int64, _
  14.                                           ByVal New_Text As Object) As Boolean
  15.  
  16.        Line_Number -= 1 : If Line_Number < 0 _
  17.        Then Throw New Exception("Line Number can't be a negative value")
  18.  
  19.        Try
  20.            Dim Lines_Array() As String = IO.File.ReadAllLines(Text_File)
  21.            Lines_Array(Line_Number) = New_Text
  22.            IO.File.WriteAllLines(Text_File, Lines_Array)
  23.            Return True
  24.        Catch ex As Exception
  25.            MsgBox(ex.Message)
  26.            Return False
  27.        End Try
  28.  
  29.    End Function
  30.  
  31. #End Region

Saludos.
9190  Programación / Scripting / Re: Indicar al Batch que el caracter no se usara como modificador en: 27 Mayo 2013, 19:26 pm
Cierra el valor con comillas dobles:
Código:
/password:"GS/123++"

Saludos
Páginas: 1 ... 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 [919] 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 ... 1254
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines