From FakeBank to my own localhost - a first encounter with the world of cyber

Cyber journey journal | Chapter 01

I come to the world of cyber from a Full Stack development background. Recently, as part of my job, I have been working on tasks meant to strengthen the security of our application and protect it from intrusions.

The deeper I got into these topics, the more they intrigued me. I wanted to understand not only how a system is defended, but how someone who is trying to find a weakness in it thinks.

But this time I decided to look at systems from a different angle.

Instead of asking how a system is built, I wanted to understand how someone from the outside discovers things about it that I did not mean to show them.

On the way to the place that once seemed far away

We often look at cyber people as those who stand on a distant summit. Their knowledge, their tools and their way of thinking seem like a place that is very hard to reach.

And then I thought of one sentence:

“Even the great ones started with a small step. They did not walk a different path — they simply started walking it before you.”

And suddenly something shifted in my perspective. After all, no one started out as an expert. Even those who are in a high place today once faced terms they did not know and tasks they could not solve. It is not a place reserved for the few, but a height you can climb toward step by step, even through self-study.

I realized that I do not need to be where they are in order to start. I am already on my own path. Maybe one day I will look back at my first exercise on TryHackMe and discover how far I have come.

I am also writing this journal for anyone who looks at the cyber world and says to themselves: “This is too big for me”.
You do not need to know everything to get in. It is fine to come across a term for the first time; it is even a good idea to ask about it. And if the words HTTP, API or Server are completely new — at the end of the chapter there is an appendix, “Starting from absolute zero”. You can jump to it and come back to the story without feeling you have missed anything. 🙂

I started on the Pre Security path of TryHackMe, and in the Offensive Security Intro room I received my first task: to find a hidden page on the website of a fictional bank called FakeBank.

The instruction was to run one command:

ShellRun in the session
dirb http://fakebank.thm

I ran it, and the tool found two paths. One of them was /bank-transfer, a page for bank transfers.

I could have entered the answer, marked it as a success and moved on.

But something made me curious.

How did the tool know to look for that particular address? Does it see the site's code? Can it discover an API that does not appear in the menu? And what would happen if I ran a tool like this against an application I had developed myself?

From there, the small exercise turned into an interesting hour of research.

During that session I discovered how path-scanning tools work, what different HTTP responses mean, and how security mechanisms change the behavior of the server.

Then I ran an experiment on my local development environment, which is based on Windows, XAMPP and Apache.

A surprise was waiting for me there: a normal request returned 403, but changing one header, User-Agent, made the same address return 200.

This did not prove that I had found a security vulnerability. But it was an opportunity to learn something more important:

In a security investigation it is not enough to know which command to run. You need to understand what question it tests, what the result really proved, and what still remains unknown.

Part one — what happened in the investigation, step by step

1. I entered a room, and discovered that a room is not a room

On TryHackMe the word Room describes a unit of learning or practice, and not necessarily a virtual machine. My learning path (Learning Path) is called Pre Security: it is divided into modules, each module contains rooms, and the rooms are divided into tasks (Tasks). On the map I opened I saw seven modules — from an introduction to cyber, through computers, operating systems and software, to networks, Web, and attacks and defenses.

I chose to start with the guided room Offensive Security Intro. Offensive Security means examining systems from the point of view of someone who is trying to find a weakness, in order to discover it and fix it before it is exploited. Here everything takes place in an authorized practice lab, on a fictional website called FakeBank.

I received what seemed to be a clear task: find the address of a page that does not appear in the site's navigation links. I could have run a command, copied an answer and finished. But then came the question that became the engine of the session: how can anyone even find a page that no one has linked to?

2. The first command - DIRB

In the lab's terminal I ran:

ShellRun in the session
dirb http://fakebank.thm

To decode the line you need to know two parts: dirb is the name of the program; http://fakebank.thm is the address of the site the tool checks. The program does not get direct access to the site's project folder and does not “read the React”. It works from the outside, over the network, like any Web client that sends requests to a server.

The result showed two lines that started with the + sign:

TextOutput actually received
+ http://fakebank.thm/bank-transfer (CODE:200|SIZE:4663)
+ http://fakebank.thm/images        (CODE:301|SIZE:179)

DOWNLOADED: 4610 - FOUND: 2

These are the results I actually received. The first returned 200 OK; the second returned 301, a permanent redirect to another address. The DOWNLOADED number tells how many responses the tool downloaded in that scan, not how many “files were found”. The two paths marked as findings are /bank-transfer and /images.

Here I discovered something fundamental: a page that does not appear in the menu is not necessarily a page that cannot be reached. A missing link is not access control.

🔍

What is this action called? The professional name is Directory/File Enumeration, sometimes also Content Discovery or Directory Brute Forcing. We are trying to identify paths and resources that the server responds to. When you go directly to a path that is not shown in the navigation, the action may be called Forced Browsing. Discovering the path itself is not proof of a vulnerability; the question is what can be read or done through it without permission.

3. So how does DIRB know what to guess?

The trick is not magic: the scanning tool holds a Wordlist, a list of words or possible path names. For example:

Text
login
images
reports
admin
bank-transfer

It joins each word to the base address and sends an HTTP request. For example GET /images or GET /admin. Then it examines the response code, the response size and sometimes other characteristics.

And what if we got 200 OK? That is a moment to check — not necessarily to celebrate. Suppose DIRB tried /admin and got 200. Maybe it found a real screen; maybe the server actually returned a login form or a page that says “you do not have permission”; and maybe in an SPA application it returned index.html, as it does for any random path. 200 says that the request succeeded in HTTP terms according to the server's response; it is not proof that the path represents a real resource, that protected content was received or that permission for an action was granted. That is why you also check the response body, the redirects and the permissions. In the next section we will look at the defensive implications of this.

A wordlist does not have to be especially large to be useful. You can use a well-known wordlist or prepare a list that is tailored to your system. Some tools can also go deeper into folders they have found — a recursive scan — and try extensions such as .php or .bak. That does not mean that they automatically learn the application or understand the code behind it.

I also wondered why the tool does not get blocked because of Rate Limiting. The answer: it has no special immunity. It sends ordinary requests; if a rate-limiting mechanism is configured and the scan goes over it, there may be blocks. And a record of the requests may remain on the server, in the Apache Access Log or in other monitoring tools. Logging and control mechanisms are part of the defensive side of the same story.

4. Hidden path, API, dead code — what is the real concern?

Let us take an example from my world as a developer. In React you can define a path /admin/reports without putting a link to it in the menu. If the server serves the application on this path, a user who knows the address may be able to open the screen. The same principle applies to an API: the path /api/reports can be handled by a PHP Router even without a physical folder named api on the disk.

But there are three different situations, and it is important not to confuse them:

Situation Can it be reached over HTTP? What is important to check?
A screen that exists but does not appear in the menu Possibly yes Does a permission check on the server side protect the data and the actions?
An old file or a backup left on the server Possibly yes Does it expose source code, secrets or old functionality?
Old code that exists only in the repo and was not deployed Not through the same server, if it really was not deployed Make sure there is no copy or reachable path in the deployment

There is a difference between getting a response, finding a resource and getting permission. A login page that returns 200 is an example of a valid response that does not grant access to the protected information. Even a “you do not have permission” page may return 200 if the server or the application uses an unsuitable status code. That does not make the page a vulnerability — but it teaches us that the response code alone is not enough. In an SPA application even a made-up path may get 200, because the server returns the index.html file for it. An authorization vulnerability is proven only when the content or the action that is supposed to be protected is accessible to someone who is not authorized.

And this is exactly where the difference between Authentication (verifying identity — who are you?) and Authorization (permission — what are you allowed to do?) comes in. Even a user who has already logged in is not necessarily allowed to export an administrator's reports or to view another user's data.

5. From my lab to my lab: the local site on XAMPP

After FakeBank I wanted to test the same idea on a real application that I am developing. My local site runs on Windows, through XAMPP and Apache, at the address http://localhost/.

Here I got stuck on a much more basic question: how do you run a tool that was made for Linux on Windows?

I looked into using WSL, but discovered that the Microsoft-Windows-Subsystem-Linux component is turned off on my machine. I also tried docker --version, and the system did not recognize the command. Instead of turning the session into an infrastructure project, I decided to switch to a similar tool that comes as an executable file for Windows: Gobuster.

Wait, what is Gobuster and who developed it?

Gobuster is an open-source tool written in the Go language. It is meant to help security testers gather information about resources that are hard to see through normal navigation: files and folders on a site (dir), subdomain names (dns), Virtual Host names (vhost), fuzz tests and more. The goal is not “to hack automatically”, but to discover candidates for testing and to help map the attack surface.

The project is hosted in the OJ/gobuster repository on GitHub. The list of authors of the installed software includes OJ Reeves (@TheColonial) and Christian Mehlmauer (@firefart). You can read the source code, contribute fixes or use the ready-made compiled version for your operating system. We worked with v3.8.2.

Why Go specifically? From the user's point of view, one of the practical advantages is that ready-made binaries can be distributed for different systems; the tool also supports concurrency in order to scan efficiently. That does not make a fast scan a better test: you always need to interpret the results and control the pace.

DIRB, DirBuster and Gobuster are not the same software. They are different tools whose goal of content discovery overlaps. What connected them for me was the idea of scanning, not the identity of the implementation.

My installation, step by step

I opened the official releases page, downloaded the file gobuster_Windows_x86_64.zip, extracted it to C:\tools\Gobuster and located gobuster.exe.

My first attempt to check the version was:

PowerShellRun in the session
& "C:\tools\Gobuster\gobuster.exe" version

The response was No help topic for 'version'. It was a mistake in the command's syntax, not a fault in the software. When I tried:

PowerShellRun in the session
& "C:\tools\Gobuster\gobuster.exe" --help
& "C:\tools\Gobuster\gobuster.exe" dir --help

the tool displayed the list of modes and options. I learned that documenting an error is also part of learning, and that --help is worth quite a few guesses.

I created a file words.txt by hand, with only five names in it:

Text
admin
login
api
images
reports

I chose to limit the experiment to one Thread and a wait of one second between requests, not because XAMPP is known to apply Rate Limiting by default, but in order to work with a small load and in a way that is easy to understand.

PowerShellRun in the session
& "C:\tools\Gobuster\gobuster.exe" dir -u "http://localhost/" -w "C:\tools\Gobuster\words.txt" -t 1 --delay 1000ms

And then Gobuster stopped before it even started

Before the scan, the tool sent a request to a random path to make sure that it can tell when a resource does not exist. To my astonishment, the server returned 302 to /login.php?reason=auth_required instead of 404.

Why does this confuse the tool? Because if even a made-up address gets a redirect to the login, you cannot tell from the status code alone whether another path exists and is protected, or does not exist at all. This is sometimes called a False Positive result — something that looks like a finding even though it is not necessarily a real finding.

This is where a small experiment was born, one that really taught me how to investigate.

6. From 403 to 200: the experiment that changed the direction of my thinking

I started checking what the server returns for a path that we know exists — /login.php — and for a path that is not supposed to exist.

First I sent requests with curl.exe:

PowerShellRun in the session
curl.exe -I http://localhost/this-page-does-not-exist-12345
curl.exe -s -o NUL -D - http://localhost/this-page-does-not-exist-12345
curl.exe -s -o NUL -D - http://localhost/login.php

All of them returned 403 Forbidden. At this point a hypothesis came to me: maybe the application has a mechanism that blocks clients that do not identify themselves as a browser.

To test it I changed only one variable - the User-Agent header - and left the address as it was:

PowerShellRun in the session
curl.exe -s -o NUL -D - -A "Mozilla/5.0" http://localhost/login.php

This time I got 200 OK.

Then I checked the made-up address, with the same User-Agent:

PowerShellRun in the session
curl.exe -s -o NUL -D - -A "Mozilla/5.0" http://localhost/this-page-does-not-exist-12345

It returned 302 to the login screen.

Request User-Agent What I received
GET to /login.php curl's default 403
GET to a random path curl's default 403
GET to /login.php Mozilla/5.0 200
GET to a random path Mozilla/5.0 302 to a login screen

What was proven? That changing the User-Agent was linked to a change in the server's response in the requests I checked. What was not proven? I have not yet identified whether Apache, PHP code or another security layer is responsible for the behavior. There is also no proof that User-Agent is the only thing the system checks.

Just as important: User-Agent is not proof of identity. Any client can send a different value; that is why it cannot replace a real check of identity and permissions.

And what about the long lines in the response?

In the output I also saw Set-Cookie: PHPSESSID=... and Content-Security-Policy. The first says that the server sent a Session ID, not that the user necessarily logged in. The second is a policy that limits what the browser is allowed to load; it does not replace a permission check on the server.

For this blog we will not copy real Session IDs or sensitive information from logs.

7. What remains open — and why it is important to write it down

At the end of the session, after I had run curl checks and seen how User-Agent affects the result, I received a suggestion for another experiment with Gobuster: to set a User-Agent header and to filter out 302 and 404 responses. This is not a result of the experiment that was already carried out. When I tried to paste the multi-line command into PowerShell, the lines came out in reverse order and >> continuation marks appeared. It was suggested that I press Ctrl+C and run everything on one line, but I did not document the output of a successful scan after that.

This is the command that was suggested as the next step (and it has no verified output in the journal yet):

PowerShellProposed next step · not run, no verified output
& "C:\tools\Gobuster\gobuster.exe" dir -u "http://localhost/" -w "C:\tools\Gobuster\words.txt" -a "Mozilla/5.0" -b "302,404" -t 1 --delay 1000ms

-a "Mozilla/5.0" asks to send a User-Agent header with this value, exactly as I tested with curl. -b "302,404" is a results filter: results whose response code is 302 or 404 will not be shown. It does not bypass permissions, does not change paths on the server and does not delete content from them. -t 1 and --delay 1000ms keep the experiment at a low rate.

Why did we suggest filtering 302? In the first scan even a random address that is not supposed to exist returned 302 to the login screen, and Gobuster stopped at the feasibility check. The filter may make it possible to focus on other responses, but it is a significant compromise: if /admin/reports is a real path that also returns 302 because authentication is required, it will be hidden exactly like the random address. That is why the absence of a path from the scan output is not proof that the path does not exist. This is a conclusion drawn from the behavior of the filter that was set, not a result we have already seen in the full experiment.

In the next session I want to go back to the room and check in an orderly way what the page I found shows, look deeper into the Gobuster results and also examine the Apache logs — and only then decide what further conclusions can be drawn.

Part two — the professional summary

How does a request travel from the browser to the application?

  1. Browser or scanning tool — leads to: HTTP request to an address
  2. HTTP request to an address — leads to: Apache / Web server
  3. Apache / Web server — leads to: Which path was requested?
  4. Which path was requested? — leads to: File or document; PHP Router or API; React application
  5. File or document — leads to: HTTP response
  6. PHP Router or API — leads to: HTTP response
  7. React application — leads to: HTTP response
  8. HTTP response
Source code of the diagram (Mermaid)
Mermaid
flowchart TD
 A[Browser or scanning tool] --> B[HTTP request to an address]
 B --> C[Apache / Web server]
 C --> D{Which path was requested?}
 D --> E[File or document]
 D --> F[PHP Router or API]
 D --> G[React application]
 E --> H[HTTP response]
 F --> H
 G --> H

The server may return a page, JSON, a redirect, an error or even the same index.html for every path. That is why one response code is not enough to prove whether the resource exists and how well it is protected.

Breakdown of the commands and options I ran or planned

Command or option Its role
dirb http://fakebank.thm Starting a path search in the FakeBank lab
gobuster dir File and path discovery mode
-u The target address
-w The path of the wordlist file
-t 1 One Thread for making the requests
--delay 1000ms A pause of one second between requests for each Thread
-a "Mozilla/5.0" Proposed, not run Setting the User-Agent header
-b "302,404" Proposed, not run Hiding responses with these codes — including real results that return them
curl.exe -I A HEAD request; getting headers without a response body
curl.exe -s -o NUL -D - A GET request that shows only the headers in the terminal

HTTP codes — the ones I met and the ones worth knowing

To read the responses of servers and path scanners, it is worth knowing the five families: 1xx (interim information), 2xx (success), 3xx (redirects or further handling), 4xx (a problem with the request from the server's point of view) and 5xx (a failure on the server side). Not all the codes in the table were ones I actually received — some of them are here to broaden knowledge. Even a familiar number does not replace checking the response body, the headers and the actual behavior.

Code Common name Common meaning and example
100 Continue Interim information: the client can go on sending the request body
101 Switching Protocols The server agrees to switch protocols
200 OK The HTTP request succeeded; the content we hoped to get was not necessarily received
201 Created A resource was created, for example as a result of a POST action
202 Accepted The request was accepted for processing, which may finish later
204 No Content The action succeeded, but there is no body in the response
206 Partial Content Part of the requested content was returned
301 Moved Permanently A permanent redirect to another address
302 Found A temporary redirect; in our case even a made-up path was redirected to the login
304 Not Modified According to the Cache conditions, the copy stored on the client can be used
307 Temporary Redirect A temporary redirect without changing the request method
308 Permanent Redirect A permanent redirect without changing the request method
400 Bad Request The server cannot or will not process a request that seems to be wrong
401 Unauthorized Valid identification details are missing; despite the name, it relates mainly to verifying identity
402 Payment Required A code reserved for future use in the standard; some payment services use it according to conventions of their own
403 Forbidden The server understood the request but refuses to carry it out; not necessarily because of permissions
404 Not Found No available resource was found, or the server does not want to reveal that it exists
405 Method Not Allowed The method (such as POST) is not allowed for this resource
408 Request Timeout The server stopped waiting for the request to be completed
409 Conflict A conflict with the state of the resource, for example a concurrent change
410 Gone The resource is no longer available, probably permanently
413 Content Too Large The request body is too large
415 Unsupported Media Type The format of the content that was sent is not supported
422 Unprocessable Content The body is valid in terms of type/structure, but its instructions cannot be processed
429 Too Many Requests Too many requests were sent; may indicate Rate Limiting
451 Unavailable For Legal Reasons The resource is not available for a legal reason
500 Internal Server Error An unexpected condition prevented the server from completing the request
501 Not Implemented The server does not support the required functionality
502 Bad Gateway A Proxy or Gateway server received an invalid response from another server
503 Service Unavailable The service is not available at the moment, for example because of load or maintenance
504 Gateway Timeout A Gateway or Proxy did not receive a response in time from the server behind it

A useful pointer for an investigation: with a 302 code it is worth checking Location; with a 200 code it is worth checking what is really in the response body; 401 and 403 are not the same; and the codes 500, 502 and 504 may hint at different points of failure in the chain. The list relies on the RFC 9110 standard and on the IANA registry.

How do you go from here to the real world?

If this is a system you are developing, or one you have received explicit permission to test, you can turn the experiment into a professional defense routine. Instead of rushing into an aggressive scan in production, you start with a safe and measurable step:

  1. Define a written Scope: which environment, which domains and paths, who approved, when, and how many requests may be sent. Start with localhost or with an isolated test environment.

  2. Map the known paths on purpose: Routes in React, the Router in PHP, API endpoints, static folders and Apache's Rewrite mechanisms. This way you can compare what we planned to deploy with what the server really serves.

  3. Look for deployment “leftovers”: backups, installation files, test directories, old admin pages, configuration files or paths that remained active. Not every old file is dangerous, but a file that can be reached from the Web may expose more than we thought.

  4. Run tests at a low load: with a small wordlist, a limited rate, monitoring and saving the output. Make sure the test does not change data and does not harm the service.

  5. Check permissions in different roles: anonymous, regular user, another user in the same role, administrator — including checking that the action itself is protected on the server, and not only the page.

  6. Check the logs: can repeated requests, unusual paths, blocks or unexpected redirects be identified? Update the monitoring policy without exposing secrets in the logs.

  7. Fix at the root: unnecessary files — remove them from the deployment; sensitive resources — keep them outside public folders; protected actions — enforce permissions on the server side; test again after the fix.

What not to do: do not assume that robots.txt protects a resource; do not use hiding a button as a substitute for permission; do not leave a .zip file with a database backup in a public folder; and do not interpret 200 as confirmation that there is a vulnerability.

A conceptual example from the development world

Text
GET /admin/export
  -> Session check
  -> permission check "export_reports"
  -> only if both checks pass: run the action

This is the point I take from the exercise to my work: even if a path does not appear in the menu, and even if a client managed to guess it, the server has to decide independently whether the action is allowed.

Review questions — with answers

8 questions. Select a question to open its answer.

Question 1: What is the difference between searching for paths and breaking into a system?

Answer: Path scanning is a stage of discovery and mapping. It exposes candidates for testing. To determine that there is a vulnerability you need to show that content or an action that is supposed to be protected can be reached without the appropriate permission, within an authorized test.

Question 2: I found /admin with code 200. Did I find a vulnerability?

Answer: Not necessarily. It could be a public page, a login page, or an SPA that returns 200 for every path. You need to check the content of the response and the permissions.

Question 3: Why did Gobuster stop when the random path returned 302?

Answer: Because a scan that shows everything that is not 404 would also report paths that do not actually exist. The tool stopped in order to avoid misleading results.

Question 4: What did changing the User-Agent from curl to Mozilla/5.0 prove?

Answer: That the response in our particular requests changed together with the header. It did not prove which component is responsible, or that we managed to bypass a permission mechanism.

Question 5: Does an API path have to be a physical folder?

Answer: No. It may be defined in a Router that directs the request to server code, without a folder by that name on the disk.

Question 6: What is the difference between verifying identity and permission?

Answer: Authentication answers “Who is the user?”. Authorization answers “What is this user allowed to do?”. Even a logged-in user can lack permission for a particular action.

Question 7: Why not scan production right away with a huge wordlist?

Answer: Because the scan can create load, bloat logs, trigger alerts or harm the service. You start with a scope that is authorized, measurable and controlled.

Question 8: Is dead code in the repo a vulnerability?

Answer: Not by itself. You need to check whether the code or a copy of it was deployed and can be reached, and whether it contains secrets or capabilities that are not protected.

Appendix for anyone meeting the world of the Web for the first time

There is no shame at all in arriving here without knowing what HTTP is. Even someone who knows how to program does not necessarily know every layer of the system. Here is the explanation that lets you continue the story without opening ten other tabs. 🙂

What happens when you type an address into the browser?

Imagine a restaurant: the customer orders a dish, the waiter passes on the order, the kitchen prepares it and sends back a response. In the world of the Web, the browser is the customer (Client), the site is hosted on a Server, and the request travels over HTTP.

The address http://localhost/login.php has parts: http is the protocol, localhost refers to the local computer on which our request is made, and /login.php is the requested path. URL is a general name for the address of a resource on the network.

GET is a request to receive a resource; HEAD asks for the response headers without a body; POST is usually used to send information for an action. The server returns a Status Code such as 200, 302 or 403 to indicate how the request was handled.

An API is an interface that lets programs communicate with each other. A site can load a screen in React and then call an API that returns JSON. That is why a page on a site and an API path are different things, even though both can be reached through an HTTP address.

Wait, what is Apache — and what else do we call a “server”?

In the development world the word server is used in two senses: a computer (physical or virtual) that runs services; and also software that listens for requests and handles them. One computer can host several different server programs.

Apache HTTP Server, also known as Apache or httpd, is Web Server software. It receives HTTP requests and returns responses. It can serve static files (HTML, images, JavaScript), perform redirects, apply Rewrite rules, pass requests on to a PHP application or to another server, and record access in logs. In the XAMPP environment I used, Apache receives the requests that arrive at http://localhost/; the PHP code may continue the handling, check permissions and return a response.

An example of the route the same request can take:

  1. Browser / curl / Gobuster — leads to: GET /api/reports
  2. GET /api/reports — leads to: Apache (XAMPP)
  3. Apache (XAMPP) — leads to: Rewrite / PHP Router / Middleware
  4. Rewrite / PHP Router / Middleware — leads to: Identity and permission check
  5. Identity and permission check — leads to: Application code and database
  6. Application code and database — leads to: HTTP Response -> back to the client
  7. HTTP Response -> back to the client
The diagram as text
Text
Browser / curl / Gobuster
     |
GET /api/reports
     |
Apache (XAMPP)
     |
Rewrite / PHP Router / Middleware
     |
Identity and permission check
     |
Application code and database
     |
HTTP Response -> back to the client

What is the difference between common Web servers?

Software What it does Where will we meet it?
Apache HTTP Server A modular HTTP server with routing options, Rewrite and extensions Common in PHP and XAMPP environments
Nginx An HTTP server, Reverse Proxy, cache and load balancer Common at the front of Web systems
Microsoft IIS A Web server from Microsoft, with deep integration into Windows and ASP.NET Windows Server environments
Caddy A Web server and Reverse Proxy with convenient HTTPS setup Modern deployments and small services

The difference is not necessarily that “one knows PHP and the other does not”: several of these servers can pass requests to the same Backend application. The choice between them has to do with infrastructure, architecture, operations and the team's preferences. An application server (for example a Node.js application or a PHP process that handles business logic) and a database server (for example SQL Server) play other roles, even though they sometimes run on the same computer.

And in the context of the experiment: the presence of the header Server: Apache does not prove that Apache itself produced the 403 response. It may be its configuration, and it may be that application code or a component in between is responsible. To know, you check logs and configuration. Apache documentation on URL mapping, Nginx documentation, IIS documentation.

What does an unlinked address mean?

Suppose you visit a site that has the buttons “Home”, “Contact” and “Products”. The server may also have /old-report, but there is no button for it. This is an unlinked path. The absence of a link does not stop anyone from typing the address directly. The protection has to be in the system's access controls.

What is a Terminal and why is it used?

A Terminal is a window that lets you run programs by means of text. Instead of opening buttons and menus, you write commands. On Windows you can use PowerShell; on Linux shells such as Bash are common. The tools dirb and gobuster take command-line commands.

What is a Wordlist and how does it help?

It is a list of possible guesses. Instead of a security tester typing a hundred addresses by hand, the tool joins each word to the base address and sends a request. That is why a good wordlist needs to be relevant — not necessarily the largest.

Why can you scan localhost too?

localhost is a name that points to the local computer of whoever makes the request. When Gobuster and XAMPP run on the same Windows, the tool can send requests to the local server exactly as a browser does. But inside Docker or a virtual machine, localhost can refer to a different environment.

Glossary of chapter 01

Term Short explanation Why remember it
TryHackMe A platform for learning cyber through rooms and labs Allows authorized practice
Learning Path A path that brings learning topics together in order The personal progress map
Room A unit of learning/practice on the site Not necessarily a virtual machine
Offensive Security Testing systems from the point of view of an authorized attacker Finding vulnerabilities before they are exploited
Enumeration Systematic discovery and mapping of resources and paths The information-gathering stage
Content Discovery Searching for content and resources that do not stand out in the navigation May expose forgotten resources
Directory Brute Forcing Systematically trying names of paths and files The method we used
Wordlist A file of possible names to test The raw material of the scan
DIRB A Web content scanning tool The tool I ran on FakeBank
Gobuster A Go tool for discovering paths, DNS, VHosts and more The tool I ran on Windows
HTTP A communication protocol between client and server The language of requests and responses
URL / Path The address of a resource and the path within it What the tool tries to discover
Status Code A number that describes the result of an HTTP request The basis for reading the output
Redirect A response that points to another address The reason for 301 and 302
User-Agent A header in which the client presents its software The change that made a difference in the experiment
Authentication Checking the user's identity Who are you?
Authorization Checking whether the action is allowed for the user What are you allowed to do?
Broken Access Control A failure in enforcing access restrictions The real risk behind an unprotected path
Rate Limiting Limiting the number of requests in a period of time Control over load and unusual behavior
False Positive A result that looks like a finding but is not a real finding A challenge in automated scanning
Session A server-client context that is kept across requests A Session ID does not necessarily mean a login
CSP A policy that restricts the loading of resources in the browser A security layer, not permissions
Attack Surface All the possible points of exposure in a system Reducing unnecessary paths
Apache HTTP Server A Web server that takes in HTTP requests and handles files, routing and Rewrite The local server in XAMPP
Web Server Software that receives HTTP requests and returns responses Not necessarily the same as the application server
Reverse Proxy A component that receives requests and passes them on to other servers Mediation, routing and load balancing
SPA An application in which navigation between screens is managed mainly on the client side Can return 200 for an address that does not represent an existing screen
HTTP 402 A code reserved for future use; payment services may define their own meaning for it Do not assume the code proves a payment failure

Where to next?

I am still at the beginning of the road, but a habit has already formed that I want to keep: Before a command — a question. After a response — an explanation. And before a conclusion — another check.

In the next session I will go back to Pre Security and continue the room, check what remains open in the Gobuster experiment, and try to see the server's side as well, through the logs. The big dream is still far away; the next step is already right in front of me.

Sources for further reading and checking

Chapter 01

From FakeBank to my own localhost - a first encounter with the world of cyber

Glossary term

Why remember it

Where it appears in the journal

    Open in the glossary

    Saved in this browser only

    My pinned terms

    No pinned terms yet. You can pin a term from its explanation, or from the glossary page.

      Pinned terms on the glossary page

      Search and commands