Skip to content

Instantly share code, notes, and snippets.

View denys781's full-sized avatar

Denys Khodakov denys781

View GitHub Profile
@denys781
denys781 / TrustStore.html
Created October 21, 2025 08:35 — forked from inC3ASE/TrustStore.html
TrustStore.html from file:///System/Library/Security/Certificates.bundle/Contents/Resources/TrustStore.html on Personal Computer; 1-2 of 4 Apple Certificates always come up invalid through authentication process and certificate validation checks but used to bypass auth processes of Gatekeeper
<!doctype html>
<html>
<head lang='en'>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trust Certificates | Trust | Untrusted | | Blocked | Macbook Air | 13.3 Inch | Mid-2013</title>
</head>
#include "async_socket_connection_handler.hpp"
#include <thread>
async_socket_connection_handler::async_socket_connection_handler(std::size_t max_con_num_) noexcept
: cur_con_num(0)
, max_con_num(max_con_num_) { }
void async_socket_connection_handler::add_connection(std::int32_t socket) {
std::unique_lock<std::mutex> ulock(mtx);
#ifndef ASYNC_SOCKET_CONNECTION_HANDLER_HPP_
#define ASYNC_SOCKET_CONNECTION_HANDLER_HPP_
#include <x86_64-linux-gnu/sys/socket.h>
#include <x86_64-linux-gnu/sys/unistd.h>
#include <netinet/in.h>
#include <cstddef>
#include <cstring>
#include <mutex>
#include "async_socket_connection_handler.hpp"
const std::uint16_t PORT = 1601;
int main() {
struct sockaddr_in address;
std::int32_t addrlen = sizeof(address);
std::int32_t server_socket;
std::int32_t client_socket;
async_socket_connection_handler client_handler(4);
#include <x86_64-linux-gnu/sys/socket.h>
#include <x86_64-linux-gnu/sys/unistd.h>
#include <netinet/in.h>
#include <iostream>
#include <string>
const std::uint16_t PORT = 1601;
int main() {
#ifndef SMART_POINTERS_HPP_
#define SMART_POINTERS_HPP_
#include <new>
#include <cstddef>
#include <utility>
#include <stdexcept>
#include <type_traits>
template<class Ty>
#include <windows.h>
class file_guard final {
public:
file_guard(HANDLE file_handle_)
: file_handle(file_handle_) { }
file_guard(file_guard&&) = delete;
file_guard& operator=(file_guard&&) = delete;
#include <memory>
#include <x86_64-linux-gnu/sys/socket.h>
#include <x86_64-linux-gnu/sys/unistd.h>
void socket_deleter_1(int* socket_handle) {
if (*socket_handle != -1) {
close(*socket_handle);
}
delete socket_handle;