Skip to content

Instantly share code, notes, and snippets.

View xKhronoz's full-sized avatar
:octocat:

Yee Kit xKhronoz

:octocat:
View GitHub Profile
@xKhronoz
xKhronoz / gist:500beb4cc69ad5690502034a706af12e
Created April 27, 2024 15:13 — forked from jedi4ever/gist:903751
Tuning stuff for Ubuntu hosts
# /etc/security/limits.conf
* soft nofile 999999
* hard nofile 999999
root soft nofile 999999
root hard nofile 999999
===========================================================
# /etc/sysctl.conf
# sysctl for maximum tuning
@xKhronoz
xKhronoz / cloudflare-ipset.sh
Created January 22, 2024 12:19 — forked from KiNgMaR/cloudflare-ipset.sh
Cloudflare IPTABLES and IPSET scripts - fixed 2022-02-23
#!/bin/bash
# name of the ipset - v4 or v6 will be appended.
IPSET_NAME=cloudflare-
# argument: v4 or v6 (defaults to v4)
cloudflare_ipset ()
{
local ipv
local inetv
@xKhronoz
xKhronoz / reverseshell.cpp
Created February 10, 2021 04:19 — forked from mrexodia/reverseshell.cpp
Reverse shell winapi c++ windows cmd. Useful for debugging production environments.
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
/*
THIS IS FOR DEBUGGING ONLY, DO NOT RUN THIS CODE IN PRODUCTION UNDER ANY CIRCUMSTANCE!
https://github.com/dev-frog/C-Reverse-Shell/blob/master/re.cpp
https://github.com/tudorthe1ntruder/reverse-shell-poc/blob/master/rs.c
https://eternallybored.org/misc/netcat/