Skip to content

Commit

Permalink
loosen the 'am i in the dojo' check for the vm chec
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Aug 21, 2024
1 parent 1063d55 commit a733ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnshop/challenges/base/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit a733ed7

Please sign in to comment.