Skip to content

This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.

347 B
Raw Blame
from flask import Flask

app = Flask(__name__)

class MyException(Exception):
    status_code = 400

    def __init__(self, message, status_code):
        Exception.__init__(self)
        
@app.route('/showException')
def main():
    raise MyException('MyException', status_code=500)

if __name__ == ' __main__ ':
	app.run(debug = True) #insecure