LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-07-2003, 01:14 AM   #1
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Rep: Reputation: 15
Subject:Passing a text file in Redhat 9 to honeyd


HI there.
Lets say I have a text file with some content in it-a.txt

I want to pass this file to honeyd to use it as a template.
Honeyd is a low interactive virtual honeypot.
Now to run honeyd, the command is:.honeyd -p nmap.prints -f honeyd.conf 192.168.1.0/24.
Now I want to replace the contents of *.conf to the content that I have in the a.txt.
How can I do this?Pls help.

Thanks a million.Appreciate it
James
 
Old 11-10-2003, 06:07 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What is the purpose of this "a.txt"? If it's an interaction script, then shouldn't it go in the scripts subdir and be referenced in the honeyd.conf?
 
Old 11-10-2003, 07:27 PM   #3
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
Lets say a.txt contains the info that is needed by honeyd to create the virtual hosts.
I would like the contents of honeyd.conf to be replaced by the contents of a.txt.
 
Old 11-10-2003, 08:17 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Maybe you should elaborate on the circumstances that prohibit you from just replacing the conf. I'm dense and particularly low on ESP.
 
Old 11-10-2003, 08:21 PM   #5
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
I don't quite get you as I am only a newbie. Hope you can explain more. Thanks
 
Old 11-10-2003, 11:23 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Let's cut this short.
Tell us why you can't replace honeyd.conf with a.txt.
Post honeyd.conf and a.txt.
 
Old 11-10-2003, 11:34 PM   #7
james_cwy
Member
 
Registered: Nov 2003
Posts: 52

Original Poster
Rep: Reputation: 15
I think you got me wrong.
What I would like to know is how can I replace the contents of honeyd.conf with the contents in a.txt file for example?
Say a.txt has 123456789 Numbers.
I want honeyd.conf to contain 123456789 Numbers as well.
Can I automate this without doing too much typing?
I am sorry if I had give a bad illustration of what I would like to ask. Millions of apologies
 
Old 11-10-2003, 11:56 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you know a.txt is a complete config, then just "cat a.txt > honeyd.conf" to overwrite. If a.txt is a partial config, then you could write a script to only change part of honeyd.conf.

I am sorry if I had give a bad illustration of what I would like to ask.
Posting honeyd.conf and a.txt still would be better, or post a good example.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
storing text in a text file for a specified length of time. mrobertson Programming 7 08-02-2005 10:27 AM
How to find and change a specific text in a text file by using shell script Bassam Programming 1 07-18-2005 07:15 PM
Passing a text file in Redhat 9 to honeyd james_cwy Programming 1 11-11-2003 12:22 PM
Passing a text file in Redhat 9 to honeyd james_cwy Linux - Newbie 2 11-08-2003 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration