Skip to content

Instantly share code, notes, and snippets.

@aerphanas
Created February 13, 2023 08:56
Show Gist options
  • Select an option

  • Save aerphanas/de954fcf3fdff9bbff372f0c3d0df209 to your computer and use it in GitHub Desktop.

Select an option

Save aerphanas/de954fcf3fdff9bbff372f0c3d0df209 to your computer and use it in GitHub Desktop.
Counter Spam
#include <stdio.h>
#include <curl/curl.h>
#define TO 100
#define URL "https://google.com"
int
main()
{
for(size_t i = 0;i < TO;i++)
{
CURL *curl;
char url[] = URL;
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment