Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- preHttp = 'http://'
- db = SQLite3::Database.open "/root/net.db"
- stm = db.prepare "SELECT * FROM ips"
- rs = stm.execute
- rs.each do |row|
- row.each do |address|
- $ip << (preHttp+address)
- end
- end
- rescue => e
- puts e
- puts "Exception occured"
- ensure
- stm.close if stm
- db.close if db
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement