I'd like to develop 1 of 2 things(maybe just 1 big thing):
1. A Unix application wrapper
I handle a lot of abuse-related issues on a web hosting company server. Lots of abusers tend to use programs like lynx, wget, and curl to access malicious tools stored on their home computers or something. I'd like a wrapper to transparently snatch the argument list, log everything, investigate a bit, then pass the arguments to the actual program.
2. A Unix trapdoor application
Just a basic script that, when called/invoked,retrieves and logs as much information about the parent process as possible(OLDPWD, PPID, uid, blah blah). I'm open to ideas integrating non-perl programs within the application as well. This would be useful when I find someone actively using a malicious tool. I would replace their tool with this script, so they can call my replacement and voila... something.
OK so first off, are there any decent Modules that accomplish some or all of what I have in mind?
Can someone provide a bit of insight into the various info that I COULD gather from such a script(#2), or some rough pseudocode to structure such a script(#1).
I'm not new to sysadmin duties, only to perl itself. I look forward to this project, and all the rogue troublemakers that will surely be revealed....
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.