Find the answer to your Linux question:
Results 1 to 3 of 3
Im new to the forums and I hope this is the right place to be posting... But I guess an outline of what im trying to do would be the ...
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    1

    Some very general, basic questions about programs and programming

    Im new to the forums and I hope this is the right place to be posting...

    But I guess an outline of what im trying to do would be the most helpful.

    I have snort installed into a debian system. And my goal is to
    1) Detect an attack (currently it will most likely just be a ping)
    2) Redirect the attack to another computer.

    I have snort installed, using the Debian install guide from snort.org, and I want to make a program that detects the attack through snort, and then does something else.

    Right now it doesnt really matter... it can print something to the terminal. But this will allow the ladder part to be implemented later.

    But I have no idea where to start. All the programming ive done, ive only created .c file with .h header files, and never anything pumping in data from another program.

    I hope this wasnt to confusing.

    Thanks!

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    951
    It depends on how snort outputs its results. If it prints to standard output, then you can pipe that output into your program using a command like snort|mydefence. You then need to write the mydefence program to analyse and react to data from standard input.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2
    Why not merely use a honeypot and jail routine? The honeypot provides an illusion of a massively important server left wide open. The jail routine gaffs the poor sap into thinking your fake server granted them root privilege, yet contains them in an environment you may fully log without risking any damage to any systems. Then, you can pass over the logs to whomever you feel trustworthy authorities if need be.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •