The Network Security. Org

RSS Feed

Scripting and Security (Part 2)

August 7th, 2006 · No Comments


I don’t know about you guys, but it is not unusual to start a new job only to find out there are a zoom_in.pnglot of legacy scripts for you to maintain. What I mean by legacy scripts are ones that were there prior to your starting your new job. It is often difficult to maintain or understand these scripts depending on how well written they were, and the lack of, or abundance of, comments in the script itself. Remember, if your script is going to become a sizeable one you should include heavy commenting for those who may end up having to maintain, or modify your script. On that note let’s take a look at the script I had written in the first article.

For the sake of brevity I won’t include the script or the input file I showed you in part one of this article. Please go copy and paste that sample input file into your C:\ drive. Now that you have done that we are ready to modify the script seen in part one in a simple fashion. What we shall do is simply modify the search pattern of “192.168.1.102” by adding another IP address. Yes indeed you can have a script that searches for more then one pattern at a time! The only change that we will actually make is as noted below. Everything else about the script will remain the same. Scripting and Security (Part 2)

From around the Web

  • Advertisments