I don’t know about you guys, but it is not unusual to start a new job only to find out there are a
lot 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
- Windows Vista Service Pack 2 Latest Release Schedule
- Vista SP2: What is inside?
- NetWitness releases free version of security software
- Three Reasons Why Users Won’t Buy Into Security
- Automated security testing & its limitations
- Google Wants to Preinstall Chrome Browser on PCs
- Mozilla warns of Firefox China add on
- Firefox No Longer an Automatic Defense Against Browser Drive Bys
- Google patches Chrome file stealing bug
- Apple plays catch up, adds anti fraud safeguard to Safari
- Researchers find vulnerability in Windows Vista
- How to Use Network Behavior Analysis Tools
- The insider security threat in IT and financial services
- Windows 7 security: An overall improvement?
- Windows 7 UAC could be less of a nag