Skip to content

Instantly share code, notes, and snippets.

Avatar

Yehonatan Water Man yonixw

View GitHub Profile
@yonixw
yonixw / haproxy.config
Created Aug 23, 2021 — forked from hzbd/haproxy.config
Sample HAProxy config with logging.
View haproxy.config
global
pidfile /var/run/haproxy.pid
log 127.0.0.1 local0 info
ulimit-n 65536
defaults
mode http
clitimeout 600000 # maximum inactivity time on the client side
srvtimeout 600000 # maximum inactivity time on the server side
@yonixw
yonixw / decoded.js
Created Aug 29, 2019 — forked from gwillem/decoded.js
962 stores found breached on the 4th of July - https://sansec.io
View decoded.js
// Decoded by Sanguine Security <info@sansec.io>
String.prototype.hexEncode = function() {
var a, b;
var output = '';
for (b = 0; b < this.length; b++) {
a = this.charCodeAt(b).toString(16);
output += ('000' + a).slice(-4)
};
return output
};
@yonixw
yonixw / ieESC_disable
Created Jun 5, 2019 — forked from danielscholl/ieESC_disable
Disable IE Enhance Security PowerShell
View ieESC_disable
function Disable-ieESC {
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}"
Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0
Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0
Stop-Process -Name Explorer
Write-Host "IE Enhanced Security Configuration (ESC) has been disabled." -ForegroundColor Green
}
Disable-ieESC