This is just stuff that I have put down that I find I use a lot of the time for my own reference.
$ git pull
import { list } from "./wordlist.json"; | |
const matchesFilters = (wordList, filters) => { | |
return wordList.filter((word) => { | |
let match = true; | |
for (let i = 0; i < filters.length; i += 1) { | |
const { colour, position, letter } = filters[i]; | |
if (colour === "black") { | |
if (word.includes(letter)) { | |
match = false; |
yandex.com | |
fastmail.com | |
hey.com | |
poczta.int.pl | |
poczta.interia.pl | |
poczta.gazeta.pl | |
poczta.wp.pl | |
poczta.o2.pl | |
poczta.tlen.pl | |
poczta.onet.pl |
#/usr/bin/python3 | |
# binary search tree | |
class Node: | |
val = 0 | |
left = 0 | |
right = 0 | |
def __init__(self, val): | |
self.val = val |
# Simple environment setup script | |
# Install Applications | |
choco install fiddler4 | |
choco install notepadplusplus | |
choco install visualstudiocode | |
choco install greenshot | |
choco install GoogleChrome | |
choco install putty | |
choco install ccleaner |
function Set-LNKBackdoor { | |
<# | |
.SYNOPSIS | |
Backdoors an existing .LNK shortcut to trigger the original binary and a payload specified by | |
-ScriptBlock or -Command. | |
Author: @harmj0y | |
License: BSD 3-Clause | |
Required Dependencies: None |
rem USE AT OWN RISK AS IS WITHOUT WARRANTY OF ANY KIND !!!!! | |
rem https://technet.microsoft.com/en-us/itpro/powershell/windows/defender/set-mppreference | |
rem To also disable Windows Defender Security Center include this | |
rem reg add "HKLM\System\CurrentControlSet\Services\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f | |
rem 1 - Disable Real-time protection | |
reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f | |
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /t REG_DWORD /d "1" /f | |
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v "DisableAntiVirus" /t REG_DWORD /d "1" /f | |
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\MpEngine" /v "MpEnablePus" /t REG_DWORD /d "0" /f | |
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "DisableBehaviorMonitoring" /t REG_DWORD /d "1" /f |
# Your NAS Synology device suddenly lost connection to your Windows Domain Controller, and or intermittent AD connectivity issues. | |
# Symptoms include but not limited to: | |
# - Failing to rejoin after removing the account on the Domain. | |
# - Failing to rejoin without any changes | |
# - Join attempt results in = "Failed to join the Windows domain. Please check your domain and firewall settings and try again" | |
# - Synology is joined, but attempting to connect from domain clients results in "There are no logon servers available to service the logon request" | |
# - This problem happens intermittently, sometimes rebooting the Synology device allows you to rejoin (Not a solution). | |
# - Sometimes rebooting both Synology device and Domain Controller allows you to rejoin (Not a solution). | |
# 1st.) *OPTIONAL* Remove the AD Synology device from Avtice Directory Users/Computers. |
#====================================# | |
# Extract Wi-Fi Credentials # | |
# greg . foss @ owasp . org # | |
# v0.1 -- July, 2017 # | |
#====================================# | |
# Licensed under the MIT License | |
<# |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$ComputerName, | |
[int] | |
$Port = 443 | |
) |