When its browser entrypoint runs, the package creates a remote command channel and executes code supplied over it. It also loads remote game code into a script-enabled iframe.
Source passes code obtained from a remote response into a dynamic execution sink.
index.jsView on unpkg · L1The browser runtime opens a command stream to a per-client ntfy.sh topic.
index.jsView on unpkg · L1085Messages requesting EVAL_CODE are executed with eval or Function and their results are sent back to ntfy.sh.
index.jsView on unpkg · L1114Game content is fetched, decoded, and written into a same-origin script-enabled iframe.
index.jsView on unpkg · L398Game content is fetched, decoded, and written into a same-origin script-enabled iframe.
index.jsView on unpkg · L496Source passes code obtained from a remote response into a dynamic execution sink.
index.jsView on unpkg · L1Game content is fetched, decoded, and written into a same-origin script-enabled iframe.
index.jsView on unpkg · L398Game content is fetched, decoded, and written into a same-origin script-enabled iframe.
index.jsView on unpkg · L496The browser runtime opens a command stream to a per-client ntfy.sh topic.
index.jsView on unpkg · L1085Messages requesting EVAL_CODE are executed with eval or Function and their results are sent back to ntfy.sh.
index.jsView on unpkg · L1114