This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gti='git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import env, local, run, require, cd, sudo | |
import os | |
from fabric.context_managers import cd | |
env.project_name = 'weight' | |
def prod(): | |
"Use the actual webserver" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from collections import defaultdict | |
d = defaultdict(int) | |
with open('/usr/share/wordlists/rockyou.txt', 'r') as f: | |
for l in f: | |
for c in re.findall('\W', l[:-1]): | |
d[c] += 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
rules = ( | |
re.compile('[a-z]'), | |
re.compile('[A-Z]'), | |
re.compile('[1-9]'), | |
re.compile('[\!\+\-\@\.]'), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, re, sys | |
""" | |
Recursively traverse a php repo, add a line that logs fn calls. | |
Non overlapping matches! | |
Arg: output file full path | |
""" | |
OUTFILE = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, time, os | |
""" | |
List all .php files in repo, send GET and POST to live url, print response if it is not 404 | |
Start from repo root dir. | |
Args: base_url_to_live_server | |
""" | |
COOKIES = {'SESSID': '', 'PHPSESSID': ''} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
""" | |
Recursively traverse a php repo, | |
add a line that logs fn calls. | |
Non overlapping matches. | |
cd into project root. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script=document.createElement('script');document.head.appendChild(script);script.src='https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(i=0;i<document.scripts.length;i++)console.log(document.scripts[i].src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install jsbeautifier requests | |
import os | |
import requests | |
from jsbeautifier import beautify | |
try: | |
os.mkdir('js') | |
except OSError: | |
pass |
OlderNewer