Skip to content

Instantly share code, notes, and snippets.

@IAmStoxe
IAmStoxe / reclaimWindows10.ps1
Created October 12, 2016 19:24 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Forked from http://pastebin.com/gQxCUkLP
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Original Version: 1.4, 2016-01-16
# Tweaked based on personal preferences for @alirobe 2016-03-23 - v1.4.1
# NOTE: MAKE SURE YOU READ THIS SCRIPT CAREFULLY BEFORE RUNNING IT + ADJUST COMMENTING AS APPROPRIATE
# This script will reboot your machine when completed.
##########
# Ask for elevated permissions if required
@IAmStoxe
IAmStoxe / typos
Created February 18, 2017 06:02 — forked from lucasdinonolte/typos
Command Line Typo Generator (node.js based)
#!/usr/bin/env node
/**
* generateTypos
* Generate Typos from keywords
*
* @param array keywords
* @param bool wrongKeys
* @param bool missedChars
* @param bool transposedChars
@IAmStoxe
IAmStoxe / shodan-google-spreadsheet.js
Created March 16, 2017 12:44 — forked from achillean/shodan-google-spreadsheet.js
Shodan macros for Google Spreadsheets. To use this go to Tools -> Script Editor, then copy/ paste the code. In the spreadsheet you can then do: =SHODAN_COUNT("cisco-ios") =SHODAN_FACET_KEYS("cisco-ios", "org") =SHODAN_FACET_VALUES("cisco-ios", "org")
var API_KEY = 'YOUR API KEY';
/**
* Search the Shodan database using the given query. Returns the number of matches.
*/
function SHODAN_COUNT(query) {
var url = 'https://api.shodan.io/shodan/host/count?key=' + API_KEY + '&query=' + query;
var response = UrlFetchApp.fetch(url);
var data = Utilities.jsonParse(response.getContentText());
<#
.Synopsis
Scans a host or network for the MS17-010 vulnerability and output results as a
table that you can pipe to other PowerShell functions such as Invoke-Command or
Export-CSV.
.DESCRIPTION
This script will use a custom NMap NSE script to scan a destination host on
port 445 for the MS17-010 vulnerability. If the host is not online or is blocking
/*
* Name: SigScanSharp
* Author: Striekcarl/GENESIS @ Unknowncheats
* Date: 14/05/2017
* Purpose: Find memory patterns, both individually or simultaneously, as fast as possible
*
* Example:
* Init:
* Process TargetProcess = Process.GetProcessesByName("TslGame")[0];
* SigScanSharp Sigscan = new SigScanSharp(TargetProcess.Handle);
@IAmStoxe
IAmStoxe / Shodan-to-Powershell.ps1
Created November 14, 2018 01:17
How to pipe Shodan CLI to a CSV object in one line.
shodan search "SEARCH_QUERY_HERE" --fields ip_str,port --color --separator "," | ConvertFrom-Csv -Delim ',' -Header IP,PORT
@IAmStoxe
IAmStoxe / firewall.sh
Created November 16, 2018 20:31
Easy UWF VPN Killswitch
#!/bin/bash
# Reset ufw and skip the confirmation
sudo ufw --force reset
# Set default to deny any incoming and all outgoing
sudo ufw default deny incoming
sudo ufw default allow outgoing
# Allow all IN/OUT traffic on our tun0 (VPN) adapter
@IAmStoxe
IAmStoxe / BLOCKALL.bat
Created December 30, 2018 04:46
You can use a Simple Batch File. Open Notepad and copy/paste the script below into a blank document. Save the file as BLOCKALL.BAT. Now copy that file to the same directory as the EXEs you want to block and double click it. It will add outbound rules to advanced Windows Firewall settings blocking all EXEs in that folder and sub-folders as well. …
@ setlocal enableextensions
@ cd /d "%~dp0"
for /R %%a in (*.exe) do (
netsh advfirewall firewall add rule name="Blocked with Batchfile %%a" dir=out program="%%a" action=block
)
@IAmStoxe
IAmStoxe / .bashrc
Created December 30, 2018 21:33
Universal Extract Alias
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
@IAmStoxe
IAmStoxe / bruteforce.py
Created November 6, 2019 19:46
Brute Force Iteration of Given Set of Characters
import itertools
min_length = 5
max_length = 10
char_set = 'abcdefghijklmnopqrstuvwxyz1234567890-'
for n in range(min_length, max_length + 1):
for xs in itertools.product(char_set, repeat=n):
chars = ''.join(xs)
print(chars)