Skip to content

Instantly share code, notes, and snippets.

View alihesari's full-sized avatar

Ali Hesari alihesari

View GitHub Profile
@alihesari
alihesari / countries.json
Last active September 18, 2018 07:58
JSON List of countries of the world
[
{
"name": "Afghanistan",
"shortName": "AF",
"capital": "Kabul",
"continent": "Asia"
},
{
"name": "Aland Islands",
"shortName": "AX",
@alihesari
alihesari / regex
Created April 27, 2020 12:49
Mobile regex
(^((00989)|(\+989)|(989)|09|(9[0-4,9][0-9])))
# Mobile range number
901
902
903
904
905
910
911
@alihesari
alihesari / google-dorks
Created April 3, 2021 06:47 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@alihesari
alihesari / listAllEventListeners.js
Created August 22, 2021 08:38 — forked from tkafka/listAllEventListeners.js
List all event listeners in a document
console.table((function listAllEventListeners() {
const allElements = Array.prototype.slice.call(document.querySelectorAll('*'));
allElements.push(document); // we also want document events
const types = [];
for (let ev in window) {
if (/^on/.test(ev)) types[types.length] = ev;
}
let elements = [];
for (let i = 0; i < allElements.length; i++) {