|
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 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 -lib32y no se como solucionarlo, ya busque en google pero no funciona Gracias de antemano por la ayuda
|
|
|
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: %include "io.inc" %macro print 1 push eax push ecx mov eax, %1 mov ecx, 0 while: add ecx, 1 cmp byte [eax+ecx], 0 jmp PRINT_CHAR [eax+ecx-1] jne while pop ecx pop eax %endmacro %macro strcpy 2 push eax push ecx push edx push SI mov edx, %1 mov eax, %2 mov ecx, -1 .while: add ecx, 1 cmp byte [eax+ecx], 0 mov SI, [eax+ecx] mov [edx+ecx], SI jne .while pop SI pop edx pop ecx pop eax %endmacro ;segment data section .data msg db "Hola", 13, 0 section .bss msg2 resb 100 section .text global CMAIN CMAIN: xor eax, eax strcpy msg2, msg print msg2 ret 0
|
|
|
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: %macro printHelloWorld 0 section .data msg db "Hola mundo", 0 section .text push ecx mov ecx, -1 while: add ecx, 1 cmp byte [msg +ecx], 0 jmp PRINT_CHAR [msg +ecx] jne while pop ecx %endmacro section .text global CMAIN CMAIN: xor eax, eax printHelloWorld 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 Codigo sin bugs o algo parecido (puede que tenga errores ) %include "io.inc" %macro print 1 push eax push ecx mov eax, %1 mov ecx, -1 while: add ecx, 1 cmp byte [eax+ecx], 0 jmp PRINT_CHAR [eax+ecx] jne while pop ecx pop eax %endmacro %macro strcpy 2 push eax push ecx push edx push SI mov edx, %1 mov eax, %2 mov ecx, -1 .while: add ecx, 1 cmp byte [eax+ecx], 0 mov SI, [eax+ecx] mov [edx+ecx], SI jne .while pop SI pop edx pop ecx pop eax %endmacro ;segment data section .data msg db "Hola", 0 section .bss msg2 resb 100 section .text global CMAIN CMAIN: xor eax, eax strcpy msg2, msg print msg2 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 : %include "io.inc" %macro print 1 push eax push ecx mov eax, %1 mov ecx, -1 while: add ecx, 1 cmp byte [eax+ecx], 0 jmp PRINT_CHAR [eax+ecx] jne while pop ecx pop eax %endmacro %macro strcpy 2 push eax push ecx push edx push SI mov edx, %1 mov eax, %2 mov ecx, -1 .while: add ecx, 1 cmp byte [eax+ecx], 0 mov SI, [eax+ecx] mov [edx+ecx], SI jne .while pop SI pop edx pop ecx pop eax %endmacro ;segment data section .data msg db "Hola", 13, 0 section .bss msg2 resb 100 section .text global CMAIN CMAIN: xor eax, eax strcpy msg2, msg print msg2 ret 0
Gracias por su ayuda a todos los que respondieron Nos vemos
|
|
|
9
|
Programación / ASM / Variables macros de NASM
|
en: 20 Octubre 2021, 02:26 am
|
Hola gracias por las repuestas a esta pregunta Tengo el siguiente código de ensamblador nasm que no funciona pero no se porque: %include "io.inc" %macro print 1 %%msg2 dw 12 ; esta la linea del error :( push eax push ecx mov eax, %1 mov ecx, -1 while: add ecx, 1 cmp byte [eax+ecx], 0 jmp PRINT_CHAR [eax+ecx] jne while pop ecx pop eax %endmacro section .data msg db "Hola", 13, 0 section .text global CMAIN CMAIN: xor eax, eax print msg ret 0
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 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; %%msg2 db "Hola mundo"
No funciona Gracias por las respuestas Edit: Logre hacerlo funcionar con el siguiente codigo: %macro print 1 section .data msg2 db "Hola mundo"; section .text push eax push ecx mov eax, %1 mov ecx, -1 while: add ecx, 1 cmp byte [eax+ecx], 0 jmp PRINT_CHAR [eax+ecx] jne while pop ecx pop eax %endmacro
|
|
|
|
|
|
|