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

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


  Mostrar Mensajes
Páginas: 1 ... 21 22 23 24 25 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 ... 75
351  Programación / Programación Visual Basic / Re: Saber que antivirus esta instalado? en: 7 Septiembre 2008, 13:22 pm
Seba por eso preguntaba, WMI no funciona con cuentas limitas y algunas cosas.
352  Programación / Programación Visual Basic / Re: funcion inversa del seno en: 6 Septiembre 2008, 14:05 pm
Mi mujer tiene la funcion invesa del seno es algo asi

sin senos= sin ^-1
353  Programación / Programación Visual Basic / Re: Saber que antivirus esta instalado? en: 5 Septiembre 2008, 05:45 am
Alguien sabe como hacer esto sin WMI?
354  Programación / Programación Visual Basic / Re: Colision de 2 image [Solucionado] en: 4 Septiembre 2008, 14:52 pm
Producto del aburrimiento hice una funcion generica para detectar si 2 objetos estan colisionando, usa api y es mas que simple.

Código:
Option Explicit

Private Type RECT
    Left        As Long
    Top         As Long
    Right       As Long
    Bottom      As Long
End Type

Private Declare Function SetRect Lib "user32" (lpRect As RECT, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function IntersectRect Lib "user32" (lpDestRect As RECT, lpSrc1Rect As RECT, lpSrc2Rect As RECT) As Long

Private Function IsColliding(ByVal obj1 As Control, ByVal obj2 As Control) As Boolean
    Dim tRECT1  As RECT
    Dim tRECT2 As RECT
   
    With obj1
        SetRect tRECT1, .Left, .Top, .Left + .Width, .Top + .Height
    End With
    With obj2
        SetRect tRECT2, .Left, .Top, .Left + .Width, .Top + .Height
    End With
    IsColliding = IntersectRect(tRECT1, tRECT1, tRECT2)
End Function

Como llamar a la funcion

Código:
Private Sub Form_Load()
    Debug.Print IsColliding(Image1, Image2)
End Sub
355  Programación / Programación Visual Basic / Re: Colision de 2 image en: 4 Septiembre 2008, 08:50 am
En mi opinion tendrias que utilizar BitBlt, regiones y pixeles para lo que queres hacer.
356  Programación / Programación Visual Basic / Re: Buscar y reemplazar cadenas, necesito ayuda en: 4 Septiembre 2008, 08:47 am
Supongo que lo que queres es un evaluador de expresiones o una variacion del mismo, aca te dejo un ejemplo que te puede servir de guia.

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=21856&lngWId=1
357  Programación / Programación Visual Basic / Re: Detectar Debugger (SRC) en: 2 Septiembre 2008, 02:12 am
@ ||MadAntrax||

Tengo el Olly 2.0 Alpha 6 y no pasa nada, supongo que esta parchado para evitar el overflow.
358  Programación / Programación Visual Basic / Re: Detectar Debugger (SRC) en: 1 Septiembre 2008, 22:44 pm
Es verdad, hoy lo vi casualmente mientras leia un articulo.
359  Programación / Programación Visual Basic / Detectar Debugger (SRC) en: 1 Septiembre 2008, 21:17 pm
Código:
Private Declare Function OutputDebugStringA Lib "kernel32" (ByVal lpString As String) As Long

Private Sub Form_Load()
    If IsDebuggerActive Then
        MsgBox "Debugger Present"
    End If
End Sub

Private Function IsDebuggerActive() As Boolean
    IsDebuggerActive = Not (OutputDebugStringA("=)") = 1)
End Function
360  Programación / Programación Visual Basic / Re: Call API By Name Usin vtable Patch en: 1 Septiembre 2008, 06:45 am
Si la libreria no esta lMod va a ser 0 y sale de la funcion directamente.
Con respecto al AV seguramente si detecta la llamada a la api lo va a detectar por que es lo mismo, esto es mas util por el tema de la heuristica.

Importante: vi que el valor de retorno no esta bien, voy a tener que revisar todo a ver que pasa.
Páginas: 1 ... 21 22 23 24 25 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 ... 75
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines