Skip to content

Commit

Permalink
adding port information
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenVanAcker committed May 15, 2017
1 parent 5445b9a commit 63b0887
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 24 deletions.
14 changes: 14 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,17 @@ dl dt {
bottom: 0px;
z-index: 10;
}

#sshinfo {
color: white;
background-color: black;
font-size: 9pt;
margin-left: 5px;
padding: 4px;
border: 1px solid #00ff00;
}

#sshinfo sh {
color: #00ff00;
font-size: 12pt;
}
21 changes: 11 additions & 10 deletions games.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"vortex": {
"host": "vortex.labs.overthewire.org", "port": 2228,
"lastlevel": 26,
"specialNumbering": true
},
"semtex": { "lastlevel": 12 },
"krypton": { "lastlevel": 6 },
"bandit": { "lastlevel": 27 },
"leviathan": { "lastlevel": 7 },
"narnia": { "lastlevel": 9 },
"behemoth": { "lastlevel": 8 },
"utumno": { "lastlevel": 8 },
"maze": { "lastlevel": 9 },
"manpage": { "lastlevel": 7 },
"semtex": { "lastlevel": 12, "host": "semtex.labs.overthewire.org", "port": 2229 },
"krypton": { "lastlevel": 6, "host": "krypton.labs.overthewire.org", "port": 2222 },
"bandit": { "lastlevel": 27, "host": "bandit.labs.overthewire.org", "port": 2220 },
"leviathan": { "lastlevel": 7, "host": "leviathan.labs.overthewire.org", "port": 2223 },
"narnia": { "lastlevel": 9, "host": "narnia.labs.overthewire.org", "port": 2226 },
"behemoth": { "lastlevel": 8, "host": "behemoth.labs.overthewire.org", "port": 2221 },
"utumno": { "lastlevel": 8, "host": "utumno.labs.overthewire.org", "port": 2227 },
"maze": { "lastlevel": 9, "host": "maze.labs.overthewire.org", "port": 2225 },
"manpage": { "lastlevel": 7, "host": "manpage.labs.overthewire.org", "port": 2224 },
"natas": { "lastlevel": 33 },
"blacksun": { "lastlevel": 4 },
"drifter": { "lastlevel": 15 }
"drifter": { "lastlevel": 15, "host": "drifter.labs.overthewire.org", "port": 2230 }
}
14 changes: 13 additions & 1 deletion js/otwcrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ function renderLevelsMenu(name) {
var oReq = new XMLHttpRequest();
oReq.onload = function() {
var newDiv = document.getElementById("sidemenu");
var newHTML = "<ul><li><a href=\"/wargames/"+name+"\"><sh>"+capitaliseFirstLetter(name)+"</sh></a></li>";
var data = JSON.parse(this.responseText);

var newHTML = "";
if("host" in data[name] && "port" in data[name]) {
newHTML += "<div id='sshinfo'><sh>SSH Information</sh><br>Host: "+data[name].host+"<br>Port: "+data[name].port+"</div>";
}
newHTML += "<ul><li><a href=\"/wargames/"+name+"\"><sh>"+capitaliseFirstLetter(name)+"</sh></a></li>";

for(var i = 0; i <= data[name].lastlevel; i++) {
var url = "";
Expand Down Expand Up @@ -85,3 +90,10 @@ function renderLevelTitle(name, level) {
oReq.send();
}

function checkAdBlock() {
if(typeof fuckAdBlock === 'undefined') {
alert("congrats on running adblock");
} else {
alert("not running adblock");
}
}
2 changes: 1 addition & 1 deletion wargames/bandit/bandit0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Level Goal
----------
The goal of this level is for you to log into the game using SSH.
The host to which you need to connect is
**bandit.labs.overthewire.org**.
**bandit.labs.overthewire.org**, on port 2220.
The username is **bandit0** and the password is **bandit0**. Once
logged in, go to the [Level 1][] page to find out how to beat Level
1.
Expand Down
2 changes: 1 addition & 1 deletion wargames/bandit/bandit1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Level Goal
The password for the next level is stored in a file called
**readme** located in the home directory. Use this password to log
into bandit1 using SSH. Whenever you find a password for a level,
use SSH to log into that level and continue the game.
use SSH (on port 2220) to log into that level and continue the game.

Commands you may need to solve this level
-----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion wargames/behemoth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ intruded.net:
including buffer overflows, race conditions and privilege escalation.

Behemoth's levels are called **behemoth0, behemoth1, ... etc.** and can
be accessed on **behemoth.labs.overthewire.org** through SSH.
be accessed on **behemoth.labs.overthewire.org** through SSH on port 2221.

To login to the first level use:

Expand Down
4 changes: 2 additions & 2 deletions wargames/drifter/drifter0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: default
gamename: drifter
level: 0
---
Drifter can be accessed on drifter.labs.overthewire.org. Level 0 listens
Drifter can be accessed on drifter.labs.overthewire.org via SSH on port 2230. Level 0 listens
on port 1111.

Level0 is an extremely trivial, encrypted, remote syscall proxy. Your
Expand Down Expand Up @@ -59,7 +59,7 @@ If this level is too complicated / involved, please leave a comment.
While it's complicated than adding several little endian integers
together, I don't want the initial level to be overkill.

The sourcecode is located in /drifter/drifter0_src/. You can login using bandit0/bandit0
The sourcecode is located in /drifter/drifter0_src/.

[mmap2()]: http://www.linuxinfor.com/english/man2/mmap2.html
[read()]: http://www.linuxinfor.com/english/man2/read.html
Expand Down
6 changes: 6 additions & 0 deletions wargames/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ Suggested order to play the games in
6. Maze
7. ...

Each shell game has its own SSH port
------------------------------------

Information about how to connect to each game using SSH, is provided in the top left corner of the page.
Keep in mind that every game uses a different SSH port.

[contactus]: /about/contact.html
2 changes: 1 addition & 1 deletion wargames/krypton/krypton0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ encodes the password using Base64:
S1JZUFRPTklTR1JFQVQ=

Use this password to log in to krypton.labs.overthewire.org with
username krypton1 using SSH. You can find the files for other levels in
username krypton1 using SSH on port 2222. You can find the files for other levels in
/krypton/

2 changes: 1 addition & 1 deletion wargames/leviathan/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ intruded.net:
the players. Hopefully we made an interesting challenge for the new ones.

Leviathan's levels are called **leviathan0, leviathan1, ... etc.** and
can be accessed on **leviathan.labs.overthewire.org** through SSH.
can be accessed on **leviathan.labs.overthewire.org** through SSH on port 2223.

To login to the first level use:

Expand Down
2 changes: 1 addition & 1 deletion wargames/manpage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ intruded.net:
unusual behavior. Many of these levels were inspired by the famous work of Ilja.

Manpage's levels are called **manpage0, manpage1, ... etc.** and can be
accessed on **manpage.labs.overthewire.org** through SSH.
accessed on **manpage.labs.overthewire.org** through SSH on port 2224.

To login to the first level use:

Expand Down
2 changes: 1 addition & 1 deletion wargames/maze/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ intruded.net:
to use gdb.

Maze's levels are called **maze0, maze1, ... etc.** and can be accessed
on **maze.labs.overthewire.org** through SSH.
on **maze.labs.overthewire.org** through SSH on port 2225.

To login to the first level use:

Expand Down
2 changes: 1 addition & 1 deletion wargames/narnia/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ intruded.net:
levels could be quite tricky.

Narnia's levels are called **narnia0, narnia1, ... etc.** and can be
accessed on **narnia.labs.overthewire.org** through SSH.
accessed on **narnia.labs.overthewire.org** through SSH on port 2226.

To login to the first level use:

Expand Down
4 changes: 2 additions & 2 deletions wargames/semtex/semtex0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Receive data until the port is closed.
Every second byte you receive is trash, ignore it.
The other bytes are an executable that shows you the password.

Then login to [[email protected]][]
Then login to [[email protected]][] on port 2229

**Thanks to mrx for the amd64 and ppc binaries!**

Reading Material
----------------
- [Beej's guide to network programming][]

[[email protected]]: ssh://[email protected]
[[email protected]]: ssh://[email protected]:2229
[Beej's guide to network programming]: http://beej.us/guide/bgnet/
2 changes: 1 addition & 1 deletion wargames/utumno/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ intruded.net:
first.

Utumno's levels are called **utumno0, utumno1, ... etc.** and can be
accessed on **utumno.labs.overthewire.org** through SSH.
accessed on **utumno.labs.overthewire.org** through SSH on port 2227.

To login to the first level use:

Expand Down

0 comments on commit 63b0887

Please sign in to comment.