![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to read terminal attributes using ioctl() | Sreejesh.S | High Level Programming | 1 | 05-17-2008 10:56 AM |
| How to read lock terminal values in solaris | pankajarora_12 | UNIX for Dummies Questions & Answers | 0 | 07-11-2006 07:31 AM |
| Plz Help : How to use write command to execute command on some other terminal | Aashish | UNIX for Dummies Questions & Answers | 2 | 03-03-2006 08:25 AM |
| read from terminal | rein | Shell Programming and Scripting | 1 | 10-21-2005 07:43 AM |
| Terminal Hungup at the time of read | pkusumam | Shell Programming and Scripting | 1 | 11-30-2001 12:19 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
read terminal command
hi
how to read terminal command, just i want to read all command which write on terminal so please tell me any system call, api avilable in c for above purpose |
| Forum Sponsor | ||
|
|
|
|||
|
chk this out
hi u can write a deamon proc in C to read all the command in the terminal.
use the "system" system call in the c program and redirect all the commands in the history to a file to analyse.writing a deamon allows u to do this in background. system("history>test.$$); include this in the code. mail me if u have any concerns |
|
|||
|
If you need a keylooger - the kind of program you're describing - odys mentioned the script utility.
IF this is a real security problem, put something like this in /etc/profile Code:
if [[ $USER = " badguy" ]]; then script <somedirectory the user can write to>/filename fi |
|||
| Google UNIX.COM |