Advertisement
Guest User

Untitled

a guest
May 16th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.30 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'mechanize'
  4.  
  5. LOGIN  = ''
  6. PASS = ''
  7.  
  8. agent = Mechanize.new
  9. agent.get('https://www.linux.org.ru/login.jsp') do |page|
  10.  
  11.     form = page.form_with(:action => 'https://www.linux.org.ru//login_process') do |f|
  12.         f.nick = LOGIN
  13.         f.passwd = PASS
  14.     end.click_button
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement