nasm
nasm, read syscall reads over buffer size
I have the following code. It works ok except one thing which limits its usage in other programs. When I run it in the debugger, Linux read system call returns value always bigger than the specified b[详细]
2023-04-13 06:30 分类:问答Segmentation fault by replacing an instruction with another that does the same job. Why?
I have this working shellcode that spawns a shell I have to modify it such that I hide \"/bin/sh\" or \"sh\" coming anywhere in the binary after compiling. I have hence thought of taking the hex value[详细]
2023-04-12 14:57 分类:问答Loading 2nd stage of bootloader and starting it [duplicate]
This question already has answers here: How to load second stage boot loader from first stage? (3 answers)[详细]
2023-04-11 20:12 分类:问答Segmentation Fault when compiling in Red hat but working fine with ubuntu
Here is a code that i am executing. its giving the desired output on ubuntu with NASM 2.08 but gives a segmentation fault when compiled with Red Hat 7.3 running NASM 0.98.22[详细]
2023-04-08 10:16 分类:问答How to store consecutive bytes in the EBX register
I am trying to store an array of the the fibonacci sequence in consecutive bytes of the EBX register from lowest byte to highest byte. My code works as expected up until this point:[详细]
2023-04-05 10:09 分类:问答Pointer to the text segment from the data segment
Is it possible to do the following with this relative addressing in x86-64? section .text two dq 0 section .data[详细]
2023-04-02 11:49 分类:问答How would one get nasm to recognize that this code is 64-bit?
I am trying to compile this OS with nasm on a 64-bit OS X computer. However, the assembler is giving me errors that seem to be coming from the fact that it doesn\'t realize that this code is 64-bit in[详细]
2023-04-01 22:55 分类:问答Clearing out a string variable
I have writen this little experiement bootstrap that has a getline and print_string \"functions\". The boot stuff is taken from MikeOS tutorial but the rest I have writen myself. I compile this with N[详细]
2023-04-01 18:14 分类:问答call immediate versus call dword near [dword addr]
So recently I\'ve been wanting to call some win32 calls from assembly, and I\'ve been using NASM as my external assembler. I was calling SendMessage in my code in the following way:[详细]
2023-03-29 13:27 分类:问答Creating a buffer in a nasm macro?
As you might guess, I\'m new to this (both nasm and assembly, though I\'ve done some basic assembly before).[详细]
2023-03-26 10:34 分类:问答