Skip to content

Instantly share code, notes, and snippets.

000webhost.com
16mb.com
5gbfree.com
afraid.org
appzoneteam.com
bit.do
c9users.io
cutt.ly
contabo.net
cuu.su
@mrpnkt
mrpnkt / windows_hardening.cmd
Created May 10, 2020 13:53 — 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.
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
::
::#######################################################################
::
:: Change file associations to protect against common ransomware
@mrpnkt
mrpnkt / hpwned.py
Created March 11, 2019 07:29 — forked from intrd/hpwned.py
Haveibeenpwned mail leaked mass checker
## Haveibeenpwned mail leaked mass checker
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
# usage: python hpwned.py maillist.txt
import requests, json, time, sys
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
#!/usr/bin/env python
# Based on https://www.openwall.com/lists/oss-security/2018/08/16/1
# untested CVE-2018-10933
import sys, paramiko
import logging
username = sys.argv[1]
hostname = sys.argv[2]
command = sys.argv[3]
@mrpnkt
mrpnkt / security_podcasts.opml
Last active September 12, 2018 07:03
Security Podcasts
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>FreshRSS</title>
<dateCreated>Fri, 24 Aug 2018 11:33:09</dateCreated>
</head>
<body>
<outline text="Podcasts">
<outline text="Beers with Talos Podcast" type="rss" xmlUrl="http://feeds.feedburner.com/BeersWithTalosPodcast" htmlUrl="https://www.talosintelligence.com/podcasts" description="Threats, Beers, and No Silver Bullets. Listen to Talos security experts as they dive into emerging threats, forcing the bad guys to innovate, hacking refrigerators, and other security issues, all with beer."/>
<outline text="Binary Blogger" type="rss" xmlUrl="https://binaryblogger.com/feed/" htmlUrl="https://binaryblogger.com/" description="Are you a 1 or a 0? Security News and Topics That You Can Understand"/>
@mrpnkt
mrpnkt / pdfmetadata.py
Created September 5, 2018 12:40
pdfmetadata.py
#!usr/bin/env python
# coding: utf-8
from PyPDF2 import PdfFileReader, PdfFileWriter
import os, time, os.path, stat
from PyPDF2.generic import NameObject, createStringObject
class bcolors:
OKGREEN = '\033[92m'
Open Systems Interconnection model (OSI model)
Layers:
7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data
@mrpnkt
mrpnkt / strip-pdf-metadata.py
Created February 7, 2018 08:43 — forked from fish2000/strip-pdf-metadata.py
A very bare-bones PDF metadata-clobberer Python script.
#!/usr/bin/env python
# encoding: utf-8
"""
strip-pdf-metadata.py
Created by FI$H 2000 on 2012-01-17.
Copyright (c) 2012 Objects In Space And Time, LLC. All rights reserved.
See also:

Keybase proof

I hereby claim:

  • I am mrpnkt on github.
  • I am mrpnkt (https://keybase.io/mrpnkt) on keybase.
  • I have a public key ASACRDS_m9YqtbLPd9sGOhF4degZmsBcgFoYwpAzc8ly9Ao

To claim this, I am signing this object:

@mrpnkt
mrpnkt / SystemEnumeration.bat
Created September 11, 2017 10:32
System Enumeration (Windows). Basic information about the environment, Browsing History & Passwords.
:: Name: SystemEnumeration.bat
:: Purpose: Basic information about the environment, Browsing History & Passwords
:: Author: mrpnkt
:: Revision: 15/08/2017
@ECHO OFF
cls
@echo.
@echo === WINDOWS SYSTEM ENUMATOR (VERSION CHEE) ==================
@echo.