-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
37 lines (30 loc) · 1.95 KB
/
Main.py
File metadata and controls
37 lines (30 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File: main.py
# This is the primary entry point for running the Xploit AI Flask application.
# It initializes the Flask app from app.py and runs it.
import os
from app import create_app
# ASCII art for the Xploit AI launch screen
# You can customize this skull design!
SKULL_ART = r"""
██╗ ██╗██╗ ██╗██╗ ██╗██╗ ██╗███████╗██╗ ██╗██╗ ██╗██████╗ ██╗
██║ ██║██║ ██║██║ ██║██║ ██║██╔════╝██║ ██║██║ ██║██╔══██╗██║
███████║███████║██║ ██║███████║█████╗ ██║ ██║██║ ██║██████╔╝██║
██╔══██║██╔══██║██║ ██║██╔══██║██╔══╝ ██║ ██║██║ ██║██╔══██╗╚═╝
██║ ██║██║ ██║╚██████╔╝██║ ██║███████╗╚██████╔╝███████╗██║██║ ██║██╗
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚══════╝╚═╝╚═╝ ╚═╝╚═╝
💀 Xploit AI: AI-Powered Web Pentest Assistant 💀
"""
def main():
"""
Main function to initialize and run the Flask application.
Prints a launch screen and starts the development server.
"""
print(SKULL_ART)
print("\nStarting Xploit AI server...")
# Create the Flask application instance
app = create_app()
# Run the Flask development server
# In a production environment, you would use a WSGI server like Gunicorn or uWSGI.
app.run(debug=True, host='0.0.0.0', port=5000)
if __name__ == '__main__':
main()