Skip to content

Commit

Permalink
fourth level
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliban2056 committed Aug 7, 2024
1 parent 8902ac6 commit 7693484
Show file tree
Hide file tree
Showing 42 changed files with 409 additions and 290 deletions.
2 changes: 2 additions & 0 deletions content/posts/overthewire-bandit-0-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags = ["cyber security", "bandit", "over the wire"]

Find the file `readme` stored in the filesystem.

# Login

SSH: `bandit0@bandit.labs.overthewire.org -p 2220`

Password: `bandit0`
Expand Down
2 changes: 2 additions & 0 deletions content/posts/overthewire-bandit-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Great, now that you know what this article is about and why I am doing this, let

Log into the level with SSH.

## Login

Server: `bandit.labs.overthewire.org`

Port: `2220`
Expand Down
2 changes: 2 additions & 0 deletions content/posts/overthewire-bandit-1-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags = ["cyber security", "bandit", "over the wire"]

Read the content of the file called "-"

# Login

SSH: `bandit1@bandit.labs.overthewire.org -p 2220`

Password: `ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If`
Expand Down
4 changes: 3 additions & 1 deletion content/posts/overthewire-bandit-2-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ tags = ["cyber security", "bandit", "over the wire"]

Read the content of the file called "spaces in this filename".

SSH: `ssh bandit2@bandit.labs.overthewire.org -p 2220`
# Login

SSH: `bandit2@bandit.labs.overthewire.org -p 2220`

Password: `263JGJPfgU6LtdEvgfWU1XP5yac29mFx`

Expand Down
6 changes: 3 additions & 3 deletions content/posts/overthewire-bandit-3-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ tags = ["cyber security", "bandit", "over the wire"]

Find and read the content of the hidden file in the `inhere` directory.

SSH: `ssh bandit3@bandit.labs.overthewire.org -p 2220`
# Login

SSH: `bandit3@bandit.labs.overthewire.org -p 2220`

Password: `MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx`

Expand All @@ -36,6 +38,4 @@ bandit3@bandit~$: cat ...Hiding-From-You
2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ
```

Password: 2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ

3. Use this password to log to the next level.
42 changes: 42 additions & 0 deletions content/posts/overthewire-bandit-4-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,45 @@ date = 2024-08-07T11:50:31+02:00
draft = false
tags = ["cyber security", "bandit", "over the wire"]
+++

# Task

Find the only human-readable file inside the `inhere` directory.

# Login

SSH: `bandit4@bandit.labs.overthewire.org -p 2220`

Password: `2WmrDFRmJIq3IPxneAaMGhap0pFhF3NJ`

# Theory

To find what file is human-readable we can check the type of data inside the file. To do that we can use the `file` command, some examples would be: `ASCII text`, `directory`, `POSIX tar archive`. Trying to read a non human-readable file would show something like this in the output `l�����]�a߯-@gQ�÷�wz�P�ߠy�`.

# Solution

1. SSH in to the remote host again and go to the inhere directory.

2. Use the file command to find what file is human-readable and read his content.

```
~$: ssh bandit4@bandit.labs.overthewire.org -p 2220
bandit4@bandit~$: cd inhere
bandit4@bandit~$: file ./*
./-file00: data
./-file01: data
./-file02: data
./-file03: data
./-file04: data
./-file05: data
./-file06: data
./-file07: ASCII text
./-file08: data
./-file09: data
bandit4@bandit~$: cat ./-file07
4oQYVPkxZOOEOO5pTW81FB8j8lxXGUQw
```

This is the password for the text level.
4 changes: 2 additions & 2 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html><html lang=en dir=auto><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>404 Page not found | Kaliban's Blog</title>
<meta name=keywords content><meta name=description content="Cyber Security | Development | Self Hosting"><meta name=author content="Kaliban"><link rel=canonical href=https://kaliban2056.github.io/404.html><meta name=google-site-verification content="XYZabc"><meta name=yandex-verification content="XYZabc"><meta name=msvalidate.01 content="XYZabc"><link crossorigin=anonymous href=/assets/css/stylesheet.54405a410796490bc874ab6181fac9b675753cc2b91375d8f882566459eca428.css integrity="sha256-VEBaQQeWSQvIdKthgfrJtnV1PMK5E3XY+IJWZFnspCg=" rel="preload stylesheet" as=style><link rel=icon href=https://kaliban2056.github.io/images/favicon.svg><link rel=icon type=image/png sizes=16x16 href=https://kaliban2056.github.io/images/favicon-16x16.svg><link rel=icon type=image/png sizes=32x32 href=https://kaliban2056.github.io/images/favicon-32x32.svg><link rel=apple-touch-icon href=https://kaliban2056.github.io/apple-touch-icon.png><link rel=mask-icon href=https://kaliban2056.github.io/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><link rel=alternate hreflang=en href=https://kaliban2056.github.io/404.html><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript><meta property="og:title" content="404 Page not found"><meta property="og:description" content="Cyber Security | Development | Self Hosting"><meta property="og:type" content="website"><meta property="og:url" content="https://kaliban2056.github.io/404.html"><meta property="og:image" content="https://kaliban2056.github.io/link%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E"><meta property="og:site_name" content="Kaliban's Blog"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="https://kaliban2056.github.io/link%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E"><meta name=twitter:title content="404 Page not found"><meta name=twitter:description content="Cyber Security | Development | Self Hosting"></head><body class=list id=top><script>localStorage.getItem("pref-theme")==="dark"?document.body.classList.add("dark"):localStorage.getItem("pref-theme")==="light"?document.body.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add("dark")</script><header class=header><nav class=nav><div class=logo><a href=https://kaliban2056.github.io/ accesskey=h title="Kaliban's Blog (Alt + H)"><img src=https://kaliban2056.github.io/apple-touch-icon.png alt aria-label=logo height=35>Kaliban's Blog</a><div class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)"><svg id="moon" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></div></div><ul id=menu><li><a href=https://kaliban2056.github.io/categories/ title=categories><span>categories</span></a></li><li><a href=https://kaliban2056.github.io/tags/ title=tags><span>tags</span></a></li><li><a href=https://kaliban2056.github.io/projects/ title=projects><span>projects</span></a></li><li><a href=https://kaliban2056.github.io/about/ title=about><span>about</span></a></li></ul></nav></header><main class=main><div class=not-found>404</div></main><footer class=footer><span>&copy; 2024 <a href=https://kaliban2056.github.io/>Kaliban's Blog</a></span> ·
<!doctype html><html lang=en dir=auto><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=robots content="index, follow"><title>404 Page not found | Kaliban's Blog</title>
<meta name=keywords content><meta name=description content="Cyber Security | Development | Self Hosting"><meta name=author content="Kaliban"><link rel=canonical href=http://localhost:1313/404.html><meta name=google-site-verification content="XYZabc"><meta name=yandex-verification content="XYZabc"><meta name=msvalidate.01 content="XYZabc"><link crossorigin=anonymous href=/assets/css/stylesheet.54405a410796490bc874ab6181fac9b675753cc2b91375d8f882566459eca428.css integrity="sha256-VEBaQQeWSQvIdKthgfrJtnV1PMK5E3XY+IJWZFnspCg=" rel="preload stylesheet" as=style><link rel=icon href=http://localhost:1313/images/favicon.svg><link rel=icon type=image/png sizes=16x16 href=http://localhost:1313/images/favicon-16x16.svg><link rel=icon type=image/png sizes=32x32 href=http://localhost:1313/images/favicon-32x32.svg><link rel=apple-touch-icon href=http://localhost:1313/apple-touch-icon.png><link rel=mask-icon href=http://localhost:1313/safari-pinned-tab.svg><meta name=theme-color content="#2e2e33"><meta name=msapplication-TileColor content="#2e2e33"><link rel=alternate hreflang=en href=http://localhost:1313/404.html><noscript><style>#theme-toggle,.top-link{display:none}</style><style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--code-block-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style></noscript><meta property="og:title" content="404 Page not found"><meta property="og:description" content="Cyber Security | Development | Self Hosting"><meta property="og:type" content="website"><meta property="og:url" content="http://localhost:1313/404.html"><meta property="og:image" content="http://localhost:1313/link%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E"><meta property="og:site_name" content="Kaliban's Blog"><meta name=twitter:card content="summary_large_image"><meta name=twitter:image content="http://localhost:1313/link%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E"><meta name=twitter:title content="404 Page not found"><meta name=twitter:description content="Cyber Security | Development | Self Hosting"></head><body class=list id=top><script>localStorage.getItem("pref-theme")==="dark"?document.body.classList.add("dark"):localStorage.getItem("pref-theme")==="light"?document.body.classList.remove("dark"):window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add("dark")</script><header class=header><nav class=nav><div class=logo><a href=http://localhost:1313/ accesskey=h title="Kaliban's Blog (Alt + H)"><img src=http://localhost:1313/apple-touch-icon.png alt aria-label=logo height=35>Kaliban's Blog</a><div class=logo-switches><button id=theme-toggle accesskey=t title="(Alt + T)"><svg id="moon" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" width="24" height="18" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button></div></div><ul id=menu><li><a href=http://localhost:1313/categories/ title=categories><span>categories</span></a></li><li><a href=http://localhost:1313/tags/ title=tags><span>tags</span></a></li><li><a href=http://localhost:1313/projects/ title=projects><span>projects</span></a></li><li><a href=http://localhost:1313/about/ title=about><span>about</span></a></li></ul></nav></header><main class=main><div class=not-found>404</div></main><footer class=footer><span>&copy; 2024 <a href=http://localhost:1313/>Kaliban's Blog</a></span> ·
<span>Powered by
<a href=https://gohugo.io/ rel="noopener noreferrer" target=_blank>Hugo</a> &
<a href=https://github.com/adityatelange/hugo-PaperMod/ rel=noopener target=_blank>PaperMod</a></span></footer><a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg viewBox="0 0 12 6" fill="currentcolor"><path d="M12 6H0l6-6z"/></svg>
Expand Down
4 changes: 2 additions & 2 deletions public/about/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 7693484

Please sign in to comment.