write system call

From: Raymond Martin (rmartin_at_cis.strath.ac.uk)
Date: 04/23/04


Date: Fri, 23 Apr 2004 11:10:02 +0000 (UTC)

Does the 'write' linux system call require kernel mode?

I get a Permission denied problem with :

..section .rodata
..l1:
..string "some text"

..text
main:
mov $0x4,%eax ;system call 4 - write
mov $0x1,%ebx ;write 1st arg, write to stdout (file descriptor 1)
mov $.l1,%ecx ;write 2nd arg, pass "some text"
mov $0x9,%edx ;write 3rd arg, pass length of 9
int $0x80 ;make a system call
ret

Thanks.

-- 
Raymond.


Relevant Pages

  • write system call
    ... Does the 'write' linux system call require kernel mode? ... I get a Permission denied problem with: ... ..string "some text" ...
    (comp.os.linux)
  • Re: .Net Directory Classes give COM errors
    ... Public Property DirEntryAs DirectoryEntry ... Private _DirSearch As DirectorySearcher ... Public Function MailAdressFromLDAP(ByVal sAMAccountName As String) As String ... Dim ret As String = String.Empty 'declare ret var ...
    (microsoft.public.dotnet.general)
  • YUI--Competent?
    ... @param attr The attribute to get. ... ret = el.getAttribute; ... they change it to an empty string per some imagined "DOM spec". ... unit testing and ostensibly have the best JS developers working around ...
    (comp.lang.javascript)
  • Re: very simple Genetic Algorithm completed
    ... Change mutate to build a list instead of a string. ... the optimization of successive string concatentions is only ... Include psyco to cut execution time in half. ... ret = evalcache ...
    (comp.lang.python)
  • Re: [Full-disclosure] [NETRAGARD-20060810 SECURITY ADVISORY] [HP Tru64 dtmail Unchecked Buff
    ... A typical stack address is something like: ... So yes, you have nulls, but at the end of the string :-) ... SHELLCODE RET] ...
    (Full-Disclosure)