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

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


  Mostrar Mensajes
Páginas: 1 ... 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 [441] 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 ... 620
4401  Programación / Ingeniería Inversa / Re: [Tutorial] Programar un patcher/crack con estilo en: 23 Mayo 2013, 00:05 am
Hola Naybi!

Si quieres plantear un problema en particular, te recomiendo crear un nuevo post para hacerlo.

Saludos! (y Bienvenida!   :))
4402  Programación / Programación Visual Basic / Re: Problemas con dll EZTW32.dll en: 22 Mayo 2013, 21:12 pm
Es un control pago: http://www.data-tech.com/products/imaging/imagemannettwain.aspx

Para opciones free, te recomiendo revisar estos proyectos: http://sourceforge.net/directory/os:windows/freshness:recently-updated/?q=twain

Saludos!
4403  Programación / ASM / Re: Problema con Función.. en: 22 Mayo 2013, 01:24 am
Ya lo habia puesto:

La ayuda dice:


szCmp


szCmp proc str1:DWORD,str2:DWORD


Description

szCmp compares two zero terminated strings for difference.


Parameters

1. str1 The first string to compare
2. str2 The second string to compare


Return Value

If the two strings match, the return value is the length of the string. If there is no match, the return value is zero.


Comments

The procedure can be used on strings that may be of uneven length as the terminator will produce the mismatch even if the rest of the charactes match.


Cabe destacar que el valor de retorno es en EAX.

Saludos!
4404  Programación / Programación General / Re: Hay alguna otra forma de obtener el ID del procesador sin WMI en C#. en: 22 Mayo 2013, 00:02 am
Probaste esto: http://msdn.microsoft.com/en-us/library/hskdteyh(v=vs.80).aspx

PD: Revisa los comments del final.

Saludos!
4405  Programación / Programación Visual Basic / Re: Problemas con dll EZTW32.dll en: 21 Mayo 2013, 22:02 pm
Por lo que veo, te llevan aqui:

http://www.data-tech.com/help/imnettwain/DTI.ImageMan.Twain~DTI.ImageMan.Twain.TwainGui.html

Y aqui esta como usar ese componente:

http://www.data-tech.com/help/imnettwain/Using%20the%20TwainGUI%20Control.html

Nada de c-sharpcorner.com...  :P

Saludos!
4406  Programación / ASM / Re: Problema con Función.. en: 21 Mayo 2013, 05:37 am
Si usas la lib de masm y llamas a szCmp, te genera el siguiente codigo:

Código
  1.    MOV ECX,DWORD PTR SS:[ESP+4]
  2.    MOV EDX,DWORD PTR SS:[ESP+8]
  3.    PUSH EBX
  4.    PUSH ESI
  5.    MOV EAX,-1
  6.    MOV ESI,1
  7. Bucle:
  8.    ADD EAX,ESI
  9.    MOVZX EBX,BYTE PTR DS:[EAX+ECX]
  10.    CMP BL,BYTE PTR DS:[EAX+EDX]
  11.    JNZ NoIgual
  12.    TEST EBX,EBX
  13.    JE Iguales
  14.    ADD EAX,ESI
  15.    MOVZX EBX,BYTE PTR DS:[EAX+ECX]
  16.    CMP BL,BYTE PTR DS:[EAX+EDX]
  17.    JNZ NoIgual
  18.    TEST EBX,EBX
  19.    JE Iguales
  20.    ADD EAX,ESI
  21.    MOVZX EBX,BYTE PTR DS:[EAX+ECX]
  22.    CMP BL,BYTE PTR DS:[EAX+EDX]
  23.    JNZ NoIgual
  24.    TEST EBX,EBX
  25.    JE Iguales
  26.    ADD EAX,ESI
  27.    MOVZX EBX,BYTE PTR DS:[EAX+ECX]
  28.    CMP BL,BYTE PTR DS:[EAX+EDX]
  29.    JNZ NoIgual
  30.    TEST EBX,EBX
  31.    JNZ Bucle
  32. Iguales:
  33.    POP ESI
  34.    POP EBX
  35.    RETN 8
  36. NoIgual:
  37.    XOR EAX,EAX
  38.    POP ESI
  39.    POP EBX
  40.    RETN 8
  41.  

El largo, pero efectivo (la comparación es Case-Sentive).

La ayuda dice:


szCmp


szCmp proc str1:DWORD,str2:DWORD


Description

szCmp compares two zero terminated strings for difference.


Parameters

1. str1 The first string to compare
2. str2 The second string to compare


Return Value

If the two strings match, the return value is the length of the string. If there is no match, the return value is zero.


Comments

The procedure can be used on strings that may be of uneven length as the terminator will produce the mismatch even if the rest of the charactes match.
4407  Programación / ASM / Re: Problema con Función.. en: 21 Mayo 2013, 02:20 am
Creo que me esta tomando la dirección de memoria, no el contenido.. pues si pongo la misma cadena a comparar si funciona.. pero.. por que ? y como debería aclarar que quiero el contenido y no la dirección de memoria ?

Quitale los [] a los LEA y prueba.

MASM deberia tomar los params directamente, sin tener que de-referenciar...
4408  Programación / ASM / Re: Problema con Función.. en: 21 Mayo 2013, 01:28 am
Por las dudas, un strlen:

Código
  1. strlen proc string:PSTR
  2. push edx
  3. xor eax,eax
  4. mov edx, dword ptr[string]
  5. _isNull:
  6. cmp byte ptr[edx+eax],0
  7. je _strlencmplte
  8. inc eax
  9. jmp _isNull
  10. _strlencmplte:
  11. pop edx
  12. ret
  13. strlen endp
  14.  

Sacado de: http://www.enigmagroup.org/forums/asm/strlen(-char*-string-)-in-masm/
4409  Programación / ASM / Re: Problema con Función.. en: 21 Mayo 2013, 01:20 am
No tengo para probar aca, pero podrias usar la lib de masm para sacar el len del string...
4410  Programación / ASM / Re: Problema con Función.. en: 21 Mayo 2013, 01:07 am
Y declarando la funcion con proc?

Probaste?
Páginas: 1 ... 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 [441] 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 ... 620
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines