From a733ed7dff3e1c675d2503c019a2f02a2bc529d7 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 20 Aug 2024 22:01:43 -0700 Subject: [PATCH] loosen the 'am i in the dojo' check for the vm chec --- pwnshop/challenges/base/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnshop/challenges/base/base.c b/pwnshop/challenges/base/base.c index e64871d..9efdf66 100644 --- a/pwnshop/challenges/base/base.c +++ b/pwnshop/challenges/base/base.c @@ -161,7 +161,7 @@ int main(int argc, char **argv, char **envp) {% if challenge.require_vm %} gethostname(hostname, 128); - if (strstr(hostname, "-level") && !strstr(hostname, "vm_")) + if (strstr(hostname, "~") && !strstr(hostname, "vm_")) { puts("ERROR: in the dojo, this challenge MUST run in virtualization mode."); puts("Please run `vm connect` to launch and connect to the Virtual Machine, then run this challenge inside the VM.");