L’agent est le moteur des challenges, c’est lui qui est en charge des instances des différents challenges.

Pour lancer un agent en local vous pouvez utiliser la commande pathwar dev server qui lance aussi l’API au passage.

Components of pathwar

┌──────────────────────────────────────────────────────────────────────────┐
│                            Pathwar Ecosystem                             │
│┌────────────────────────────────────────────────────────────────────────┐│
││                                  API                                   ││
││╔══════════════════════════════════╗┌──────────────────────────────────┐││
││║           pathwar api            ║│              MySQL               │││
││║                                  ║│                                  │││
││║                                  ║│                                  │││
││║                                  ║│                                  │││
││║                                  ║│                                  │││
││╚══════════════════════════════════╝└──────────────────────────────────┘││
│└────────────────────────────────────────────────────────────────────────┘│
│┌────────────────────────────────────────────────────────────────────────┐│
││                                Agent #1                                ││
││╔═══════════╗┌──────────────────────────────────────────┐┌─────────────┐││
││║  pathwar  ║│          Challenge Instance #1           ││  Challenge  │││
││║   agent   ║│┌────────────┐┌────────────┐┌────────────┐││ Instance #2 │││
││║           ║││Front (made ││DB (make for││   Cache    │││             │││
││╚═══════════╝││for pathwar)││  pathwar)  ││(unmodified │││             │││
││┌───────────┐││            ││            ││  official  │││             │││
│││  Docker   │││            ││            ││   image)   │││             │││
│││           │││            ││            ││            │││             │││
││└───────────┘││            ││            ││            │││             │││
││┌───────────┐││╔══════════╗││╔══════════╗││            │││             │││
│││HTTP Proxy │││║  pwinit  ║││║  pwinit  ║││            │││             │││
│││           │││║          ║││║          ║││            │││             │││
││└───────────┘││║          ║││║          ║││            │││             │││
││┌───────────┐││║          ║││║          ║││            │││             │││
│││ SSH Proxy │││╚══════════╝││╚══════════╝││            │││             │││
│││           ││└────────────┘└────────────┘└────────────┘││             │││
││└───────────┘└──────────────────────────────────────────┘└─────────────┘││
│├────────────────────────────────────────────────────────────────────────┤│
││                                Agent #2                                ││
│└────────────────────────────────────────────────────────────────────────┘│
└──────────────────────────────────────────────────────────────────────────┘