Closed seghier closed 5 months ago
PayloadGenerator.Url
will prefix the provided string with http://
if the url does not already include it. That is the only difference. As you provided a url that includes https://
, there is no difference.
See the source code:
public class Url : Payload
{
private readonly string url;
public Url(string url)
{
this.url = url;
}
public override string ToString()
{
return (!this.url.StartsWith("http") ? "http://" + this.url : this.url);
}
}
As @Shane32 explained it - the url generator just ensures that the url has a valid protocol prefix. Not more not less. Compared to other payload generators the Url generator really doesn't do much, but for sake of completeness I implemented it anyway.
Hello What is the purpose of PayloadGenerator? I don't see any difference in the result.
The two codes give exactly the same image