MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / phish_server

Function phish_server

cli/main.py:563–583  ·  view source on GitHub ↗

Start phishing server for landing pages.

(
    host: str = typer.Option("0.0.0.0", "--host", "-h"),
    port: int = typer.Option(8080, "--port", "-p"),
)

Source from the content-addressed store, hash-verified

561 table.add_row(t.id, t.name, t.category)
562
563 console.print(table)
564
565
566@phish_app.command("server")
567def 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())

Callers

nothing calls this directly

Calls 4

stopMethod · 0.95
PhishingServerClass · 0.90
run_asyncFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected