Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
cpanel /
libcurl /
share /
doc /
ea-libcurl-devel /
Delete
Unzip
Name
Size
Permission
Date
Action
10-at-a-time.c
4.33
KB
-rw-r--r--
2023-12-05 14:57
Makefile
90.62
KB
-rw-r--r--
2023-12-14 15:57
Makefile.am
2.25
KB
-rw-r--r--
2023-11-17 14:45
Makefile.example
1.88
KB
-rw-r--r--
2023-11-26 13:49
Makefile.in
105.19
KB
-rw-r--r--
2023-12-05 14:57
Makefile.inc
3.18
KB
-rw-r--r--
2023-12-05 14:57
Makefile.mk
1.82
KB
-rw-r--r--
2023-11-17 14:45
README.md
1.45
KB
-rw-r--r--
2023-11-17 14:45
altsvc.c
1.85
KB
-rw-r--r--
2023-11-17 14:45
anyauthput.c
4.5
KB
-rw-r--r--
2023-12-05 14:57
cacertinmem.c
7.16
KB
-rw-r--r--
2023-11-17 14:45
certinfo.c
2.27
KB
-rw-r--r--
2023-11-17 14:45
chkspeed.c
6.59
KB
-rw-r--r--
2023-11-17 14:45
connect-to.c
2.54
KB
-rw-r--r--
2023-11-26 13:49
cookie_interface.c
4.04
KB
-rw-r--r--
2023-12-05 14:57
crawler.c
7.47
KB
-rw-r--r--
2023-11-26 13:49
debug.c
4.23
KB
-rw-r--r--
2023-11-17 14:45
default-scheme.c
1.82
KB
-rw-r--r--
2023-11-26 13:49
ephiperfifo.c
14.51
KB
-rw-r--r--
2023-11-26 13:49
evhiperfifo.c
11.92
KB
-rw-r--r--
2023-11-26 13:49
externalsocket.c
4.76
KB
-rw-r--r--
2023-12-05 14:57
fileupload.c
2.79
KB
-rw-r--r--
2023-11-17 14:45
ftp-wildcard.c
4.17
KB
-rw-r--r--
2023-11-17 14:45
ftpget.c
2.61
KB
-rw-r--r--
2023-11-26 13:49
ftpgetinfo.c
2.92
KB
-rw-r--r--
2023-11-17 14:45
ftpgetresp.c
2.53
KB
-rw-r--r--
2023-11-17 14:45
ftpsget.c
2.92
KB
-rw-r--r--
2023-11-26 13:49
ftpupload.c
4.48
KB
-rw-r--r--
2023-12-05 14:57
ftpuploadfrommem.c
3.83
KB
-rw-r--r--
2023-11-17 14:45
ftpuploadresume.c
4.41
KB
-rw-r--r--
2023-11-26 13:49
getinfo.c
1.64
KB
-rw-r--r--
2023-11-17 14:45
getinmemory.c
3.26
KB
-rw-r--r--
2023-11-17 14:45
getredirect.c
2.32
KB
-rw-r--r--
2023-11-17 14:45
getreferrer.c
1.83
KB
-rw-r--r--
2023-11-17 14:45
ghiper.c
12.05
KB
-rw-r--r--
2023-11-26 13:49
headerapi.c
2.53
KB
-rw-r--r--
2023-11-17 14:45
hiperfifo.c
11.99
KB
-rw-r--r--
2023-11-26 13:49
href_extractor.c
2.64
KB
-rw-r--r--
2023-11-17 14:45
hsts-preload.c
3.48
KB
-rw-r--r--
2023-11-26 13:49
htmltidy.c
3.92
KB
-rw-r--r--
2023-11-17 14:45
htmltitle.cpp
6.25
KB
-rw-r--r--
2023-11-26 13:49
http-options.c
1.93
KB
-rw-r--r--
2023-11-26 13:49
http-post.c
2.01
KB
-rw-r--r--
2023-11-17 14:45
http2-download.c
6.16
KB
-rw-r--r--
2023-11-26 13:49
http2-pushinmemory.c
5.04
KB
-rw-r--r--
2023-11-26 13:49
http2-serverpush.c
7.23
KB
-rw-r--r--
2023-11-26 13:49
http2-upload.c
8.08
KB
-rw-r--r--
2023-11-17 14:45
http3-present.c
1.55
KB
-rw-r--r--
2023-11-17 14:45
http3.c
1.73
KB
-rw-r--r--
2023-11-17 14:45
httpcustomheader.c
2.29
KB
-rw-r--r--
2023-11-17 14:45
httpput-postfields.c
3.45
KB
-rw-r--r--
2023-11-17 14:45
httpput.c
3.61
KB
-rw-r--r--
2023-11-26 13:49
https.c
2.67
KB
-rw-r--r--
2023-11-26 13:49
imap-append.c
3.71
KB
-rw-r--r--
2023-11-26 13:49
imap-authzid.c
2.21
KB
-rw-r--r--
2023-11-17 14:45
imap-copy.c
2.35
KB
-rw-r--r--
2023-11-17 14:45
imap-create.c
2.06
KB
-rw-r--r--
2023-11-17 14:45
imap-delete.c
2.06
KB
-rw-r--r--
2023-11-17 14:45
imap-examine.c
2.11
KB
-rw-r--r--
2023-11-17 14:45
imap-fetch.c
1.95
KB
-rw-r--r--
2023-11-17 14:45
imap-list.c
2.09
KB
-rw-r--r--
2023-11-17 14:45
imap-lsub.c
2.08
KB
-rw-r--r--
2023-11-26 13:49
imap-multi.c
2.32
KB
-rw-r--r--
2023-11-17 14:45
imap-noop.c
2
KB
-rw-r--r--
2023-11-17 14:45
imap-search.c
2.35
KB
-rw-r--r--
2023-11-17 14:45
imap-ssl.c
3.27
KB
-rw-r--r--
2023-11-26 13:49
imap-store.c
2.7
KB
-rw-r--r--
2023-11-17 14:45
imap-tls.c
3.51
KB
-rw-r--r--
2023-11-26 13:49
interface.c
1.72
KB
-rw-r--r--
2023-12-05 14:57
ipv6.c
1.85
KB
-rw-r--r--
2023-12-05 14:57
keepalive.c
1.69
KB
-rw-r--r--
2023-12-05 14:57
localport.c
1.74
KB
-rw-r--r--
2023-12-05 14:57
maxconnects.c
1.98
KB
-rw-r--r--
2023-11-26 13:49
multi-app.c
3.47
KB
-rw-r--r--
2023-11-17 14:45
multi-debugcallback.c
4.22
KB
-rw-r--r--
2023-11-26 13:49
multi-double.c
2.64
KB
-rw-r--r--
2023-11-17 14:45
multi-event.c
6.04
KB
-rw-r--r--
2023-11-17 14:45
multi-formadd.c
3.4
KB
-rw-r--r--
2023-11-17 14:45
multi-legacy.c
5.16
KB
-rw-r--r--
2023-11-26 13:49
multi-post.c
3.07
KB
-rw-r--r--
2023-11-17 14:45
multi-single.c
2.27
KB
-rw-r--r--
2023-11-17 14:45
multi-uv.c
5.99
KB
-rw-r--r--
2023-11-17 14:45
multithread.c
2.61
KB
-rw-r--r--
2023-11-17 14:45
parseurl.c
2.15
KB
-rw-r--r--
2023-11-26 13:49
persistent.c
2.17
KB
-rw-r--r--
2023-11-26 13:49
pop3-authzid.c
2.18
KB
-rw-r--r--
2023-11-17 14:45
pop3-dele.c
2.15
KB
-rw-r--r--
2023-11-17 14:45
pop3-list.c
1.94
KB
-rw-r--r--
2023-11-17 14:45
pop3-multi.c
2.31
KB
-rw-r--r--
2023-11-17 14:45
pop3-noop.c
2.11
KB
-rw-r--r--
2023-11-17 14:45
pop3-retr.c
1.93
KB
-rw-r--r--
2023-11-17 14:45
pop3-ssl.c
3.25
KB
-rw-r--r--
2023-11-26 13:49
pop3-stat.c
2.13
KB
-rw-r--r--
2023-11-17 14:45
pop3-tls.c
3.48
KB
-rw-r--r--
2023-11-26 13:49
pop3-top.c
2.11
KB
-rw-r--r--
2023-11-17 14:45
pop3-uidl.c
2.04
KB
-rw-r--r--
2023-11-17 14:45
post-callback.c
5.18
KB
-rw-r--r--
2023-11-17 14:45
postinmemory.c
3.39
KB
-rw-r--r--
2023-11-17 14:45
postit2-formadd.c
3.67
KB
-rw-r--r--
2023-11-26 13:49
postit2.c
3.44
KB
-rw-r--r--
2023-11-26 13:49
progressfunc.c
3.09
KB
-rw-r--r--
2023-11-17 14:45
protofeats.c
1.58
KB
-rw-r--r--
2023-11-17 14:45
resolve.c
1.94
KB
-rw-r--r--
2023-11-17 14:45
rtsp-options.c
1.72
KB
-rw-r--r--
2023-12-05 14:57
sendrecv.c
4.5
KB
-rw-r--r--
2023-11-26 13:49
sepheaders.c
2.69
KB
-rw-r--r--
2023-11-17 14:45
sessioninfo.c
3.08
KB
-rw-r--r--
2023-11-17 14:45
sftpget.c
3.28
KB
-rw-r--r--
2023-11-26 13:49
sftpuploadresume.c
3.84
KB
-rw-r--r--
2023-11-17 14:45
shared-connection-cache.c
2.54
KB
-rw-r--r--
2023-11-17 14:45
simple.c
1.7
KB
-rw-r--r--
2023-11-17 14:45
simplepost.c
1.85
KB
-rw-r--r--
2023-11-17 14:45
simplessl.c
4.58
KB
-rw-r--r--
2023-11-26 13:49
smooth-gtk-thread.c
5.84
KB
-rw-r--r--
2023-11-17 14:45
smtp-authzid.c
5.34
KB
-rw-r--r--
2023-11-26 13:49
smtp-expn.c
2.55
KB
-rw-r--r--
2023-11-26 13:49
smtp-mail.c
4.87
KB
-rw-r--r--
2023-11-26 13:49
smtp-mime.c
5.59
KB
-rw-r--r--
2023-11-26 13:49
smtp-multi.c
4.57
KB
-rw-r--r--
2023-11-26 13:49
smtp-ssl.c
5.78
KB
-rw-r--r--
2023-11-26 13:49
smtp-tls.c
6.25
KB
-rw-r--r--
2023-11-26 13:49
smtp-vrfy.c
2.61
KB
-rw-r--r--
2023-11-26 13:49
sslbackend.c
2.31
KB
-rw-r--r--
2023-11-26 13:49
synctime.c
12.61
KB
-rw-r--r--
2023-11-26 13:49
threaded-ssl.c
4.37
KB
-rw-r--r--
2023-11-17 14:45
unixsocket.c
1.98
KB
-rw-r--r--
2023-11-26 13:49
url2file.c
2.45
KB
-rw-r--r--
2023-11-17 14:45
urlapi.c
2.13
KB
-rw-r--r--
2023-11-26 13:49
usercertinmem.c
8.9
KB
-rw-r--r--
2023-11-17 14:45
version-check.pl
2.66
KB
-rwxr-xr-x
2023-11-17 14:45
websocket-cb.c
2.15
KB
-rw-r--r--
2023-11-26 13:49
websocket.c
3.43
KB
-rw-r--r--
2023-11-26 13:49
xmlstream.c
4.96
KB
-rw-r--r--
2023-11-17 14:45
Save
Rename
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at https://curl.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is * furnished to do so, under the terms of the COPYING file. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * * SPDX-License-Identifier: curl * ***************************************************************************/ /* <DESC> * Get a web page, extract the title with libxml. * </DESC> Written by Lars Nilsson GNU C++ compile command line suggestion (edit paths accordingly): g++ -Wall -I/opt/curl/include -I/opt/libxml/include/libxml2 htmltitle.cpp \ -o htmltitle -L/opt/curl/lib -L/opt/libxml/lib -lcurl -lxml2 */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <string> #include <curl/curl.h> #include <libxml/HTMLparser.h> // // Case-insensitive string comparison // #ifdef _MSC_VER #define COMPARE(a, b) (!_stricmp((a), (b))) #else #define COMPARE(a, b) (!strcasecmp((a), (b))) #endif // // libxml callback context structure // struct Context { Context(): addTitle(false) { } bool addTitle; std::string title; }; // // libcurl variables for error strings and returned data static char errorBuffer[CURL_ERROR_SIZE]; static std::string buffer; // // libcurl write callback function // static int writer(char *data, size_t size, size_t nmemb, std::string *writerData) { if(writerData == NULL) return 0; writerData->append(data, size*nmemb); return size * nmemb; } // // libcurl connection initialization // static bool init(CURL *&conn, char *url) { CURLcode code; conn = curl_easy_init(); if(conn == NULL) { fprintf(stderr, "Failed to create CURL connection\n"); exit(EXIT_FAILURE); } code = curl_easy_setopt(conn, CURLOPT_ERRORBUFFER, errorBuffer); if(code != CURLE_OK) { fprintf(stderr, "Failed to set error buffer [%d]\n", code); return false; } code = curl_easy_setopt(conn, CURLOPT_URL, url); if(code != CURLE_OK) { fprintf(stderr, "Failed to set URL [%s]\n", errorBuffer); return false; } code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L); if(code != CURLE_OK) { fprintf(stderr, "Failed to set redirect option [%s]\n", errorBuffer); return false; } code = curl_easy_setopt(conn, CURLOPT_WRITEFUNCTION, writer); if(code != CURLE_OK) { fprintf(stderr, "Failed to set writer [%s]\n", errorBuffer); return false; } code = curl_easy_setopt(conn, CURLOPT_WRITEDATA, &buffer); if(code != CURLE_OK) { fprintf(stderr, "Failed to set write data [%s]\n", errorBuffer); return false; } return true; } // // libxml start element callback function // static void StartElement(void *voidContext, const xmlChar *name, const xmlChar **attributes) { Context *context = static_cast<Context *>(voidContext); if(COMPARE(reinterpret_cast<char *>(name), "TITLE")) { context->title = ""; context->addTitle = true; } (void) attributes; } // // libxml end element callback function // static void EndElement(void *voidContext, const xmlChar *name) { Context *context = static_cast<Context *>(voidContext); if(COMPARE(reinterpret_cast<char *>(name), "TITLE")) context->addTitle = false; } // // Text handling helper function // static void handleCharacters(Context *context, const xmlChar *chars, int length) { if(context->addTitle) context->title.append(reinterpret_cast<char *>(chars), length); } // // libxml PCDATA callback function // static void Characters(void *voidContext, const xmlChar *chars, int length) { Context *context = static_cast<Context *>(voidContext); handleCharacters(context, chars, length); } // // libxml CDATA callback function // static void cdata(void *voidContext, const xmlChar *chars, int length) { Context *context = static_cast<Context *>(voidContext); handleCharacters(context, chars, length); } // // libxml SAX callback structure // static htmlSAXHandler saxHandler = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, StartElement, EndElement, NULL, Characters, NULL, NULL, NULL, NULL, NULL, NULL, NULL, cdata, NULL }; // // Parse given (assumed to be) HTML text and return the title // static void parseHtml(const std::string &html, std::string &title) { htmlParserCtxtPtr ctxt; Context context; ctxt = htmlCreatePushParserCtxt(&saxHandler, &context, "", 0, "", XML_CHAR_ENCODING_NONE); htmlParseChunk(ctxt, html.c_str(), html.size(), 0); htmlParseChunk(ctxt, "", 0, 1); htmlFreeParserCtxt(ctxt); title = context.title; } int main(int argc, char *argv[]) { CURL *conn = NULL; CURLcode code; std::string title; // Ensure one argument is given if(argc != 2) { fprintf(stderr, "Usage: %s <url>\n", argv[0]); exit(EXIT_FAILURE); } curl_global_init(CURL_GLOBAL_DEFAULT); // Initialize CURL connection if(!init(conn, argv[1])) { fprintf(stderr, "Connection initialization failed\n"); exit(EXIT_FAILURE); } // Retrieve content for the URL code = curl_easy_perform(conn); curl_easy_cleanup(conn); if(code != CURLE_OK) { fprintf(stderr, "Failed to get '%s' [%s]\n", argv[1], errorBuffer); exit(EXIT_FAILURE); } // Parse the (assumed) HTML code parseHtml(buffer, title); // Display the extracted title printf("Title: %s\n", title.c_str()); return EXIT_SUCCESS; }