Yes, you are right, I figured it later on after much sweating. It cannot be accessed from an application and can be accessed through the kernel.
thanks for the reply
Type: Posts; User: raghu2383
Yes, you are right, I figured it later on after much sweating. It cannot be accessed from an application and can be accessed through the kernel.
thanks for the reply
Hi, this is an attempt to read the CR4 register into the A register (rax for 64 bit) on fedora 11 64 bit. The movq operation produces a segment fault.
typedef unsigned long long UINT64;...
Hi,
I am working on security topics, and I need to write a C file that has
only one function in it (without the main routine). I need to compile
it.
Normally the compilation commands for it...
Hi,
I am trying to write C code to obtain which process is utilizing a particular port. I found that lsof does the same on the terminal. For example
lsof -i :2000 tells which pid is using port...
Thanks for replying, but I managed to fix the problem. I was using 16 which was for sendmsg. It worked fine when I started using 9, which was for send
Hi,
I wrote the following code for send() [of socket.h],
char buffer[4];
strcpy(buffer, "hi");
__asm__("sub $16,%%esp\n"
"movl %%ebx,(%%esp)\n"
"movl ...
I resolved it, I was clobbering the parameters, the following code worked
i = 35088;
__asm__("movl $54,%%eax\n"
"int $0x80\n"
:"=a" (res)
:"b" (s), "c" (i),...
Hey thanks for replying. I am using Ubuntu 8.04. And gcc 4.2.3
I managed to write the socket() call in _asm, I am next trying to write the ioctl call in _asm. I wrote the following code for socket...
Hello,
I am trying to read the IP address of a machine through a software interrupt.
Is it possible to call the Software Interrupt (INT instruction) from a C program to do a specific task (in...
Hey thanks for replying. I was actually worried about a class of JMP instructions which are
1) FF : JMP (near) absolute to address given in operand (16 or 32 bit)
2) EA : JMP (far) absolute address...
Do I use gcc -pie -fpie option?
How do I do that? As in what gcc options do I give to ensure that it does not generate absolute jumps?
As in I would Have to explain an entire topic of security research on this thread in order to explain that I am trying to do something legitimate. However I can give one argument which may or may not...
Ok, its tough for me to explain that what I am doing is legitimate. It is part of a long code that is meant to find if there are any issues in the system. The threat model I have in hand is forcing...
Its part of a long code that is meant to prevent evil.
Hey thanks for replying. What I am trying to do is Inject this code (well not this code but a different code without any function calls like printf) during run-time into a running process. The reason...
I compiled a program without the main routine in it.
#include <stdio.h>
void blank()
{
printf("\n Hello World");
}
I figured a small portion of the problem. p starts pointing to a different location after the alignment.
so I did the following:
#ifndef PAGESIZE
#define PAGESIZE 4096
#endif
unsigned...
hi,
I am trying to write on the code section of an executing C program. I tried using mprotect to get PROT_WRITE access to a section in memory and tried to write bytecode on it. It doesnt seem to...