Start phishing server for landing pages.
(
host: str = typer.Option("0.0.0.0", "--host", "-h"),
port: int = typer.Option(8080, "--port", "-p"),
)
| 561 | table.add_row(t.id, t.name, t.category) |
| 562 | |
| 563 | console.print(table) |
| 564 | |
| 565 | |
| 566 | @phish_app.command("server") |
| 567 | def phish_server( |
| 568 | host: str = typer.Option("0.0.0.0", "--host", "-h"), |
| 569 | port: int = typer.Option(8080, "--port", "-p"), |
| 570 | ): |
| 571 | """Start phishing server for landing pages.""" |
| 572 | from modules.phishing import PhishingServer |
| 573 | |
| 574 | console.print(f"[bold]Starting phishing server on {host}:{port}[/bold]") |
| 575 | server = PhishingServer(host=host, port=port) |
| 576 | |
| 577 | async def run(): |
| 578 | await server.start() |
| 579 | console.print("[green]Server running. Press Ctrl+C to stop.[/green]") |
| 580 | while True: |
| 581 | await asyncio.sleep(1) |
| 582 | |
| 583 | try: |
| 584 | run_async(run()) |
| 585 | except KeyboardInterrupt: |
| 586 | run_async(server.stop()) |
nothing calls this directly
no test coverage detected