Advertisement
ChickenNinja

asdf

Jun 23rd, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1. begin
  2.     preHttp = 'http://'
  3.     db = SQLite3::Database.open "/root/net.db"
  4.     stm = db.prepare "SELECT * FROM ips"
  5.     rs = stm.execute
  6.     rs.each do |row|
  7.         row.each  do |address|
  8.             $ip << (preHttp+address)
  9.         end
  10.     end
  11. rescue => e
  12.     puts e
  13.     puts "Exception occured"
  14. ensure
  15.     stm.close if stm
  16.     db.close if db
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement