-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
34 lines (26 loc) Β· 1.07 KB
/
run.py
File metadata and controls
34 lines (26 loc) Β· 1.07 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
#!/usr/bin/env python3
import os
import sys
# Add the current directory to Python path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from app import app, init_db, populate_sample_data
if __name__ == '__main__':
print("π Starting XSSBook - Intentionally Vulnerable Social Network")
print("=" * 60)
# Initialize database and populate sample data
print("π Initializing database...")
init_db()
print("π₯ Populating sample data...")
populate_sample_data()
print("=" * 60)
print("β
XSSBook is ready!")
print("π Open your browser and navigate to: http://localhost:5000")
print("π€ Demo accounts:")
print(" Username: bret, antonette, samantha")
print(" Password: password123")
print("=" * 60)
print("β οΈ WARNING: This application contains intentional vulnerabilities!")
print(" Use only for educational purposes in isolated environments.")
print("=" * 60)
# Run the Flask app
app.run(debug=True, host='0.0.0.0', port=5000)