Skip to content

Instantly share code, notes, and snippets.

wpad.n10.tconet.net
crl.telecomputing.no
n10-vpn.tchost.no
outlook.office.com
zalaris.sharepoint.com
zalaris-my.sharepoint.com
portal.zalaris.com
www.google.com
play.googleapis.com
teams.microsoft.com
@dantof
dantof / calculate.js
Created January 13, 2022 09:39 — forked from tomjohnneill/calculate.js
Calculate the best possible guess for Wordle
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;
@dantof
dantof / free_email_provider_domains.txt
Last active March 26, 2021 07:58 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
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
@dantof
dantof / bst.py
Created March 19, 2021 16:27 — forked from davidlares/bst.py
Binary search tree with Python
#/usr/bin/python3
# binary search tree
class Node:
val = 0
left = 0
right = 0
def __init__(self, val):
self.val = val
@dantof
dantof / chocolatey-env-setup.ps1
Created March 19, 2021 16:18 — forked from amogram/chocolatey-env-setup.ps1
A Chocolatey script for PowerShell I use to set up my Windows development environment. I use this when setting up my own Dev VMs. Use at your own risk.See http://bit.ly/1a301JK and http://chocolatey.org/ for more information.
# 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
@dantof
dantof / LNKBackdoor.ps1
Created March 19, 2021 16:18 — forked from HarmJ0y/LNKBackdoor.ps1
Functions to 'backdoor' .LNK files with additional functionality and enumerate all 'backdoored' .LNKs on a system.
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
@dantof
dantof / disable_windows_defender.bat
Created March 19, 2021 16:17 — forked from pe3zx/disable_windows_defender.bat
Disable Windows Defender on Windows 10 1903
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
@dantof
dantof / gist:83bd02541b8e5290433abff4bde0fca9
Created March 19, 2021 16:16 — forked from jameswebb68/gist:34ed19ed2b06d99c484b
Synology Active Directory ADS join domain fix (suddenly nas lost connection to domain)
# 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.
@dantof
dantof / Extract-WiFi-Creds.ps1
Created January 18, 2021 11:11 — forked from gfoss/Extract-WiFi-Creds.ps1
Simple script to extract locally-stored Wi-Fi Credentials
#====================================#
# Extract Wi-Fi Credentials #
# greg . foss @ owasp . org #
# v0.1 -- July, 2017 #
#====================================#
# Licensed under the MIT License
<#
@dantof
dantof / Get-RemoteSSLCertificate.ps1
Created January 18, 2021 11:11 — forked from jstangroome/Get-RemoteSSLCertificate.ps1
PowerShell script to retrieve the public SSL certificate from a remote SSL endpoint
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]
$ComputerName,
[int]
$Port = 443
)