Database of vulnurability at milw0rm.com – udpate and makeindex with cron.

2009-09-08 169 words 1 min read

I am quite regular visitor of milw0rm and generally try to keep up with the vul’s. For doing this I wrote a small scripts rather set of scripts to keep myself update.  Here’s what we are going to do:

  1. Get the latest tar from the site.

  2. Extract it.

  3. Make the index

  4. Have a shortcut to search the index.

Download the attached files for the first 2 points. <a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/09/makeindex-milw0rm.sh">makeindex-milw0rm and <a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2009/09/udpate-milw0rm.sh">udpate-milw0rm

Now open the update-milw0rm file with the directory paths, that is located in the starting of the file.

Once that is done, do the following on the terminal,

crontab -e

Add a entry like this:

@daily /home/amit/update-milw0rm.sh

So you are all set to automatically download and update the data everyday. Lets now create a alias to search the exploitlist from the terminal.

Put the following in your profile :

alias search_sploit=&#8221;cat $(cat ~/bin/update-milw0rm.sh|grep dir=|awk -F&#8217;=&#8217; '{print $2}&#8217;|awk -F&#8217;&#8221;&#8217; '{print $2}&#8217;)/milw0rm/sploitlist.txt|grep -i&#8221;

Now, when you want to search the database for the exploit you can simply type:

search_sploit


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it