Thread: recording

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    227

    Cool recording

    how can i creat a programm that will record everything that a user doez when they log in to my comp....? please try to make it simple cause im dumb at c still im trying my hardest and will keep trying.... another question is do you memorize the codez and then use that code to creat other codezz... i need to know cause i feel that i am not butting effort in learning because i dont need to memorize the codezz...if not then what is the best way of learning..?

  2. #2
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    I think the best way to learn is to understand the theory and 'try' to remember it. Then remember a few syntax and you'll be fine. As to your problem, do you mean recording what commands are typed or if you having a GUI like GNOME, recording all mouse movemeents and capture the screen and convert it to a video file?

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    227
    ya something like that but like i said im a comple newbie so maybe for the mouse movement i can start off ... any tut ... another of my problem is that i dont understand alot of thingz in c but i try...

  4. #4
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Actaully i am not that familiar wif Linux either. But try searching for some GUI libraries. They hav functions that's like api in widows that lets you detect mouse movements and stuff like that. One of those is GTK if i recall?

  5. #5
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    You might want to start by looking up hacking and keystroke logging. I truely hope your intentions are nobel.
    Which OS are you planning to do this on? Once you've got that figured out then read about how the system processes events. This isn't going to be an "easy" thing if you're just starting to program. Perhaps you should learn how to program first and in your spare time read up on the OS you plan to do this on.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    If you're using bash, it keeps track of commands in .bash_history (in your home dir). I think other shells might have a similar mechanism... but I'm not sure.

    starX
    www.axisoftime.com

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    227
    ya you are right i mightest well lear programming first.. i just wanted to be more secure in thingz... but thanx anyway.. another question is how can i make my prog creat a file.... ? i hope this is simple.. thanx

  8. #8
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    If you're worried about people doing things on your computer, either don't allow them access or set higher restrictions. Creating a file is simple.

    in C you can use fopen().

    in C++ you can use fstream(), ifstream() and ofstream().
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  9. #9
    Registered User
    Join Date
    Dec 2001
    Posts
    227
    nah itz just that im creating something in sshd but thanx anywayz...

  10. #10
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    Which language do you want to create a file in?

    In C, the simple way is:

    fopen("filename", const char *mode);

    where mode is "w" (open for writing, discard previous contents, create if necessary) or "a" (open file for appending, create if necessary). There are of course other modes, but these will get you through the process of file creation.

    starX
    www.axisoftime.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Decent TV recording software - ideas?
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-04-2009, 08:20 PM
  2. Recording a non-downloadable video
    By Lionel in forum Windows Programming
    Replies: 9
    Last Post: 09-26-2007, 02:32 AM
  3. Trouble recording sound
    By Longie in forum Windows Programming
    Replies: 1
    Last Post: 05-08-2005, 11:51 PM
  4. CD Recording error
    By Shadow in forum Tech Board
    Replies: 17
    Last Post: 10-29-2002, 05:39 PM
  5. Recording console window output to a text file?
    By HolySmiter in forum C++ Programming
    Replies: 3
    Last Post: 02-24-2002, 03:13 PM