Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Вопрос Как в лв ватермарке сделать имя как на форуме xenforo?

  • Автор темы Автор темы N01Ta
  • Дата начала Дата начала
Сверяешь хвид/ip(который сохранил лоадер после успешной авторизации), с юзером(через пхп скрипты) и через курл делаешь реквесты:

C++:
Expand Collapse Copy
    static char er_buf[CURL_ERROR_SIZE];

int write_data(char* data, size_t size, size_t nmemb, std::string* buffer)
{
    int result = 0;
    if (buffer != NULL)
    {
        buffer->append(data, size * nmemb);
        result = size * nmemb;
    }
    return result;
}


  std::string req_buf;
    std::string url_ = "https://pastebin.com/raw/G6V8qecY";
    CURL* curl;
    CURLcode result;
    curl = curl_easy_init();
    if (curl) {
        curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, er_buf);
        curl_easy_setopt(curl, CURLOPT_URL, url_);
        curl_easy_setopt(curl, CURLOPT_HEADER, 0);
        curl_easy_setopt(curl, CURLOPT_POST, 0);
        curl_easy_setopt(curl, CURLOPT_USERAGENT, "Firefox"");
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, &req_buf);
        result = curl_easy_perform(curl);
        if (result == CURLE_OK) {

        }
    }
    curl_easy_cleanup(curl);
    g_ctx.username = req_buf;
 
Назад
Сверху Снизу