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

 

 


Tema destacado: Arreglado, de nuevo, el registro del warzone (wargame) de EHN


  Mostrar Mensajes
Páginas: [1] 2
1  Comunicaciones / Android / Para que sirve Magisk? en: 20 Mayo 2023, 07:16 am
Hola a todos y gracias de antemano  ;D
Recientemente he estado buscando formas de hacer un root a mi huawei y9a y entre ellas me encontre la de usar magisk con boot.img, mi duda es que basicamente lo que le hace magisk al boot.img es parchearlo para activarle root a android? y si es asi, siempre funciona el parche o se corrompe el boot.img?

Edit:
Otra duda, podria volver a comprimir el boot.img con el update.app para poderlo flashear/instalar normalmente en un huawei?
2  Sistemas Operativos / GNU/Linux / Error al iniciar el arranque de grub en: 18 Marzo 2022, 00:35 am
Hola, tengo un problema y es que siempre que la mi laptop se reiniciar al volverse a encender me aparece el mismo error de grub:

error: unknown filesystem.
grub rescue>

Se como solucionarlo usando el comando set y todo pero es algo tedioso que siempre vuelva a aparecer a pesar de que lo arregle una y otra vez, ya intenté editar el archivo de configuración de grub para que esté seleccionada las partición correcta pero aún así no funciona.
Tengo instalado Windows 10 y Kali Linux
De antemano gracias por la ayuda  ;)
3  Programación / ASM / Error de ld en nasm en: 2 Noviembre 2021, 03:17 am
Hola, tengo el siguiente error de ld:
c:/program files (x86)/sasm/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find -lib32

y no se como solucionarlo, ya busque en google pero no funciona  :-(
Gracias de antemano por la ayuda ;D
4  Programación / ASM / Re: Como puedo hacer que este código ensamblador funcione? en: 25 Octubre 2021, 22:36 pm
Creo que esta es la solucion:
Código
  1. %include "io.inc"
  2. %macro print 1
  3.    push eax
  4.    push ecx
  5.    mov eax, %1
  6.    mov ecx, 0
  7.    while:
  8.    add ecx, 1
  9.    cmp byte [eax+ecx], 0
  10.    jmp PRINT_CHAR [eax+ecx-1]
  11.    jne while
  12.    pop ecx
  13.    pop eax
  14. %endmacro
  15. %macro strcpy 2
  16.    push eax
  17.    push ecx
  18.    push edx
  19.    push SI
  20.    mov edx, %1
  21.    mov eax, %2
  22.    mov ecx, -1
  23.    .while:
  24.    add ecx, 1
  25.    cmp byte [eax+ecx], 0
  26.    mov SI, [eax+ecx]
  27.    mov [edx+ecx], SI
  28.    jne .while
  29.    pop SI
  30.    pop edx
  31.    pop ecx
  32.    pop eax
  33. %endmacro
  34. ;segment data
  35. section .data
  36. msg db "Hola", 13, 0
  37. section .bss
  38. msg2 resb 100
  39. section .text
  40. global CMAIN
  41. CMAIN:
  42.    xor eax, eax
  43.    strcpy msg2, msg
  44.    print msg2
  45.    ret 0
;D
5  Programación / ASM / Re: Como puedo hacer que este código ensamblador funcione? en: 25 Octubre 2021, 05:14 am
De hecho solo se pueden imprimir cadenas usando el terminador nulo como en C  ;D
6  Programación / ASM / Re: Variables macros de NASM en: 20 Octubre 2021, 23:29 pm
msg2 es una variable de ejemplo que quiero utilizar para imprimir un Hola mundo
Ejemplo:
Código
  1.  
  2. %macro printHelloWorld 0
  3. section .data
  4.    msg db "Hola mundo", 0
  5.    section .text
  6.    push ecx
  7.    mov ecx, -1
  8.    while:
  9.    add ecx, 1
  10.    cmp byte [msg +ecx], 0
  11.    jmp PRINT_CHAR [msg +ecx]
  12.    jne while
  13.    pop ecx
  14. %endmacro
  15. section .text
  16. global CMAIN
  17. CMAIN:
  18.    xor eax, eax
  19.    printHelloWorld
  20.    ret 0
7  Programación / ASM / Re: Como puedo hacer que este código ensamblador funcione? en: 20 Octubre 2021, 23:24 pm
Según Wikipedia:
https://es.wikipedia.org/wiki/Strcpy
 La sintaxis de strcopy esta bien  ;D
Codigo sin bugs o algo parecido (puede que tenga errores  :()
Código
  1. %include "io.inc"
  2. %macro print 1
  3.    push eax
  4.    push ecx
  5.    mov eax, %1
  6.    mov ecx, -1
  7.    while:
  8.    add ecx, 1
  9.    cmp byte [eax+ecx], 0
  10.    jmp PRINT_CHAR [eax+ecx]
  11.    jne while
  12.    pop ecx
  13.    pop eax
  14. %endmacro
  15. %macro strcpy 2
  16.    push eax
  17.    push ecx
  18.    push edx
  19.    push SI
  20.    mov edx, %1
  21.    mov eax, %2
  22.    mov ecx, -1
  23.    .while:
  24.    add ecx, 1
  25.    cmp byte [eax+ecx], 0
  26.    mov SI, [eax+ecx]
  27.    mov [edx+ecx], SI
  28.    jne .while
  29.    pop SI
  30.    pop edx
  31.    pop ecx
  32.    pop eax
  33. %endmacro
  34. ;segment data
  35. section .data
  36. msg db "Hola", 0
  37. section .bss
  38. msg2 resb 100
  39. section .text
  40. global CMAIN
  41. CMAIN:
  42.    xor eax, eax
  43.    strcpy msg2, msg
  44.    print msg2
  45.    ret 0
8  Programación / ASM / Re: Como puedo hacer que este código ensamblador funcione? en: 20 Octubre 2021, 17:39 pm
Ya arregle el código  :D:
Código
  1. %include "io.inc"
  2. %macro print 1
  3.    push eax
  4.    push ecx
  5.    mov eax, %1
  6.    mov ecx, -1
  7.    while:
  8.    add ecx, 1
  9.    cmp byte [eax+ecx], 0
  10.    jmp PRINT_CHAR [eax+ecx]
  11.    jne while
  12.    pop ecx
  13.    pop eax
  14. %endmacro
  15. %macro strcpy 2
  16.    push eax
  17.    push ecx
  18.    push edx
  19.    push SI
  20.    mov edx, %1
  21.    mov eax, %2
  22.    mov ecx, -1
  23.    .while:
  24.    add ecx, 1
  25.    cmp byte [eax+ecx], 0
  26.    mov SI, [eax+ecx]
  27.    mov [edx+ecx], SI
  28.    jne .while
  29.    pop SI
  30.    pop edx
  31.    pop ecx
  32.    pop eax
  33. %endmacro
  34. ;segment data
  35. section .data
  36. msg db "Hola", 13, 0
  37. section .bss
  38. msg2 resb 100
  39. section .text
  40. global CMAIN
  41. CMAIN:
  42.    xor eax, eax
  43.    strcpy msg2, msg
  44.    print msg2
  45.    ret 0
Gracias por su ayuda  a todos los que respondieron ;D
Nos vemos  ;)
9  Programación / ASM / Variables macros de NASM en: 20 Octubre 2021, 02:26 am
Hola  :D gracias por las repuestas a esta pregunta :)
Tengo el siguiente código de ensamblador nasm que no funciona  :-\ pero no se porque:
Código
  1. %include "io.inc"
  2. %macro print 1
  3.    %%msg2 dw 12 ; esta la linea del error :(
  4.    push eax
  5.    push ecx
  6.    mov eax, %1
  7.    mov ecx, -1
  8.    while:
  9.    add ecx, 1
  10.    cmp byte [eax+ecx], 0
  11.    jmp PRINT_CHAR [eax+ecx]
  12.    jne while
  13.    pop ecx
  14.    pop eax
  15. %endmacro
  16. section .data
  17. msg db "Hola", 13, 0
  18. section .text
  19. global CMAIN
  20. CMAIN:
  21.    xor eax, eax
  22.    print msg
  23.    ret 0
  24.  
Mi intención con esto es crear una variable en una macro para usarla en un bucle, esta en una macro que imprime caracteres para que sepa si funciona o no  ;D pero no funciona  :(, si cambio el valor de 12 a 500 o 250, se traba el programa y no ejecuta :(, tambien si uso algo como;
Código
  1. %%msg2 db "Hola mundo"
No funciona
Gracias por las respuestas :)
Edit:
Logre hacerlo funcionar con el siguiente codigo:
Código
  1. %macro print 1
  2. section .data
  3.    msg2 db "Hola mundo";
  4.    section .text
  5.    push eax
  6.    push ecx
  7.    mov eax, %1
  8.    mov ecx, -1
  9.    while:
  10.    add ecx, 1
  11.    cmp byte [eax+ecx], 0
  12.    jmp PRINT_CHAR [eax+ecx]
  13.    jne while
  14.    pop ecx
  15.    pop eax
  16. %endmacro
10  Programación / ASM / Re: Como puedo hacer que este código ensamblador funcione? en: 20 Octubre 2021, 02:20 am
Hola gracias por responder  ;D, al parecer sigue tirando el mismo error  :-\
Páginas: [1] 2
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines