Skip to content

Instantly share code, notes, and snippets.

===============================================================================
User Name-: pc-ISO
Registration code :- 212RP-86U3G-1F46L-6ZME3-WGV3W
===============================================================================
User Name-: PC-ISO
Registration code :- I9YK2-P48AX-84FD8-KID8C-65WPL
================================================================================
User Name-: PC-ISO2011
Registration code :- 2148F-J8M9N-92IFC-G94M2-XS7JF
================================================================================
@fransr
fransr / bucket-disclose.sh
Last active May 1, 2024 09:46
Using error messages to decloak an S3 bucket. Uses soap, unicode, post, multipart, streaming and index listing as ways of figure it out. You do need a valid aws-key (never the secret) to properly get the error messages
#!/bin/bash
# Written by Frans Rosén (twitter.com/fransrosen)
_debug="$2" #turn on debug
_timeout="20"
#you need a valid key, since the errors happens after it validates that the key exist. we do not need the secret key, only access key
_aws_key="AKIA..."
H_ACCEPT="accept-language: en-US,en;q=0.9,sv;q=0.8,zh-TW;q=0.7,zh;q=0.6,fi;q=0.5,it;q=0.4,de;q=0.3"
H_AGENT="user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36"
@dmig
dmig / mongod.json
Created May 13, 2018 06:10
lnav MongoDB log format
{
"mongod_log": {
"title": "MongoDB server log format",
"regex": {
"main": {
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[,\\.]\\d+\\+\\d+)\\s+(?<level>\\w)\\s+(?<component>\\w+|-)\\s+\\[?(?<context>-?\\w+)?\\]\\s+(?<body>.*)$"
}
},
"level": {
"critical": "F",
@ibraheem4
ibraheem4 / postgres-brew.md
Last active May 1, 2024 09:43 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
//
// DarwinNotificationCenter.swift
//
// Created by Nonstrict on 2023-12-07.
//
import Foundation
import Combine
private let center = CFNotificationCenterGetDarwinNotifyCenter()
@glamrock
glamrock / cf-ns3.txt
Last active May 1, 2024 09:39
CF nameservers
ABBY.NS.CLOUDFLARE.COM
ADEL.NS.CLOUDFLARE.COM
ADI.NS.CLOUDFLARE.COM
AHLIA.NS.CLOUDFLARE.COM
ALI.NS.CLOUDFLARE.COM
ALICE.NS.CLOUDFLARE.COM
ALINA.NS.CLOUDFLARE.COM
AMANDA.NS.CLOUDFLARE.COM
AMY.NS.CLOUDFLARE.COM
ANNA.NS.CLOUDFLARE.COM
@Avaq
Avaq / combinators.js
Last active May 1, 2024 09:38
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@ssskip
ssskip / ISO3166-1.alpha2.json
Last active May 1, 2024 09:36
json of country codes (ISO 3166-1 alpha-2) and corresponding names
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
@nbremer
nbremer / .block
Last active May 1, 2024 09:36
Data based orientations in SVG Gradients - Step 1
height: 700