-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from flis5/main
added ept arcade game writeup for munintrollet
- Loading branch information
Showing
5 changed files
with
61 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,61 @@ | ||
We are presented with a game, which upon closer inspection of the javascript code runs forever and seems unsolvable. | ||
|
||
In the main html file however, we see links to azure blobs. Maybe its a publicly readable blob? | ||
|
||
```html | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Arcade Game - Play</title> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
href="https://a8261cebfbaccblob.blob.core.windows.net/private/ept.png" | ||
/> | ||
<link rel="stylesheet" href="/static/css/styles.css" /> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Welcome to the EPT Arcade Game</h1> | ||
</header> | ||
|
||
<div class="content"> | ||
<div id="game-container"> | ||
<canvas id="gameCanvas"></canvas> | ||
</div> | ||
<div id="score-container"> | ||
<p>Score: <span id="score">0</span></p> | ||
<p>Level: <span id="level">1</span></p> | ||
<p>Time left: <span id="time">20</span> seconds</p> | ||
</div> | ||
<script> | ||
// Pass the target URL from Flask to the JavaScript | ||
const target_url = | ||
"https://a8261cebfbaccblob.blob.core.windows.net/private/ept.svg"; | ||
</script> | ||
</div> | ||
|
||
<footer> | ||
<p>© 2024 EPT Arcade Game</p> | ||
</footer> | ||
|
||
<script src="/static/js/game.js"></script> | ||
</body> | ||
</html> | ||
``` | ||
|
||
Using Azure Storage Explorer, lets try to connect to the blobs url. | ||
|
||
![blob](./images/blobconnect.png) | ||
|
||
![eptblob](./images/eptbloburl.png) | ||
|
||
Yep, its public. | ||
|
||
![blobpublic](./images/blobconnected.png) | ||
|
||
Download the file and open it to get the flag. | ||
|
||
![flag](./images/flag.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.