Back to Writeups

Billy Madison 1.1: When 90s Movies Meet Cybersecurity

A nostalgic journey through a VulnHub machine themed after the classic Adam Sandler comedy, featuring port knocking, packet analysis, and the quest to recover Billy's 12th-grade final project.

VulnHub MachineBeginner-Intermediate
February 3, 2022
25 min read
90s Movie Theme

Attack Chain Overview

Phase 1

Network Discovery

Discover target IP using netdiscover in Host-only network

Phase 2

Port Scanning

Comprehensive nmap scan reveals telnet with ROT13-encoded clues

Phase 3

ROT13 Decoding

Decode telnet banner to discover exschmenuating directory

Phase 4

Directory Enumeration

Use dirbuster with Veronica-filtered wordlist to find capture files

Phase 5

Packet Analysis

Analyze .cap file in Wireshark, discover FTP credentials and YouTube clues

Phase 6

Port Knocking

Extract Spanish Armada port sequence from YouTube video for FTP access

Phase 7

FTP Exploration

Access anonymous and Eric's FTP, discover SSH backdoor trigger

Phase 8

Email Trigger

Send SMTP email with specific phrase to activate SSH backdoor

Phase 9

SSH Access

Connect via backdoor port, crack WiFi password from Billy's revenge

Phase 10

Privilege Escalation

Exploit SUID binary and cron job manipulation for root access

Overview - Back to School, Digitally

Welcome to Billy Madison 1.1, a VulnHub machine that perfectly captures the chaotic energy of the 1995 Adam Sandler comedy. Our mission? Help Billy recover his 12th-grade final project that's been hidden away by some seriously questionable security practices. This VM is a delightful throwback that combines 90s nostalgia with modern penetration testing techniques.

What makes this challenge special is its creative use of movie references, YouTube video clues, and multi-stage port knocking. It's like watching a comedy while solving a digital puzzle - sometimes frustrating, occasionally ridiculous, but ultimately satisfying when everything clicks into place.

🎬 The Billy Madison Experience

This isn't your typical CTF - it's a narrative-driven adventure where every clue ties back to the movie's absurd charm. Expect ROT13 encoding, Spanish Armada references, and a healthy dose of 90s internet culture.

Phase 1: Network Discovery - Finding Our Star Student

Time to locate our target in the digital classroom! Both the target VM and my Kali machine are happily coexisting on a Host-only adapter network. My Kali sits at 192.168.234.128, but Billy's hiding somewhere in the subnet.

Scanning the network neighborhood:

sudo netdiscover -i eth0 -r 192.168.234.128
Netdiscover scan results showing discovered hosts
Network Scan

Network discovery reveals our target ending in .129 - Billy's digital homeroom!

Perfect! The scan reveals our target at 192.168.234.129. A quick Firefox visit confirms we've found Billy's machine - complete with what I can only assume is the most 90s website design ever conceived.

Billy Madison website homepage
Target Confirmation

Target confirmed! This retro web design screams 90s louder than a Tamagotchi

Phase 2: Port Scanning - The Digital School Inspection

Time for the full reconnaissance treatment! I'm deploying my trusty nmap arsenal with all the bells and whistles to see what services Billy's machine is offering.

Comprehensive port scan with service detection:

sudo nmap -sSCV -O -A -n -Pn 192.168.234.129
Nmap Arguments Breakdown:
  • -sS: SYN Stealth Scan - Half-open connections for minimal footprint
  • -sC: Default NSE Scripts - Service enumeration and vulnerability detection
  • -sV: Version Detection - Identify service versions and details
  • -O: OS Fingerprinting - Determine the operating system
  • -A: Aggressive Scan - Combines multiple detection techniques
  • -n: No DNS Resolution - Faster scanning by skipping reverse lookups
  • -Pn: Skip Host Discovery - Assume target is online
Nmap scan results showing open ports and services
Port Discovery

Jackpot! Multiple interesting ports including a telnet banner with encoded secrets

🔍 Interesting Findings

  • • Port 22: SSH (tcpwrapped - likely filtered)
  • • Port 23: Telnet with cryptic hacker message
  • • Port 80: HTTP web server (our entry point)
  • • Ports 139 & 445: SMB shares (always interesting)
  • • Port 2525: SMTP server (non-standard port)

The telnet banner is particularly intriguing - it mentions Billy's laptop being hacked and contains an encoded string: rkfpuzrahngvat. The message also drops a huge hint with the word "ROTten" - clearly pointing toward ROT13 encoding!

Phase 3: ROT13 Decoding - Cracking the Caesar's Code

Time to channel our inner cryptographer! The telnet banner's emphasis on "ROTten" is about as subtle as Billy's academic performance. Let's decode that mysterious string using ROT13 - the Caesar cipher that shifts each letter 13 positions in the alphabet.

ROT13 decoding results
Decryption Success

The encoded string reveals 'exschmenuating' - our secret directory name!

🔓 Decoding Success!

The ROT13 decoding reveals exschmenuating - clearly a directory or path we need to explore.

Let's test this theory by visiting the decoded path on the web server. Sometimes the most obvious approach is the right one!

Visiting the exschmenuating directory
Directory Discovery

Bingo! We've unlocked a secret message from the laptop hacker

🕵️ Psychological Analysis Time

Let's decode this message like we're profiling a digital criminal:

  • • "veronica" is embedded somewhere in a filename
  • • "I .captured the whole thing" - note the period before "captured" suggesting a .cap file
  • • "in this folder for later" - it's hidden in the current exschmenuating directory

Conclusion: We're looking for something like *veronica*.cap in this directory!

Phase 4: Directory Enumeration - The Veronica Hunt

Time to put our detective skills to work! We need to find files containing "veronica" in the current directory. Rather than using the massive rockyou.txt wordlist, let's be smart and create a targeted wordlist filtered for "veronica" variations.

Creating a focused wordlist:

grep -i "veronica" '/usr/share/wordlists/rockyou.txt' > /home/kali/veronicas.txt

Now let's unleash DirBuster on the exschmenuating directory using our custom Veronica-focused wordlist. This approach is much more efficient than brute-forcing with millions of generic passwords.

DirBuster configuration
Directory Scanning

DirBuster setup with our custom Veronica wordlist targeting the secret directory

DirBuster scan results
File Discovery

SUCCESS! Found our treasure: a .cap file with 'veronica' in the name

🎯 Target Acquired!

We've found our network capture file! Time to download it and see what digital secrets the laptop hacker has been collecting.

Phase 5: Packet Analysis - Digital Wiretapping Investigation

Time to channel our inner network forensics expert! Let's open this capture file in Wireshark and see what juicy communications the hacker managed to intercept. Network captures often contain the most valuable intelligence in penetration testing.

Wireshark analysis of the capture file
Packet Analysis

Wireshark reveals active TCP streams - time to follow the digital breadcrumbs

The capture file is alive with TCP traffic! Let's systematically follow each TCP stream to reconstruct the conversations. I'll start with tcp.stream eq 0 and work my way through each stream.

First TCP stream showing email from Eric
Email Analysis

TCP Stream 0: Eric emails Veronica about downloading antivirus software

📧 Email Intelligence

Eric is asking Veronica to download antivirus software - a common social engineering tactic or potentially legitimate IT support.

Second TCP stream showing Veronica's reply
Response Analysis

TCP Stream 1: Veronica suggests using FTP and shares a YouTube link for additional context

Interesting! Veronica mentions setting up an FTP server and provides a YouTube link: https://www.youtube.com/watch?v=z5YU7JwVy7s. YouTube links in security challenges usually contain crucial clues!

Third TCP stream showing Eric's FTP credentials
Credential Discovery

TCP Stream 2: Eric shares his FTP credentials - the keys to the kingdom!

🔑 Critical Intelligence Gathered

From the packet analysis, we've extracted:

  • • Username: eric
  • • Password: ericdoesntdrinkhisownpee
  • • YouTube link: Contains additional clues for accessing FTP
  • • Context: FTP server requires specific connection method

Now let's analyze that YouTube video to understand the full access mechanism. The email mentions a "Spanish Armada combo" - this sounds like a port knocking sequence disguised as historical references!

Phase 6: Port Knocking - The Spanish Armada Sequence

Time to crack the historical code! After watching the YouTube video, I discovered a series of dates mentioned: 1066, 1215, 1466, 1467 (or just 67), 1469, 1514, 1981, 1986. But here's the key - the email mentioned the "Spanish Armada combo," which means we only use the numbers mentioned AFTER the Spanish Armada reference in the video.

🏰 Historical Port Knocking

The Spanish Armada reference eliminates early dates (1066, 1215, 1467), leaving us with the sequence: 1466, 67, 1469, 1514, 1981, 1986

Let's knock on these ports in sequence to see if we can activate the hidden FTP service:

Port knocking sequence automation:

for x in 1466 67 1469 1514 1981 1986; do nmap -Pn --host-timeout 201 --max-retries 0 -p $x 192.168.234.129; done
Port Knocking Parameters:
  • -Pn: Skip host discovery (target is behind firewall)
  • --host-timeout 201: Wait 201ms per port attempt
  • --max-retries 0: Single attempt per port (fast knocking)
  • -p $x: Target each port in the sequence

After executing the port knocking sequence, let's check if any new services have appeared:

Nmap scan showing newly opened FTP port
Service Activation

Port knocking success! FTP service is now online and ready for access

🚪 Port Knocking Success!

The Spanish Armada sequence worked perfectly! FTP port 21 is now active and accepting connections.

Phase 7: FTP Exploration - The Digital File Cabinet

Now for the moment of truth! Let's connect to the newly activated FTP service. I'll start with anonymous access (always worth trying), and based on the email conversation, the anonymous password might be Eric's email address.

Connecting to FTP service:

ftp 192.168.234.129
Anonymous FTP login success
Anonymous Access

Anonymous FTP access granted! Using Eric's email as the password worked perfectly

Excellent! Anonymous access is working. After disabling passive mode for better file listing, I discover Billy's 12th-grade final project file. But when I examine it...

Billy's fake final project file
False Discovery

Plot twist! Billy's project is just a joke - we've been bamboozled by the class clown

🎭 Classic Billy Madison Move!

Of course Billy would leave a decoy file with academic jokes! Time to dig deeper with Eric's actual FTP credentials.

Let's authenticate with Eric's credentials and see what the real file structure contains:

Eric's FTP login successful
Authenticated Access

Eric's FTP access reveals the real treasure trove of files and secrets

Contents of Eric's .notes file
Backdoor Discovery

Eric's notes reveal an SSH backdoor and another YouTube clue for activation

🚨 SSH Backdoor Intel

Eric's notes reveal crucial information:

  • • An SSH backdoor exists on the system
  • • Activation requires sending a specific email
  • • The email must contain: "My kid will be a ________ _________"
  • • Another YouTube video provides the missing words

Time to watch that YouTube video (https://www.youtube.com/watch?v=6u7RsW5SAgs) and complete the phrase to trigger the backdoor!

YouTube video revealing the missing phrase
Phrase Discovery

The video reveals the complete phrase: 'My kid will be a soccer player'

Phase 8: Email Trigger - Activating the SSH Backdoor

Now for some social engineering magic! Remember that SMTP service running on port 2525? It's time to send the trigger email containing our YouTube-discovered phrase. Eric mentioned sending TO his own address, so we'll use Veronica's email as the sender.

Crafting the trigger email with swaks:

swaks --to eric@madisonhotels.com --from vvaughn@polyfector.edu --server 192.168.234.129:2525 --body "My kid will be a soccer player" --header "Subject: My kid will be a soccer player"
Email sent successfully
Email Delivery

Email delivery confirmed! The backdoor trigger phrase has been sent successfully

Perfect! The email has been delivered. Now let's check if this triggered the SSH backdoor by scanning for new services:

New SSH port discovered
Backdoor Activated

Backdoor activation successful! Port 1974 is now open and running SSH service

🔓 Backdoor Successfully Activated!

Port 1974 has appeared and is running SSH service - exactly as Eric promised in his notes!

Nmap confirmation of SSH on port 1974
Service Confirmation

Comprehensive scan confirms port 1974 is indeed running OpenSSH service

Phase 9: SSH Access & WiFi Cracking - Billy's Revenge

Before we dive into SSH access, I need to crack Veronica's FTP password to access additional files. Let's use hydra with our custom Veronica wordlist for a targeted brute force attack:

Brute forcing Veronica's FTP password:

hydra -t 10 -l veronica -P "/home/kali/veronicas.txt" 192.168.234.129 ftp
Veronica's FTP access
Additional Discovery

Veronica's FTP reveals Billy's revenge files - a WiFi capture and explanatory email

Billy's email explaining the WiFi capture
Revenge Story

Billy's email: Classic revenge move - he captured Eric's WiFi credentials!

😂 Billy's Signature Move

Billy left a "flaming bag of dog poo" at Eric's doorstep AND captured his WiFi traffic! This kid's got style AND technical skills.

Let's crack that WiFi password using aircrack-ng. Since this is Eric's personal network, his password might be in a common wordlist:

Cracking the WiFi WPA handshake:

aircrack-ng eg-01.cap -w /usr/share/wordlists/rockyou-tiny.txt
Aircrack-ng successfully cracks WiFi password
WiFi Cracked

Success! Eric's WiFi password is 'triscuit*' - Billy's revenge is complete!

🔑 WiFi Password Cracked!

Eric's WiFi password is triscuit* - perfect for our SSH access attempt!

Now let's use Eric's credentials to access the SSH backdoor. Since we found the WiFi password through FTP, it's likely Eric reuses passwords:

SSH login successful
SSH Success

SSH access achieved! We're inside Eric's system with the backdoor access

Phase 10: Privilege Escalation - The SUID Goldmine

Time for the privilege escalation phase! Eric's notes mentioned that his usual kernel exploits aren't working anymore due to system updates. Let's take a different approach and hunt for SUID binaries that might give us root access.

Hunting for SUID binaries:

find / -user root -perm -4000 -ls 2>/dev/null
SUID binaries discovered
SUID Discovery

Jackpot! Found an interesting SUID binary at /usr/local/share/sgml/donpcgd

🎯 SUID Binary Analysis

The /usr/local/share/sgml/donpcgd binary runs with root privileges and appears to take two path arguments. This could be our ticket to privilege escalation!

Let's create a cron job that will add Eric to the sudoers file. This is a classic privilege escalation technique when you have access to a SUID binary that can manipulate files:

Creating our privilege escalation cron job:

touch hehe
echo -e '#!/bin/bash\necho "eric ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers' > /etc/cron.hourly/hehe
Cron job created successfully
Cron Planted

Privilege escalation cron job planted - now we wait for the hourly execution

⏰ The Waiting Game

Since this is cron.hourly, we need to wait up to an hour for the job to execute. This is realistic timing for many automated privilege escalation scenarios.

After the hourly cron execution, let's check if Eric has been successfully added to the sudoers:

Eric now has sudo privileges
Escalation Success

Success! Eric is now a sudoer with full system privileges

👑 Root Access Achieved!

The cron job worked perfectly! Eric now has unrestricted sudo access to the entire system.

Phase 11: The Hunt for Billy's Real Project - A Encrypted Mystery

Now for the main objective - finding Billy's actual 12th-grade final project! As root, let's explore the system thoroughly to see where Eric might have hidden it.

Exploring root directories
File Discovery

Systematic exploration reveals a suspicious 'PRIVATE' directory in the root filesystem

The /PRIVATE directory looks promising! Let's see what secrets Eric has been hiding in there.

Found two files in /PRIVATE:

  • • hint.txt - Contains instructions for the BowelMovement file
  • • BowelMovement - The encrypted container with Billy's project

The hint file reveals that Eric forgot the password, but mentions it's somewhere on Billy Madison's Wikipedia page. Time for some OSINT work with cewl!

Generating wordlist from Wikipedia:

cewl --depth 0 -w /home/kali/BowelMovement.list https://en.wikipedia.org/wiki/Billy_Madison
Cewl wordlist generation
Wordlist Creation

Custom wordlist generated from Billy Madison Wikipedia page - movie trivia becomes password cracking

Now let's use truecrack to attack the encrypted container with our movie-themed wordlist:

HTTP server setup for file transfer
File Transfer

Setting up HTTP server to transfer the encrypted file for local analysis

File downloaded and ready for cracking
Ready to Crack

BowelMovement file downloaded and ready for password cracking with our Wikipedia wordlist

🔓 Password Cracked!

The Wikipedia wordlist worked! The password is execrable - perfectly fitting for this movie-themed challenge.

Phase 12: The Final Twist - When Modern Tools Meet Legacy Formats

Time for the grand finale! Let's decrypt Billy's project using VeraCrypt with our freshly cracked password.

VeraCrypt application launching
Decryption Attempt

VeraCrypt is ready to decrypt Billy's educational masterpiece

VeraCrypt unable to decrypt the file
Format Incompatibility

Plot twist! VeraCrypt can't handle the legacy TrueCrypt format

😅 Classic Billy Madison Ending!

Well, this is awkwardly perfect! Just like in the movie where things don't always go according to plan, we've hit a compatibility roadblock. VeraCrypt has dropped support for the legacy TrueCrypt format, leaving Billy's project locked away like his academic ambitions.

But you know what? This is actually the most authentic Billy Madison experience possible! We've successfully:

  • Navigated through multiple layers of security
  • Decoded ROT13 ciphers and YouTube clues
  • Performed sophisticated port knocking sequences
  • Analyzed network packet captures
  • Executed social engineering via email
  • Cracked WiFi passwords and escalated privileges
  • Found the encrypted project file
  • Even cracked the encryption password!

🎓 Mission Accomplished (Sort Of)

Sometimes in penetration testing, you find the treasure but can't open the chest due to legacy system incompatibilities. That's exactly what happened here - we achieved every technical objective except the final file decryption due to format evolution.

Billy would probably find this hilarious - his project remains "academically protected" by technological obsolescence! 😂

Summary - A 90s Adventure in Digital Form

What a journey! This Billy Madison 1.1 machine delivered exactly what it promised - a nostalgic, entertaining, and technically challenging experience that perfectly captures the spirit of the 1995 comedy.

🎬 The Complete Attack Chain

  • • Network Discovery: netdiscover revealed our target VM
  • • ROT13 Decoding: Telnet banner provided the first cryptographic puzzle
  • • Directory Enumeration: Custom wordlists led to network capture discovery
  • • Packet Analysis: Wireshark revealed FTP credentials and YouTube clues
  • • Port Knocking: Spanish Armada sequence activated hidden services
  • • Multi-stage FTP Access: Anonymous and authenticated access revealed backdoor info
  • • Email-triggered SSH Backdoor: Social engineering activated remote access
  • • WiFi Password Cracking: Billy's revenge provided system credentials
  • • SUID Privilege Escalation: Cron job manipulation achieved root access
  • • File Recovery: Found and cracked Billy's encrypted project container

💡 Technical Lessons Learned

This machine showcased several advanced penetration testing concepts:

  • • Multi-stage Port Knocking: Historical references disguised access sequences
  • • OSINT Integration: YouTube videos and Wikipedia pages as clue sources
  • • Packet Forensics: TCP stream analysis for credential extraction
  • • Email-triggered Backdoors: SMTP-based service activation
  • • Legacy Format Challenges: Real-world compatibility limitations
  • • Creative Social Engineering: Movie quotes as authentication phrases

🎭 The Billy Madison Experience

This VM perfectly captured the essence of Billy Madison - chaotic, unpredictable, occasionally frustrating, but ultimately entertaining and educational. The fact that we couldn't decrypt the final file due to legacy format incompatibility is ironically perfect - just like Billy's academic journey, sometimes the destination is less important than the adventure itself.

Thanks for joining me on this nostalgic ride through digital chaos! Remember: sometimes the best penetration testing experiences are the ones that don't go exactly according to plan. 🎓

Educational Purpose

This writeup is for educational purposes only. All techniques demonstrated should only be used on systems you own or have explicit permission to test.