-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
681bb15
commit 9eef3b4
Showing
8 changed files
with
889 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.