Skip to content

Commit

Permalink
add challenge 11
Browse files Browse the repository at this point in the history
  • Loading branch information
amiremohamadi committed Jan 11, 2025
1 parent 681bb15 commit 9eef3b4
Show file tree
Hide file tree
Showing 8 changed files with 889 additions and 0 deletions.
68 changes: 68 additions & 0 deletions content/~challenge/11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
title: "چالش ۱۱"
date: 2025-01-11T00:00:00+00:00
persianDate: 1403-10-21
layout: post
summary: sudo rm -rf /
type: news
darft: true
---

{{< rawhtml >}}
<style>
@font-face {
font-family: "Iosevka";
src: url("/challenge/11/iosevka-regular.woff2");
}
#screen_container {
direction: ltr;
background: black;
display: flex;
align-items: center;
padding: 1rem;
border-radius: 1rem;
}
#screen {
white-space: pre;
font-family: "Iosevka", monospace;
font-size: 16px;
line-height: 120%;
transform: scale(1);
}
</style>

<script src="/challenge/11/lib/libv86.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
let config = {
wasm_path: "/challenge/11/lib/v86.wasm",
memory_size: 64 * 1024 * 1024,
vga_memory_size: 2 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
bios: {url: "/challenge/11/images/seabios.bin"},
vga_bios: {url: "/challenge/11/images/vgabios.bin"},
cdrom: {url: "/challenge/11/images/image.iso"},
initial_state: {url: "/challenge/11/images/booted-state.bin.zst"},
disable_mouse: true,
autostart: true,
}
window.emulator = new V86Starter(config);
emulator.add_listener("emulator-ready", async function()
{
await emulator.create_file("/readme", '');
emulator.serial0_send("echo https://askubuntu.com/questions/670648/what-does-rm-rf-do > /root/readme\n");
emulator.serial0_send("echo https://askubuntu.com/questions/670648/what-does-rm-rf-do > /readme\n");
});
});
</script>

<p>اجرای <span dir="ltr">rm -rf /*</span> چه بلایی سر سیستم لینوکسی‌تون میاره؟ روی ماشین مجازی پایین امتحان کنید!</p>

<div id="screen_container">
<div id="screen"></div>
<canvas style="display: none"></canvas>
</div>
{{< /rawhtml >}}

### مرتبط
- [Dangerous Linux Commands](https://phoenixnap.com/kb/dangerous-linux-terminal-commands)
Binary file added static/challenge/11/images/booted-state.bin.zst
Binary file not shown.
Binary file added static/challenge/11/images/image.iso
Binary file not shown.
Binary file added static/challenge/11/images/seabios.bin
Binary file not shown.
Binary file added static/challenge/11/images/vgabios.bin
Binary file not shown.
Binary file added static/challenge/11/iosevka-regular.woff2
Binary file not shown.
821 changes: 821 additions & 0 deletions static/challenge/11/lib/libv86.js

Large diffs are not rendered by default.

Binary file added static/challenge/11/lib/v86.wasm
Binary file not shown.

0 comments on commit 9eef3b4

Please sign in to comment.