Guest User

Untitled

a guest
Mar 19th, 2012
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. def execute(domain)
  2. Rails.logger.info "Esteblishing ssh connection to #{domain}"
  3. Net::SSH.start(domain, DDOS_USER) {|ssh| yield DdosmeSSH.new(ssh)}
  4. end
  5.  
  6.  
  7. irb(main):065:1* ssh.execute("echo 'П' > 1")
  8. irb(main):066:1> end
  9. OpenSSL::Cipher::CipherError: data not multiple of block length
  10. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/transport/state.rb:85:in `final'
  11. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/transport/state.rb:85:in `final_cipher'
  12. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/transport/packet_stream.rb:142:in `enqueue_packet'
  13. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/transport/session.rb:223:in `enqueue_message'
  14. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:368:in `send_message'
  15. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/channel.rb:468:in `send_channel_request'
  16. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/channel.rb:159:in `exec'
  17. from /opt/ddosme/releases/20101021101212/lib/ddosme_ssh.rb:23:in `block in execute'
  18. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/channel.rb:508:in `call'
  19. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/channel.rb:508:in `do_open_confirmation'
  20. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:535:in `channel_open_confirmation'
  21. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:456:in `dispatch_incoming_packets'
  22. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:213:in `preprocess'
  23. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:197:in `process'
  24. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:161:in `block in loop'
  25. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:161:in `loop'
  26. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/session.rb:161:in `loop'
  27. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh/connection/channel.rb:269:in `wait'
  28. from /opt/ddosme/releases/20101021101212/lib/ddosme_ssh.rb:52:in `execute'
  29. from (irb):65:in `block in irb_binding'
  30. from (irb):34:in `block in execute'
  31. from /opt/ddosme/shared/bundle/ruby/1.9.1/gems/net-ssh-2.0.19/lib/net/ssh.rb:186:in `start'
  32. from (irb):34:in `execute'
  33. from (irb):64
  34. from /opt/ddosme/shared/bundle/ruby/1.9.1/bundler/gems/rails-96e8e97e78dd/railties/lib/rails/commands/console.rb:44:in `start'
  35. from /opt/ddosme/shared/bundle/ruby/1.9.1/bundler/gems/rails-96e8e97e78dd/railties/lib/rails/commands/console.rb:8:in `start'
  36. from /opt/ddosme/shared/bundle/ruby/1.9.1/bundler/gems/rails-96e8e97e78dd/railties/lib/rails/commands.rb:33:in `<top (required)>'
  37. from script/rails:6:in `require'
  38. from script/rails:6:in `<main>'irb(main):067:0>
Add Comment
Please, Sign In to add comment