Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.