Skip to content

Instantly share code, notes, and snippets.

@wirepair
wirepair / attackvectorchecklist.txt
Created March 20, 2019 22:54
super old pen-testing checklist
Attack Vector Checklist v1.2 Mar 23rd 2010
-----------------------------------
target site: [ ]
user accounts: [ ]
/*****************************************************************************/
/* AUTHENTICATION */
/*****************************************************************************/
@wirepair
wirepair / banned.go
Created April 19, 2019 06:45
http client ban ip on request
package main
import (
"context"
"crypto/tls"
"errors"
"log"
"net"
"net/http"
"net/http/httputil"
@wirepair
wirepair / example.spec.js
Created December 31, 2019 09:45
Debug Mocha, vue-cli 3 es module tests, in vscode (requires debugger statements)
import { expect } from 'chai'
import { shallowMount } from '@vue/test-utils'
import HelloWorld from '@/components/HelloWorld.vue'
describe('HelloWorld.vue', () => {
it('renders props.msg when passed', () => {
const msg = 'new message'
debugger
const wrapper = shallowMount(HelloWorld, {
propsData: { msg }
@wirepair
wirepair / set_visibility.py
Created June 16, 2024 12:58
create set of visibility for each character
characters = [
{'id': 1, 'visible': set()},
{'id': 2, 'visible': set()},
{'id': 3, 'visible': set()},
{'id': 4, 'visible': set()},
{'id': 5, 'visible': set()},
{'id': 6, 'visible': set()},
]
mapchunks = [