Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Passing syscalls to (forked?) child processes

by oxagast (Initiate)
on Oct 31, 2012 at 16:10 UTC ( [id://1001699]=perlquestion: print w/replies, xml ) Need Help??

oxagast has asked for the wisdom of the Perl Monks concerning the following question:

I would like to be able to fork child processes off (another arbitrary program), then pass syscalls to them with syscall(&SYS_x). From my understanding syscall will play with the parent process, but I need it on the child. I need to be able to use a lot of them, because I am writing a syscall fuzzer. Does anybody know how I can do this in perl? I've seen it done in C, with a program called trinity, but it doesn't have the functionality that I would like. Thanks, Marshall (p.s. sorry if I am posting in the wrong section, I'm a newb to the forums.)
  • Comment on Passing syscalls to (forked?) child processes

Replies are listed 'Best First'.
Re: Passing syscalls to (forked?) child processes
by Illuminatus (Curate) on Oct 31, 2012 at 23:51 UTC
    Based on what I know about trinity, it has a 'master' process that knows about the syscalls. When it forks a child, it already has all necessary parameters, which the child uses. I'm not sure what you mean by 'another arbitrary program'. If you create the equivalent in perl of what the main trinity program does, you should be able to do the same thing. perl supports both fork() and syscall(). However, you will have to build all of the 'base functionality' already present in trinity (syscall profiles by value, random-fd-opener, etc).

    fnord

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1001699]
Approved by Eliya
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found