Trying to manipulate the host header in C#
I can do it in python or other languages but I am trying to adopt C# for all my exploit developments. I am writing a PoC for a security bug and it requires me to modify the host header so that it overflows on the server. But it seems there is a maximum limit of 256 characters for host header in HttpClient itself. Here is the snippet:
This will throw an exception with message
The specified value is not a valid 'Host' header string.
. Is any way to set host header to very long strings in HttpClient? If not, is there any alternative in C#?4 Replies