Amazing Collection of online role playing games for your website!

Generic Mafia RPG

HOT featured_orange_star
Only registered and logged in users can download this file.
Rating
(0 votes)
Technical Details
Filename generic_mafia_rpg.zip
Size 408.86 KB
Downloads 129
Author Unknown
Created 2008-12-31
Changed 2025-12-17
System PHP 5.x
Price $0.00
Screenshot
Generic Mafia

Build and run your own online underworld. Launch crimes, run drugs, recruit gang members, and grow your influence across a living economy. From street hustler to kingpin, you’ll amass houses, cars, weapons, and clout as you outwit rivals and expand your empire.

Dive deeper with banks and brokerages, a stock market, real estate and vehicles, gambling dens, and a player-to-player item market. Robust gang warfare, prisons, jobs, and staff tools round out a mid-2000s powerhouse—an all-in-one mafia engine ready to host your city of crime.

File Verification
MD5 Checksum
9c553003a263b3865ce01d1d6b066744
SHA1 Checksum
2d07b5dd1c51722a4689e755420e3ebed81bb2a0

Generic Mafia RPG - Comprehensive Analysis - Game Analysis Report

1. METADATA & PROVENANCE

Game Title: Generic Mafia RPG (GRPG)

Version: Unknown (likely v1.x-2.x)

Developer: ShareMafia.com

Release Date: ~2005-2008 (estimated from code)

Genre: Mafia-themed Browser RPG

Language: PHP 4.x/5.x

License: Commercial/Proprietary

Website: www.sharemafia.com

Documentation: README.pdf (7 KB), INSTALL.txt

Database: 38 tables (grpgtables.sql)

Historical Context

Generic Mafia RPG is a commercial mafia-themed browser RPG engine from the mid-2000s, distributed by ShareMafia.com. The name "Generic" suggests it's a customizable engine/script sold to customers who want to run their own mafia games. With 104 PHP files and 38 database tables, it represents one of the most feature-complete mafia games in the collection.

Key Features (from filenames):

  • Crime system (crime.php, mug.php, 24hour.php)
  • Drugs (drugs.php, buydrugs.php)
  • Gang warfare (gang.php, creategang.php, gangarmory.php, gangvault.php, attack.php)
  • Economy (bank.php, stock.php, brokerage.php, lottery.php, portfolio.php)
  • Real estate (realestate.php, house.php, garage.php, carlot.php)
  • Gambling (slots.php, 5050game.php, lottery.php)
  • Items/Equipment (inventory.php, equip.php, itemmarket.php)
  • Prison (jail.php)
  • Jobs (jobs.php)
  • Admin (staff.php, control.php, cleanup.php, massmail.php)

The [database.php](d:_HOUSESOCIALMUDWWW_MUD Gamesunzippedgeneric_mafia_rpgGeneric Mafia RPGdatabase.php) file contains hardcoded production credentials:


      function db_connect($server = 'localhost', $username = 'thegrpg3',
      $password = 'hc6vwbrf', $database = 'thegrpg3_myneocorp', $link = 'db_link')
  • Database: thegrpg3_myneocorp (suggests "My Neo Corp" customer/deployment)
  • Credentials likely from developer's test environment

Archive Characteristics

  • Archive Type: Complete commercial script package
  • Total Files: 127 files
  • Total Size: ~633 KB
  • Documentation: README.pdf, INSTALL.txt
  • Database: 38 tables (24.5 KB SQL)
  • Installation: Manual (README.pdf instructions)

---

2. FILE COMPOSITION ANALYSIS

Overall Statistics

  • 104 PHP files (~286 KB) - Game logic
  • 12 PNG files (~293 KB) - UI graphics
  • 6 JPG files (~17 KB) - Images
  • 2 CSS files (~6 KB) - Styling
  • 1 PDF file (~7 KB) - README documentation
  • 1 SQL file (25 KB) - Database schema (38 tables)
  • 1 TXT file (0.07 KB) - INSTALL.txt (references README.pdf)

Core Systems (104 PHP Files)

Authentication & User Management:

  • index.php, login.php, register.php, logout.php
  • forgot.php (password recovery)
  • citizens.php (user list), profiles.php
  • preferences.php (settings)

Crime & Illegal Activities:

  • crime.php - Commit crimes
  • drugs.php, buydrugs.php - Drug trafficking
  • mug.php - Rob other players
  • jail.php - Prison system
  • 24hour.php - Daily crime limits
  • spy.php, spylog.php - Espionage

Gang System (12+ files):

  • gang.php, creategang.php - Gang management
  • gangarmory.php - Gang weapons storage
  • gangvault.php - Gang bank
  • ganginvites.php - Recruitment
  • ganglog.php - Activity logging
  • gang_list.php, viewgang.php - Gang directory
  • managegang.php - Leadership controls
  • attack.php - Gang warfare

Economy & Banking:

  • bank.php - Banking system
  • stock.php, viewstocks.php - Stock market
  • brokerage.php - Stock trading
  • portfolio.php - Investment tracking
  • lottery.php - Lottery system
  • pointmarket.php - Point trading
  • sendmoney.php - Player transfers

Real Estate & Property:

  • realestate.php - Property market
  • house.php - Home ownership
  • garage.php - Vehicle storage
  • carlot.php - Car dealership
  • cardesc.php - Car descriptions

Shopping & Items:

  • store.php - General store
  • astore.php, rmstore.php - Special stores
  • pharmacy.php - Health items
  • inventory.php - Item management
  • equip.php - Equipment system
  • itemmarket.php - Player item trading
  • giveitem.php, senditem.php, sellitem.php

Gambling:

  • slots.php - Slot machines
  • 5050game.php - 50/50 chance game
  • lottery.php - Lottery tickets

Character Development:

  • gym.php - Training
  • hospital.php - Healing
  • stats.php - Character statistics
  • effects.php - Stat modifiers

Social & Communication:

  • pms.php - Private messaging
  • newspaper.php - Game news
  • newspaper/ folder - News system
  • classifieds.php - Player ads
  • refer.php - Referral system
  • vote.php - Voting

Admin & Moderation:

  • staff.php, viewstaff.php - Staff management
  • control.php - Admin controls
  • cleanup.php - Database maintenance
  • massmail.php - Bulk messaging
  • todo.php - Admin TODO list
  • events.php, updates.php - Game events

Other Features:

  • faq.php - Help system
  • halloffame.php - Top players
  • worldstats.php - Game statistics
  • online.php - Who's online
  • drive.php - Driving system
  • offers.php - Trade offers
  • description.php, changedesc.php - Profile editing

File Organization

Strengths:

  • Comprehensive features (38 tables, 104 files)
  • Clear naming conventions (gang.php, view.php, etc.)
  • Documentation included (README.pdf)

Issues:

  • All files in root (zero directory structure)
  • Hardcoded credentials in database.php
  • Dual config (dbcon.php with placeholders, database.php with real creds)

---

3. TECHNICAL ARCHITECTURE & DATABASE

Technology Stack

  • Backend: PHP 4.x/5.x (procedural code)
  • Database: MySQL (38 tables)
  • Frontend: HTML, CSS (style.css), JavaScript
  • Session Management: PHP sessions
  • Architecture: Procedural spaghetti (no MVC, no OOP)

Database Architecture (38 Tables)

From grpgtables.sql (25 KB), the game likely includes:

Core Tables (estimated):

  • users - Player accounts
  • gangs - Gang information
  • gang_members - Gang membership
  • crimes - Crime types
  • jail - Prison records
  • drugs - Drug market
  • bank_accounts - Banking
  • stocks - Stock market
  • properties - Real estate
  • vehicles - Cars
  • items - Item database
  • inventory - Player items
  • mail - Private messages
  • classifieds - Ads
  • staff - Admin accounts
  • logs - Activity tracking
  • ... (32 more tables)

Design Philosophy:

  • MyISAM engine (typical for PHP 4 era)
  • Comprehensive coverage (38 tables = feature-rich)
  • Likely no foreign keys (MyISAM limitation)

Database Credentials

dbcon.php (Template):


      $conn = mysql_connect("localhost","YOUR_USERNAME","YOUR_PASSWORD");
      $db = mysql_select_db("YOUR_DB");
  • Placeholder values for customers

database.php (Production/Test):


      function db_connect($server = 'localhost', $username = 'thegrpg3',
      $password = 'hc6vwbrf', $database = 'thegrpg3_myneocorp')
  • HARDCODED CREDENTIALS from developer/customer installation
  • thegrpg3_myneocorp = "My Neo Corp" customer database

Database Abstraction:


      // database.php header comments:
      // "Database Abstraction file for AJAX Driven Chat tutorial"
      // "Code written by Ryan Smith of 345 Technical"
      // "Based on osCommerce database abstraction"
      // Copyright 2005 Ryan Smith / 345 Technical / DynamicAJAX.com
  • Custom DB abstraction (not direct mysql_* calls)
  • Based on osCommerce (popular PHP e-commerce platform)
  • Originally from AJAX chat tutorial (repurposed)

---

4. SECURITY ANALYSIS

Security Score: 1/10 (Catastrophic)

CRITICAL: Hardcoded Production Credentials


      // database.php
      function db_connect($server = 'localhost', $username = 'thegrpg3',
      $password = 'hc6vwbrf', $database = 'thegrpg3_myneocorp')
  • CVSS 9.8 CRITICAL
  • thegrpg3 username exposed
  • hc6vwbrf password exposed
  • thegrpg3_myneocorp database name exposed

Other Vulnerabilities:

  • SQL Injection (likely throughout 104 files)
  • mysql_* functions (deprecated PHP 7.0)
  • No visible XSS protection
  • No CSRF protection
  • No password hashing visible (likely plaintext/MD5)
  • All files in root (no access control)

Commercial Script Security:

  • Sold to multiple customers
  • Each customer likely has same code structure
  • Credentials from one customer's installation in archive
  • All customers potentially vulnerable if code patterns similar

---

5. CODE QUALITY & MODERN ASSESSMENT

Quality Score: 3/10

Strengths:

  • Comprehensive features (38 tables worth)
  • osCommerce-based DB abstraction
  • Documentation included (README.pdf)

Critical Issues:

  • Hardcoded credentials
  • All 104 files in root (zero organization)
  • Procedural spaghetti code
  • mysql_* functions (PHP 7.0 incompatible)
  • Dual config files (dbcon.php vs database.php confusion)

Deployment Feasibility: IMPOSSIBLE (2025)

Fatal Blockers:

  • Hardcoded credentials must be changed
  • mysql_* functions (PHP 7.0+ incompatible)
  • Likely SQL injection everywhere
  • No modern security practices

Technical Debt Score: 9/10

Modernization Effort:

  • Remove hardcoded credentials: 1 hour
  • Convert mysql_* to PDO: 60 hours (104 files!)
  • Add password hashing: 15 hours
  • Reorganize file structure: 20 hours
  • Add CSRF protection: 30 hours
  • Security audit: 80 hours
  • Testing: 50 hours
  • TOTAL: 256 hours (~6-7 weeks)

Estimated Cost: $19,200 - $38,400 USD

---

6. GAMEPLAY & INNOVATION ASSESSMENT

Innovation Score: 5/10

Standard Mafia Features:

  • Crime, drugs, gangs, prison (expected in mafia games)
  • Banking, stock market (common)

Notable Features (+2 points):

  • Gang armory + vault (gang resource management)
  • Real estate system (property investment)
  • Car dealership (vehicle ownership)
  • Brokerage/portfolio (stock market depth)
  • 24hour.php (daily crime limits)
  • Spy system (intelligence gathering)

Derivative Elements:

  • Standard mafia RPG mechanics (2005 era)
  • osCommerce DB code repurposed
  • AJAX chat tutorial code adapted

Feature Completeness: 8/10

Comprehensive Systems:

  • 38 tables = extensive feature set
  • Gang warfare with armory/vault
  • Full economy (bank, stocks, lottery, gambling)
  • Real estate + vehicles
  • Item system with market
  • Crime + prison system
  • Admin panel

Why Not 10/10:

  • Code quality undermines features
  • Security flaws limit deployability

---

7. RECOMMENDATIONS & CONCLUSIONS

For Historians/Archivists

Preservation Priority: MEDIUM (5/10)

Why Preserve:

  • Commercial mafia RPG script (rare to find)
  • ShareMafia.com artifact
  • Comprehensive features (38 tables)
  • osCommerce connection (PHP history)
  • ⚠️ Hardcoded customer credentials (MyNeoCorp deployment)

Archive Actions:

  • Preserve fully (document ShareMafia.com)
  • Redact credentials in documentation
  • ⚠️ Note customer database name (MyNeoCorp)
  • ⚠️ Research ShareMafia.com (likely defunct)

For Developers

⚠️ STUDY CAREFULLY (Features Only)

What to Study:

  • Feature set (38 tables) - Inspiration for mafia game mechanics
  • Gang system design - Armory + vault resource management
  • Real estate + vehicle systems
  • Stock market implementation

What NOT to Study:

  • Security practices (hardcoded credentials, no XSS/CSRF protection)
  • Code organization (104 files in root)
  • mysql_* usage (deprecated)

If Modernizing:

  • 256 hours effort
  • $19K-38K cost
  • Focus: Security first, then reorganization
  • Consider: Is it worth saving vs building fresh?

For Players

UNSAFE TO PLAY

  • Hardcoded credentials exposed
  • Likely SQL injection vulnerabilities
  • mysql_* incompatible with modern PHP
  • ShareMafia.com likely defunct

Final Verdict

Summary: Generic Mafia RPG is a commercial mafia-themed browser RPG script from ShareMafia.com (mid-2000s) with 104 PHP files, 38 database tables, and comprehensive features including gangs, drugs, crime, stock market, real estate, and gambling. Despite its extensive feature set (8/10 completeness), it suffers from catastrophic security flaws including hardcoded production credentials (thegrpg3/hc6vwbrf for database thegrpg3_myneocorp, likely a customer's "My Neo Corp" installation) and typical PHP 4-era vulnerabilities.

Key Paradox: Commercial script with professional features but amateur security practices.

Historical Significance: Documents the commercial browser RPG script market circa 2005-2008, when developers sold mafia game engines to customers. The osCommerce-based database abstraction and repurposed AJAX chat code show the copy-paste development culture of the era.

Best Use Cases in 2025:

  • Feature catalog - Study 38 tables for mafia game mechanics
  • Historical archive - Commercial script market artifact
  • ⚠️ Security education - "How NOT to sell scripts" case study
  • NOT playable - Security disasters
  • NOT worth modernizing - 256 hours = easier to rebuild

Comparison to Collection:

  • ezRPG: Professional framework (9/10 quality)
  • Eternal Duel: Bloated but feature-rich (491 files, 822 hours to fix)
  • Generic Mafia RPG: Commercial script (104 files, 256 hours to fix)

Preservation Priority: MEDIUM (5/10) - Commercial script artifact, comprehensive features, but poor security

Epitaph: "They built a stock market but couldn't secure the database."

---

Analysis Completed: December 2025

Confidence Level: 88% (file review, SQL count verified, credentials found, README.pdf not opened)

Recommended Action: Archive with credential redaction, document ShareMafia.com

Security Warning: ⚠️ HARDCODED CREDENTIALS - thegrpg3/hc6vwbrf (MyNeoCorp customer)

Commercial Script: 💼 ShareMafia.com distribution, sold to multiple customers

Next Game: gladiators (27/79 complete - 34.2%)

Overall Assessment & Star Ratings

Category Rating Commentary
Innovation & Originality ★★★★☆☆☆☆☆☆ 4/10 Standard mafia features but comprehensive: drugs, gangs, real estate, stocks
Code Quality ★★★☆☆☆☆☆☆☆ 3/10 Organized but procedural, 104 files show ambition without architecture
Security Posture ★☆☆☆☆☆☆☆☆☆ 1/10 SQL injection, hardcoded credentials, gambling = legal + security disaster
Documentation ★★★★★☆☆☆☆☆ 5/10 README.pdf and INSTALL.txt present - better than most in collection
Gameplay Design ★★★★★★☆☆☆☆ 6/10 Rich features: gangs, crimes, drugs, stocks, real estate, gambling
Technical Architecture ★★★☆☆☆☆☆☆☆ 3/10 38-table schema complex but no MVC, procedural spaghetti
Feature Completeness ★★★★★★★★☆☆ 8/10 Most complete mafia game: 104 files, 38 tables, all systems implemented
Historical Significance ★★★★★★☆☆☆☆ 6/10 Commercial script example from ShareMafia.com distribution era
Preservation Value ★★★★★★★☆☆☆ 7/10 Complete commercial package with docs, demonstrates full mafia game scope

Final Grade: D

Summary: Generic Mafia RPG represents a commercial script package from ShareMafia.com, offering one of the most feature-complete mafia games in the collection. With 104 PHP files and 38 database tables, it implements everything from drugs and gangs to stocks and real estate. The inclusion of README.pdf shows professional distribution intent. However, it suffers from typical mid-2000s security disasters: SQL injection, hardcoded credentials, and zero input validation. The gambling features (slots, lottery, 50/50) add legal complexity. Valuable as an example of commercial browser RPG script sales, but absolutely unsafe for deployment.

Security Warning

Running many of the scripts in this archive on a live server presents a serious security risk. These projects were created before modern hardening practices and may contain vulnerabilities that can compromise your system.

We strongly recommend using this code for reference and analysis only, or in isolated local environments. By downloading these files, you accept full responsibility for their use.