Friday 14 February 2014

Wirte your own simple Ruby Script :)

Hey Guys,

Today we are going to learn on how to  write a very simple and also usefull ruby script which one we can use it in our day to day life. As a information security expert as we should prise the following quote,

                           “If you are not updated, You will be outdated”

Everyday morning Information Security people will see some online blogs to update their knowledge. Its not only for Info Sec people its also applicable for all. So, we have written a very simple
ruby script which will open all your favorite sites in your browser with one shot. We hope it will make
your life some more easier. 

Ruby Script:
 
You can add any sites as per your wish in the blue color links, 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
system("firefox http://www.exploit-db.com/ http://www.osvdb.org/
http://www.sans.org/reading-room/ https://www.incidents.org/ https://isc.sans.edu/podcast.html
http://krebsonsecurity.com/ http://ddanchev.blogspot.in/ http://taosecurity.blogspot.in/
http://blog.uncommonsensesecurity.com/ http://roer.com/ https://www.schneier.com/")
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 1: 
Copy above script and paste it in text file:- (You can also customize the weblink as per your wish)


Step 2:

Save the same as filename.rb, here is an example, we saved our script as dailybread.rb in Desktop. 


Step 3:
 
So, Our script is available in Desktop.

 Let's start working on it :-p 

run it - #ruby dailybread.rb

 

Step 4: 

Hit enter with all your favorite sites which is added in the script and it will open in browser.
 
Its very simple but it may be help you a lot. Feel free to leave your comments.