Skip to content

Instantly share code, notes, and snippets.

View jonz-secops's full-sized avatar

mrz-secops-offsec jonz-secops

  • Mountain State, USA
View GitHub Profile
@jonz-secops
jonz-secops / gist:d80b89054f70c052af0d69d6b382867a
Created November 12, 2019 18:53 — forked from ntanya/gist:816cba067f0e0dccc524
Python script to check HTTP status and redirect chains
import requests
def get_status_code(url):
try:
r = requests.get(url)
print "Processing " + url
if len(r.history) > 0:
chain = ""
code = r.history[0].status_code
@jonz-secops
jonz-secops / openssl_commands.md
Created December 2, 2019 21:40 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@jonz-secops
jonz-secops / markdown-to-slack.py
Created January 27, 2020 22:40 — forked from mrts/markdown-to-slack.py
Markdown to Slack
# Translates Markdown syntax to Slack, replaces:
#
# - hyphened lists with bullet symbols
# - double bold marker asterisks `**` with single asterisk `*`
# - headers `#` with bold marker asterisks `*`
#
# Run with
#
# python markdown-to-slack.py filename.md
#
@jonz-secops
jonz-secops / all.txt
Created February 24, 2020 23:38 — forked from jhaddix/all.txt
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<dt><a href="https://splunkbase.splunk.com/">Splunkbase</a>
<dt><a href="https://git.io/splhighlighter">Splunk Highlighter</a>
<dt><a href="http://regex101.com/">regex101.com</a>
<dt><a href="http://strftime.net/">strftime.net</a>
<DT><H3 ADD_DATE="1551742873" LAST_MODIFIED="1553513798">.Conf Files</H3>
@jonz-secops
jonz-secops / update_mozilla_firefox.sh
Created January 5, 2022 19:35 — forked from mzpqnxow/update_mozilla_firefox.sh
Install/Update Mozilla release of Firefox on Debian and other Linux distributions, can be run from cron
#!/bin/bash
#
# Install/Update Mozilla Firefox conveniently and repeatably, allowing version selection
# The ESR Firefox that ships with Debian 10/11 (and probably Ubuntu, etc) doesn't support
# containers, so I found myself installing the Mozilla distribution of Firefox. That had
# me a little concerned about keeping it up to date, so I run this out of cron. Maybe it's
# useful for someone ...
#
# This is intended for use with XFCE but I think most window managers use the .desktop style
# metadata files for launchers/menus/etc. Check /usr/share/applications/ on your system to
@jonz-secops
jonz-secops / file_magic_numbers.md
Created January 27, 2022 01:20 — forked from leommoore/file_magic_numbers.md
File Magic Numbers

#File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

##Image Files

@jonz-secops
jonz-secops / doh-blocklist.txt
Created April 25, 2022 22:43 — forked from ckuethe/doh-blocklist.txt
DNS-over-HTTPS Block List
# Here are some domains I block to interfere with DNS-over-HTTPS, so that my own DNS-based security schemes work.
# If you're going to be doing this, you should probably block all outbound 53, 853, and 5353 on your network,
# except from your own internal DNS resolver (eg. pihole)
#
# Data from https://github.com/curl/curl/wiki/DNS-over-HTTPS
one.one.one.one
canadianshield.cira.ca
doh.dns.sb
dnsforge.de
UPDATE PROCESS START [ 05/04/17 23:26:31 ]
===[ DNSBL Process ]================================================
[ EasyList_wo_Elements ] Reload [ 05/04/17 23:26:32 ] . completed ..
----------------------------------------------------------------------
Orig. Unique # Dups # White # Alexa Final
----------------------------------------------------------------------
7964 7577 0 0 0 7577
----------------------------------------------------------------------
@jonz-secops
jonz-secops / CreateProcess.ps1
Created May 31, 2022 23:45 — forked from mgraeber-rc/CreateProcess.ps1
A simple CreateProcess wrapper for demonstrating starting a process with custom command-line arguments.
function Start-ProcessWithCommandLine {
<#
.SYNOPSIS
A simple CreateProcess wrapper for demonstrating starting a process with custom command-line arguments.
Author: Matt Graeber
Company: Red Canary, Inc.
.PARAMETER ApplicationName