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

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Temas
Páginas: 1 [2] 3 4
11  Programación / Programación Visual Basic / Leer en memoria a partir de Address en: 25 Enero 2012, 16:14 pm
Hola, quería saber si se podía leer una variable de la memoria a partir del Adress.

Por ejemplo, en una aplicación llamada 'Pepito' hay una variable llamada 'Posición'. Bien, supongamos que el Address de 'Posición' es '674110', entonces... ¿Hay forma de obtener el valor de la variable 'Posición' partiendo desde el Address?

Desde ya Muchas Gracias.
12  Comunicaciones / Dispositivos Móviles (PDA's, Smartphones, Tablets) / [AYUDA] Enviar SMS a números cortos en: 14 Enero 2012, 21:05 pm
Hola, resulta que quiero enviar un sms al 27777 pero me descuenta como $7 de mi celular (Argentinos). Investigué y hay páginas web para enviar mensajes de texto gratuitamente, pero ninguna de las que probé funcionó para enviar al 27777. ¿Conocen alguna manera para enviar sms a números cortos gratuitamente?

Desde ya, Muchas Gracias

- Sebah97
13  Programación / Programación Visual Basic / Interrumpir GetKeyState en: 5 Agosto 2011, 18:53 pm
Bien... el problema es el siguiente, Determinado programa, usa GetKeyState (Lo comprobe bajandome el codigo fuente)... ¿Hay alguna manera de interrumpir el GetKeyState SOLO para Una aplicación que yo le pase como parámetro ? (Como Títutlo, hwnd, eso no importa)

Gracias de Antemano
14  Programación / Programación Visual Basic / Obtener pixel de una coordenada en: 10 Julio 2011, 22:08 pm
Hola,

Hice este Tema para preguntar si es posible lo siguiente...

Una función, un sub o lo que sea que busque un píxel ... ¿Cómo?

A la función , o sub o lo que sea XD, le paso un determinado color y si existe, me devuelve las coordenadas de ese píxel (X,Y).

En el caso que sea posible... ¿Me darían una pista de cómo hacerlo?

Espero que me puedan ayudar.

Gracias
15  Programación / Programación Visual Basic / [Ayuda] descifrar MD5String en: 19 Junio 2011, 20:53 pm
Hola, mi pregunta es ¿Cómo Puedo descifrar MD5string? Yo ya tengo la Función para cifrar, pero quisiera saber como descifrar una cadena ya cifrada, ¿Alguna Ayuda?

Acá les dejo la función para cifrar.

Código
  1. Private Declare Sub MDFile Lib "aamd532.dll" (ByVal f As String, ByVal R As String)
  2. Private Declare Sub MDStringFix Lib "aamd532.dll" (ByVal f As String, ByVal T As Long, ByVal R As String)
  3.  
  4. Private Function MD5String(P As String) As String
  5.  
  6.    Dim R As String * 32, T As Long
  7.    R = Space(32)
  8.    T = Len(P)
  9.    MDStringFix P, T, R
  10.    MD5String = R
  11.  
  12. End Function
  13.  
  14.  

Gracias de Antemano.
16  Programación / Programación Visual Basic / [Problema] HTML Object Library en: 17 Junio 2011, 19:50 pm
Hola Gente, me encontraba haciendo una aplicación que obtiene el link del juego de Minijuegos.

Con La referencia Microsoft HTML Object library, logré conseguir otros datos, como el link de la imagen por ejemplo.

Pero no puedo obtener el Link del Juego (El Swf)

Les dejo el código de la página aver si me pueden ayudar.

Código
  1. <script type="text/javascript">
  2.   var cms_id ='10877';
  3.   var cms_titulo ='Cricket Invasion';
  4.   var swf_url_juego ='http://www.minijuegosgratis.com/flash1234/no_hotlink/cricketinvasion.swf';
  5.   var swf_url_ancho =640;
  6.   var swf_url_alto =480;
  7.   var have_prev_ad = false;
  8.   var final_bkg_body ='';
  9.   var final_bkg_color ='';
  10. </script>

Como verán lo que quiero obtener es 'swf_url_juego' pero la verdad que nose como y tampoco se nada de html ni javascript, asi que nose que significa 'Var'.

Ojalá me puedan ayudar o darme otra forma de hacerlo, porque no puedo hacerlo andar con la Referencia!!!

Gracias de Antemano.
17  Programación / Programación Visual Basic / [AYUDA] Obtener text de un RichTextBox en: 19 Diciembre 2010, 06:28 am
hola bueno, queria preguntarles como hacer para obtener el text de un richtextbox.



como pueden ver en la imagen, en la consola (RichTextBox) de arriba una linea en blanco dice ' Debes tipear el comando /CENTINELA tdsf

bien si no lo escribo, el servidor automaticamente me baneara.

mi duda es como obtener la ultima linea del richtextbox, asi yo, cada X tiempo compruebo cual fue la ultima linea y si es Debes tipear el comando /CENTINELA xxx, con un sendkeys lo puedo hacer, bueno gracias de antemano

18  Programación / Programación Visual Basic / Bug en "MI" jueguito en: 6 Noviembre 2010, 23:33 pm
Bueno antes que nada pongo "MI" jueguito porque en realidad yo solo toke una parte xd.

bueno, vamos al grano:

miren, ya no recuerdo de donde, baje el codigo de un laberinto, y como me gusto mucho la idea,lo modifique:

Miren el original:

Código
  1. Option Explicit
  2.  
  3. ' The maze information.
  4. Private NumRows As Integer
  5. Private NumCols As Integer
  6. Private LegalMove() As Boolean
  7.  
  8. ' The size of a square.
  9. Private Const SQUARE_WID = 20
  10. Private Const SQUARE_HGT = 20
  11.  
  12. ' The player's position.
  13. Private PlayerR As Integer
  14. Private PlayerC As Integer
  15.  
  16. ' The end position.
  17. Private RFinish As Integer
  18. Private CFinish As Integer
  19.  
  20. Private StartTime As Single
  21.  
  22. ' Look for movement keys.
  23. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  24. Dim r As Integer
  25. Dim c As Integer
  26.  
  27.    r = PlayerR
  28.    c = PlayerC
  29.    Select Case KeyCode
  30.        Case vbKeyLeft
  31.            c = PlayerC - 1
  32.        Case vbKeyRight
  33.            c = PlayerC + 1
  34.        Case vbKeyDown
  35.            r = PlayerR + 1
  36.        Case vbKeyUp
  37.            r = PlayerR - 1
  38.        Case Else
  39.            Exit Sub
  40.    End Select
  41.  
  42.    If LegalMove(r, c) Then PositionPlayer r, c
  43. End Sub
  44.  
  45. ' Initialize the maze and player.
  46. Private Sub Form_Load()
  47.    ScaleMode = vbPixels
  48.    AutoRedraw = True
  49.    picPlayer.Visible = False
  50.  
  51.    ' Initialize the maze.
  52.    LoadMaze
  53. End Sub
  54.  
  55. ' Draw the maze.
  56. Private Sub DrawMaze()
  57. Dim r As Integer
  58. Dim c As Integer
  59. Dim clr As Long
  60.  
  61.    ' Start from scratch.
  62.    Cls
  63.  
  64.    For r = 1 To NumRows
  65.        For c = 1 To NumCols
  66.            If LegalMove(r, c) Then
  67.                If r = RFinish And c = CFinish Then
  68.                    clr = vbYellow
  69.                Else
  70.                    clr = vbWhite
  71.                End If
  72.            Else
  73.                clr = RGB(128, 128, 128)
  74.            End If
  75.            Line (c * SQUARE_WID, r * SQUARE_HGT)-Step(-SQUARE_WID, -SQUARE_HGT), clr, BF
  76.        Next c
  77.    Next r
  78. End Sub
  79.  
  80.  
  81. ' Initialize the maze.
  82. Private Sub LoadMaze()
  83. Dim fnum As Integer
  84. Dim r As Integer
  85. Dim c As Integer
  86. Dim ch As String
  87. Dim row_info As String
  88.  
  89.    ' Open the maze file.
  90.    fnum = FreeFile
  91.    Open App.Path & "\maze.dat" For Input As #fnum
  92.  
  93.    ' Read the number of rows and columns.
  94.    Input #fnum, NumRows, NumCols
  95.    ReDim LegalMove(1 To NumRows, 1 To NumCols)
  96.  
  97.    ' Read the data.
  98.    For r = 1 To NumRows
  99.        Line Input #fnum, row_info
  100.        For c = 1 To NumCols
  101.            ch = Mid$(row_info, c, 1)
  102.            LegalMove(r, c) = (ch <> "#")
  103.            If LCase$(ch) = "s" Then
  104.                ' It's the start.
  105.                PlayerR = r
  106.                PlayerC = c
  107.            ElseIf LCase$(ch) = "f" Then
  108.                ' It's the finish.
  109.                RFinish = r
  110.                CFinish = c
  111.            End If
  112.        Next c
  113.    Next r
  114.  
  115.    ' Close the file.
  116.    Close #fnum
  117.  
  118.    ' Size the form.
  119.    Width = ScaleX(SQUARE_WID * NumCols, ScaleMode, vbTwips) + _
  120.        Width - ScaleX(ScaleWidth, ScaleMode, vbTwips)
  121.    Height = ScaleY(SQUARE_HGT * NumRows, ScaleMode, vbTwips) + _
  122.        Height - ScaleY(ScaleHeight, ScaleMode, vbTwips)
  123.  
  124.    ' Draw the maze.
  125.    DrawMaze
  126.  
  127.    ' Position the player.
  128.    PositionPlayer PlayerR, PlayerC
  129.  
  130.    ' Save the start time.
  131.    StartTime = Timer
  132. End Sub
  133.  
  134. ' Draw the player.
  135. Private Sub PositionPlayer(r As Integer, c As Integer)
  136. Dim x As Single
  137. Dim y As Single
  138.  
  139.    ' Erase the player's old position.
  140.    If PlayerR > 0 Then
  141.        x = (PlayerC - 1) * SQUARE_WID + (SQUARE_WID - picPlayer.Width) / 2
  142.        y = (PlayerR - 1) * SQUARE_HGT + (SQUARE_HGT - picPlayer.Height) / 2
  143.        Line (x - 1, y - 1)-Step(picPlayer.Width, picPlayer.Height), vbWhite, BF
  144.    End If
  145.  
  146.    ' Move the player.
  147.    PlayerR = r
  148.    PlayerC = c
  149.  
  150.    ' Draw the player.
  151.    x = (c - 1) * SQUARE_WID + (SQUARE_WID - picPlayer.Width) / 2
  152.    y = (r - 1) * SQUARE_HGT + (SQUARE_HGT - picPlayer.Height) / 2
  153.    PaintPicture picPlayer.Picture, x, y
  154.  
  155.    ' See if the player reached the finish.
  156.    If r = RFinish And c = CFinish Then
  157.        If MsgBox("You finished in " & _
  158.            Int(Timer - StartTime) & " seconds." & _
  159.            vbCrLf & "Play again?", vbYesNo, _
  160.            "Congratulations") = vbYes _
  161.        Then
  162.            Form_Load
  163.        Else
  164.            Unload Me
  165.        End If
  166.    End If
  167. End Sub
  168.  
  169.  

Version sebah97

Código
  1. Option Explicit
  2.  
  3. ' The maze information.
  4. Private NumRows As Integer
  5. Private NumCols As Integer
  6. Private LegalMove() As Boolean
  7.  
  8. ' The size of a square.
  9. Private Const SQUARE_WID = 20
  10. Private Const SQUARE_HGT = 20
  11.  
  12. ' The player's position.
  13. Private PlayerR As Integer
  14. Private PlayerC As Integer
  15.  
  16. ' The end position.
  17. Private RFinish As Integer
  18. Private CFinish As Integer
  19.  
  20. Private StartTime As Single
  21. Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  22. Dim r As Integer
  23. Dim c As Integer
  24.  
  25.    r = PlayerR
  26.    c = PlayerC
  27.    Select Case KeyCode
  28.        Case vbKeyLeft
  29.            c = PlayerC - 1
  30.        Case vbKeyRight
  31.            c = PlayerC + 1
  32.        Case vbKeyDown
  33.            r = PlayerR + 1
  34.        Case vbKeyUp
  35.            r = PlayerR - 1
  36.        Case Else
  37.            Exit Sub
  38.    End Select
  39.  
  40.    If LegalMove(r, c) Then PositionPlayer r, c
  41. End Sub
  42.  
  43. ' Initialize the maze and player.
  44. Private Sub Form_Load()
  45.    ScaleMode = vbPixels
  46.    AutoRedraw = True
  47.    picPlayer.Visible = False
  48.  
  49.    ' Initialize the maze.
  50.    LoadMaze
  51. End Sub
  52.  
  53. ' Draw the maze.
  54. Private Sub DrawMaze()
  55. Dim r As Integer
  56. Dim c As Integer
  57. Dim Tile As String
  58.  
  59.    ' Start from scratch.
  60.    Cls
  61.  
  62.    For r = 1 To NumRows
  63.        For c = 1 To NumCols
  64.            If LegalMove(r, c) Then
  65.                If r = RFinish And c = CFinish Then
  66.                    EsLlegada c * SQUARE_HGT, r * SQUARE_WID
  67.                Else
  68.                     EsCamino c * SQUARE_HGT, r * SQUARE_WID
  69.                End If
  70.            Else
  71.                 EsPared c * SQUARE_HGT, r * SQUARE_WID
  72.            End If
  73.  
  74.        Next c
  75.    Next r
  76. End Sub
  77.  
  78.  
  79. ' Initialize the maze.
  80. Private Sub LoadMaze()
  81. Dim fnum As Integer
  82. Dim r As Integer
  83. Dim c As Integer
  84. Dim ch As String
  85. Dim row_info As String
  86.  
  87.    ' Open the maze file.
  88.    fnum = FreeFile
  89.    Open App.Path & "\maze.dat" For Input As #fnum
  90.  
  91.    ' Read the number of rows and columns.
  92.    Input #fnum, NumRows, NumCols
  93.    ReDim LegalMove(1 To NumRows, 1 To NumCols)
  94.  
  95.    ' Read the data.
  96.    For r = 1 To NumRows
  97.        Line Input #fnum, row_info
  98.        For c = 1 To NumCols
  99.            ch = Mid$(row_info, c, 1)
  100.            LegalMove(r, c) = (ch <> "#")
  101.            If LCase$(ch) = "s" Then
  102.                ' It's the start.
  103.                PlayerR = r
  104.                PlayerC = c
  105.            ElseIf LCase$(ch) = "f" Then
  106.                ' It's the finish.
  107.                RFinish = r
  108.                CFinish = c
  109.            End If
  110.        Next c
  111.    Next r
  112.  
  113.    ' Close the file.
  114.    Close #fnum
  115.  
  116.    ' Size the form.
  117.    Width = ScaleX(SQUARE_WID * NumCols, ScaleMode, vbTwips) + _
  118.        Width - ScaleX(ScaleWidth, ScaleMode, vbTwips)
  119.    Height = ScaleY(SQUARE_HGT * NumRows, ScaleMode, vbTwips) + _
  120.        Height - ScaleY(ScaleHeight, ScaleMode, vbTwips)
  121.  
  122.    ' Draw the maze.
  123.    DrawMaze
  124.  
  125.    ' Position the player.
  126.    PositionPlayer PlayerR, PlayerC
  127.  
  128.    ' Save the start time.
  129.    StartTime = Timer
  130. End Sub
  131.  
  132. ' Draw the player.
  133. Private Sub PositionPlayer(r As Integer, c As Integer)
  134. Dim x As Single
  135. Dim y As Single
  136.  
  137.    ' Erase the player's old position.
  138.    If PlayerR > 0 Then
  139.        x = (PlayerC - 1) * SQUARE_WID + (SQUARE_WID - picPlayer.Width) / 2
  140.        y = (PlayerR - 1) * SQUARE_HGT + (SQUARE_HGT - picPlayer.Height) / 2
  141.        Actualizar
  142.    End If
  143.  
  144.    ' Move the player.
  145.    PlayerR = r
  146.    PlayerC = c
  147.  
  148.    ' Draw the player.
  149.    x = (c - 1) * SQUARE_WID + (SQUARE_WID - picPlayer.Width) / 2
  150.    y = (r - 1) * SQUARE_HGT + (SQUARE_HGT - picPlayer.Height) / 2
  151.    PaintPicture picPlayer.Picture, x, y
  152.  
  153.    ' See if the player reached the finish.
  154.    If r = RFinish And c = CFinish Then
  155.        If MsgBox("You finished in " & _
  156.            Int(Timer - StartTime) & " seconds." & _
  157.            vbCrLf & "Play again?", vbYesNo, _
  158.            "Congratulations") = vbYes _
  159.        Then
  160.            Form_Load
  161.        Else
  162.            Unload Me
  163.        End If
  164.    End If
  165. End Sub
  166.  
  167. Sub EsCamino(x, y)
  168. Me.PaintPicture Picture1, x, y, 20, 20
  169. End Sub
  170. Sub EsLlegada(x, y)
  171.   Me.PaintPicture Picture3, x, y, 20, 20
  172. End Sub
  173. Sub EsPared(x, y)
  174.   Me.PaintPicture Picture2, x, y, 20, 20
  175. End Sub
  176.  
  177. Sub Actualizar()
  178. Form1.Cls
  179. DrawMaze
  180. End Sub
  181.  
  182.  

Si se dan cuenta, cambié, que en vez de que el camino sea un cuadradito blanco, y la pared sea un cuadrado gris, cambie para que con PaintPicture, dibuje texturas, bien eso funciona a la perfección.

pero el problema está en que están "corridas" las texturas.Por ejemplo, en la fila 2 hay camino y en la fila 1 hay pared,pero al momento de jugar el personaje se ve caminando sobre la fila 1, pero enrealidad esta caminando en la fila 2....


ojala que me puedan entender y ayudar...

Saludos y Gracias de Antemano
19  Programación / Programación Visual Basic / [AYUDA] Dibujar Punto en medio de la pantalla en: 1 Octubre 2010, 20:10 pm
Hola, bueno como dice el título.. Algien me podria ayudar??

Lo que quiero hacer es crear una mira para el Counter Strike (Seguramente lo Conocen),y al dibujar el punto que no moleste en NADA, osea como si fuera una manchita en el monitor (a lo que me refiero es que puedas cliquear x la zona donde está el punto).

Espero que me puedan ayudar.... Gracias de antemano

sebah97
20  Programación / Programación Visual Basic / [Ayuda] Mostrar lo que estoy escuchando en un Form en: 5 Septiembre 2010, 02:37 am
Como dice el título, eh buscado, pero solamente dice para mostrar en el MSN lo que estoy haciendo yo, osea un ej:

Si Tengo el form1 habierto que en el msn diga "FOrmulario 1 Abierto" o algo asi xD.

Pero lo que quiero yo es en MI formulario mostrar lo que se está escuchando, x ejemplo con el Ares, winamp, etc
Páginas: 1 [2] 3 4
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines