Choose your allegiance—Crips, Bloods, or Mafia—and rise through the ranks in a gritty urban RPG built on crew power. Recruit members, run factories to fuel your economy, and dominate high-stakes battles for cash and reputation. Then hit the streets for racing, shopping, and bold plays that put your name on the leaderboard.
Street Gang blends faction warfare, crew management, and fast progression into a punchy, competitive experience. Build smart, fight hard, and take the city.
Street Gang is an ambitious gang warfare browser RPG featuring three rival gangs (Crips, Bloods, Mafia), extensive crew management systems, factory-based drug production economy, and integrated Nitto racing mechanics. Despite having 208 PHP files with sophisticated features, the game suffers from catastrophic security vulnerabilities including hardcoded production credentials exposed in source code.
Rating: 3.5/10 ⭐⭐⭐½
---
`
Street Gang/
├── Core Files
│ ├── index.php (Gang selection page)
│ ├── connect.php (CREDENTIALS EXPOSED!)
│ ├── functions.php (Weak protect() function)
│ ├── register.php (Gang registration)
│ └── login.php
├── Battle System
│ ├── battle.php (Turn-based monster combat)
│ └── fight.php
├── Crew Management (20+ files!)
│ ├── crew_create.php
│ ├── crew_factory.php
│ ├── crew_factory_build.php
│ ├── crew_factory_buy.php
│ ├── crew_factory_hire.php
│ ├── crew_factory_machines.php
│ ├── crew_factory_sell_drugs.php
│ ├── crew_factory_storage.php
│ ├── crew_bank.php
│ ├── crew_wager.php
│ ├── crew_wage.php
│ ├── crew_options.php
│ ├── crew_armory.php
│ └── crew_leave.php
├── Shop System (7+ shops)
│ ├── shop1.php, shop2.php, shop3.php, shop4.php
│ ├── shop5.php, shop7.php, shop13.php, shop15.php
│ ├── newshop.php
│ └── honda_showroom.php
├── Equipment System
│ ├── equip.php
│ ├── equipment.php
│ └── addweap.php, addweapon.php
├── User Profile
│ ├── editprofile.php
│ ├── stats.php
│ ├── avatarchose.php
│ └── notebook.php
├── Communication
│ ├── mail.php, inbox.php, outbox.php
│ ├── compose.php, reply.php
│ └── chat.php
├── Admin System
│ ├── hadmin/
│ ├── owner/
│ ├── headadminpanel.php
│ ├── ownerpanel.php
│ ├── ban.php, unbanuser.php
│ └── gfxpanel.php
├── Nitto Racing Integration
│ └── nitto/ (Complete racing game subfolder)
└── Database
└── database 29-09-07.sql (EMPTY - 0 LINES!)
`
---
File: connect.php
`php
$dbhost = "localhost";
$dbuser = "clay";
$dbpass = "a2a3a4a5a6"; // EXPOSED IN SOURCE CODE!
$dbname = "clay_round1";
$con = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname, $con);
?>
`
This is catastrophic:
a2a3a4a5a6clay_round1clayOnly 1 mysql_real_escape_string in 208 files!
Found in: crew_factory_sell_drugs.php (line 52)
`php
$_POST['amount'] = mysql_real_escape_string($_POST['amount']);
`
Everywhere else: Direct $_GET/$_POST usage with zero escaping
register.php (Gang selection):
`php
$gang = $_GET[gang]; // NO ESCAPING!
// Direct SQL injection vulnerability
mysql_query("INSERT INTO users SET gang='$gang'");
`
battle.php (Combat system):
`php
$player[ID] = $_SESSION[ID]; // Direct usage
mysql_query("update accdata set hp=$player[hp], lost=lost+1, energy=energy-1 where ID=$player[ID]");
`
crew_factory.php (Crew management):
`php
$player[crew_rank] == 'leader' // No validation
mysql_query("SELECT * FROM crews WHERE leader='$player[username]'");
`
File: functions.php
`php
function protect($value) {
$value = stripslashes($value);
$value = htmlspecialchars($value);
$value = strip_tags($value);
$value = mysql_escape_string($value); // Deprecated since PHP 5.3!
$value = addslashes($value);
return $value;
}
`
Problems:
mysql_escape_string() (not mysql_real_escape_string)addslashes() AFTER htmlspecialchars (wrong order)Overall Security: 1/10 🔴
---
File: index.php
Three Rival Gangs:
`php
// From index.php (examining the gang selection page)
`
Features:
Each gang has different:
Gang warfare creates PvP tension and factional gameplay.
Most Extensive Feature (20+ dedicated files!)
Crew Creation & Management:
crew_create.php - Start your own crewcrew_create_new.php - Crew registrationcrew_join.php - Join existing crewcrew_join_now.php - Join confirmationcrew_leave.php - Leave your crewcrew_list.php - Browse all crewscrew_my.php - View your crewcrew_profile_edit.php - Edit crew profileCrew Hierarchy (from crew_factory.php):
`php
if ($player[crew_rank] == 'leader' || $player[crew_rank] == 'co-leader') {
// Leader/Co-leader access
}
if ($player[crew_rank] == 'leader' || $player[crew_rank] == 'co-leader' || $player[crew_rank] == 'manager') {
// Manager+ access
}
`
Ranks:
Crew Options (crew_options.php):
crew_name_changed.php)Drug Production Economy (10+ files)
Files:
crew_factory.php - Main factory interfacecrew_factory_build.php - Build new factorycrew_factory_new.php - Factory creationcrew_factory_buy.php - Purchase equipmentcrew_factory_machines.php - Machine managementcrew_factory_hire.php - Hire workerscrew_factory_hour.php - Hourly productioncrew_factory_sell_drugs.php - Sell product (ONLY FILE WITH SQL ESCAPING!)crew_factory_storage.php - Warehouse storagecrew_factory_stats.php - Production statisticscrew_factory_fupgrade.php - Factory upgradescrew_factory_menus.php - NavigationFactory Mechanics (from crew_factory.php analysis):
`php
// Access control
if ($player[crew_rank] == 'leader' || $player[crew_rank] == 'co-leader' || $player[crew_rank] == 'manager') {
include "crew_factory_menus.php";
}
if ($player[crew_rank] == 'leader' || $player[crew_rank] == 'co-leader') {
print "Build A Factory";
}
`
Features:
Crew Bank Integration:
`php
print "Crew Bank($$bank)";
`
Factory profits go to crew bank account.
File: crew_bank.php
Features:
Permission System:
`php
if ($player[crew_rank] == 'leader' || $player[crew_rank] == 'co-leader') {
// Can manage bank
}
`
Files: crew_wager.php, crew_wage.php
Crew vs Crew Gambling:
File: crew_armory.php
Shared Weapons Stockpile:
File: crew_ranked.php
Leaderboards:
File: battle.php (147 lines)
Monster/NPC Combat:
`php
function attack() {
global $player;
global $enemy;
global $myarm;
global $mywep;
$mypower = ($mywep[power] + $player[attack]);
$epower = $enemy[defense];
$attackdmg = ($mypower - $epower);
if ($attackdmg <= 0) {
$attackdmg = 1;
}
$round = 1;
while ($enemy[hp] >= 0 and $round == 1) {
$enemy[hp] = ($enemy[hp] - $attackdmg);
$mypowered = number_format($mypower,0);
$epowered = number_format($epower,0);
$attackdmged = number_format($attackdmg,0);
$ehealth = number_format($enemy[hp],0);
print "$player[username] attacks $enemy[name]";
print "$player[username] attacks with $mypowered, $enemy[name] blocks $epowered, $player[username] did a total of $attackdmged damage! ($ehealth left)";
$round = ($round + 1);
}
if ($enemy[hp] <= 0) {
print "$player[username] is the winner!";
$money = ($enemy[money] + $player[money]);
$exp = ($enemy[exp] + $player[exp]);
print "You gained $$enemy[money] and $enemy[exp] EXP!";
mysql_query("update accdata set money=$money, exp=$exp, won=won+1, energy=energy-1 where ID=$player[ID]");
exit;
} else {
attackback();
}
}
function attackback() {
global $player;
global $enemy;
global $myarm;
global $mywep;
$mypower = ($myarm[power] + $player[defense]);
$epower = $enemy[attack];
$attackdmg = ($epower - $mypower);
if ($attackdmg <= 0) {
$attackdmg = 1;
}
$round = 1;
while ($player[hp] >= 0 and $round == 1) {
$player[hp] = ($player[hp] - $attackdmg);
$mypowered = number_format($mypower,0);
$epowered = number_format($epower,0);
$attackdmged = number_format($attackdmg,0);
$phealth = number_format($player[hp],0);
print "$enemy[name] attacks $player[username]";
print "$enemy[name] attacks with $epowered, $player[username] blocks $mypowered, $enemy[name] did a total of $attackdmged damage! ($phealth left)";
$round = ($round + 1);
}
if ($player[hp] <= 0) {
print "$enemy[name] is the winner!";
print "Go to da Hospital";
mysql_query("update accdata set hp=0, lost=lost+1, energy=energy-1 where ID=$player[ID]");
exit;
} else {
attack();
}
}
attack();
`
Combat Mechanics:
attack - Offensive powerdefense - Defensive powerhp - Health pointsenergy - Action points (1 per battle)$mywep[power] - Weapon damage$myarm[power] - Armor protectionCombat Loop:
File: hospital.php
Healing After Combat:
Action Point Mechanic:
File: 5min.php - 5-minute energy regeneration timer
Character Progression:
From battle.php:
`php
$exp = ($enemy[exp] + $player[exp]);
`
7+ Specialized Stores:
shop1buy.php - Purchase itemsshop1sell.php (likely exists)shop2buy.php - Buy weaponsshop2a.php, shop2w2.php - Variantsshop3buy.phpshop4buy.phpshop5buy.phpshop7buy.phpshop13buy.phpshop13sell.phpshop13selling.phpshop15buy.phpComplete Racing Game Subfolder:
Directory: nitto/
`
nitto/
├── .htaccess
├── cars/ (Car database)
├── cgi-bin/ (Server scripts)
└── index.php (Racing interface)
`
Nitto Racing was a popular browser-based drag racing game from the 2000s.
Features:
Integration Points:
carinfo.phpFiles: equip.php, equipment.php
Weapon Management:
addweap.php - Add weaponaddaweapon.php - Add special weaponaddwepon.php - Typo variant?acceptweapon.php - Approve weapon additionaddwep.php - Short add weaponpendingweapons.php - Weapon approval queueweplist.php - List all weaponsEquipment Stats:
Files: points.php, useap.php (use action points)
Dual Currency:
5dp.php, 10dp.php, 20dp.php, 50dp.php - Point purchase?Profile Management:
stats.php - View statseditprofile.php - Edit profileedprofile.php - Typo varianteditac.php, editacc.php, editaccc.php - Edit accountavatarchose.php - Choose avatarchoosingavatar.php - Avatar selectioncnick.php, cnickk.php - Change nicknamecpass.php, c2pass.php - Change passwordpers.php - Personal infoPrivate Messaging:
mail.php - Mail systeminbox.php - Received messagesoutbox.php - Sent messagescompose.php - Write messagecomposee.php - Compose variantreply.php - Reply to messageread.php - Read messageoread.php - Read outbox messagedelete.php - Delete messageodelete.php - Delete outboxclearinbox.php - Clear inboxclearoutbox.php - Clear outboxmsgoptions.php - Message settingsChat System:
chat.php - Live chatchat.ph[/ - Typo file?chatting.php - Chat interfaceonline.php - Who's onlinenotebook.php - Personal notesnotebook1.php - Notes variantfollowed.php - Users you followfollowers.php - Your followerssearch.php - Search playerssearchh.php - Search variantsearchresults.php - Search resultsFile: zones.php
Territory Control:
Multiple Leaderboards:
highscores.php - Main rankingshighscores1.php - Varianthighscores_attack.php - Best attackershighscores_defense.php - Best defendershighscores_level.php - Highest levelshighscores_richest.php - Wealthiest playershighscores_wealthiest_crews.php - Richest crewsMulti-Tier Administration:
Head Admin:
hadmin/ directoryheadadminpanel.php - Main admin interfaceOwner:
owner/ directoryownerpanel.php - Owner controlsGFX Panel:
gfxpanel.php - Graphics managementUser Management:
ban.php - Ban usersbanuser.php, banuserr.php - Ban variantsunbanuser.php, unbanuserr.php - Unbanbannedusers.php - View bannedmultis.php - Multi-account detectionContent Management:
addupdate.php, addupdatess.php - Add updatesupdates.php - View updatesaddaward.php, addawardd.php - Add awardsadminlogs.php - Admin activity logslogs.php - System logsnewlogs.php - New log entriesbank.php - Personal bank (separate from crew bank)bankmanage.php - Bank managementvote.php - Voting systemrules.php - Game ruleshelp.php - Help documentationcolorkey.php - Color legendredlight.php - Red light district?streetgangs.php - Gang info pagetox.php - Toxicity system?spam.php - Anti-spamoptions.php - User optionsdate.php, day.php - Date/timemusic.php - Background musicview.php - View somethingimage.php, imagee.php - Image handlingimagecheck.php - Image validationupload.php, upload2.php - File uploadsap.php - Action points?booster.php - Stat booster?fix.php - Bug fixes/utilitiesXC-Hosting Platform Features:
From index.php examination:
banner.php)public/)gw-themes/)multis.php - Multi-account detectionnoF5.js - Prevent F5 refresh spamimagecheck.php - CAPTCHA verificationspam.php - Anti-spam filtersinmenu.php, menu.php - Navigation menussdmenu/ - JavaScript menu systemalttxt.js - Tooltipsclock.swf - Flash clockpiechart.php - Statistics charts---
File: database 29-09-07.sql
Size: 0 bytes (completely empty!)
This means:
Based on code analysis, the database likely has these tables:
`sql
CREATE TABLE accdata (
ID INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50),
password VARCHAR(32), -- Likely MD5 or plaintext!
gang VARCHAR(20), -- 'Crips', 'Bloods', 'Mafia'
hp INT, -- Health points
attack INT,
defense INT,
energy INT, -- Action points
money INT,
exp INT, -- Experience
level INT,
won INT, -- Battles won
lost INT, -- Battles lost
crew_id INT,
crew_rank VARCHAR(20) -- 'leader', 'co-leader', 'manager', 'member'
);
`
`sql
CREATE TABLE crews (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50),
leader VARCHAR(50),
bank INT, -- Crew bank balance
created DATETIME
);
CREATE TABLE crew_factories (
id INT PRIMARY KEY AUTO_INCREMENT,
crew_id INT,
machines INT, -- Production equipment
workers INT, -- Staff count
storage INT, -- Warehouse capacity
production_rate INT, -- Hourly output
upgrade_level INT
);
`
`sql
CREATE TABLE weapons (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50),
power INT, -- Attack bonus
price INT,
required_level INT
);
CREATE TABLE armor (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50),
power INT, -- Defense bonus
price INT,
required_level INT
);
CREATE TABLE inventory (
user_id INT,
item_id INT,
item_type VARCHAR(20), -- 'weapon', 'armor', etc.
quantity INT
);
`
`sql
CREATE TABLE enemies (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50),
hp INT,
attack INT,
defense INT,
money INT, -- Money reward
exp INT -- EXP reward
);
`
Estimated: 30-40 tables total for all features
---
XC-Hosting was a multi-user browser game hosting platform popular in the late 2000s.
Features:
Similar Services:
Street Gang's XC Integration:
From index.php:
Why XC-Hosting?:
Downfall:
---
---
---
---
Estimate: 40-80 hours to make installable
---
Similar Games:
Street Gang's Place:
---
| Feature | Street Gang | Torn City | Crimes Online | Mafia Warz |
|---|---|---|---|---|
| Gang System | 3 factions | No factions | Mafia families | Gang wars |
| Crew System | Extensive | Factions | Families | Gangs |
| Racing | Nitto | None | None | None |
| Security | 1/10 🔴 | 8/10 | 6/10 🟡 | 4/10 🟠 |
| Still Active | Dead | Active | Dead | Dead |
| Lines of Code | 14,367 | 500,000+ | ~20,000 | ~30,000 |
Street Gang's Unique Feature: Nitto Racing integration
---
Estimated Refactoring Time: 200-400 hours
---
Street Gang represents ambitious amateur game development with genuinely interesting features (extensive crew system, factory economy, Nitto racing) completely undermined by catastrophic security and deployment failures. The 20-file crew system shows real design thought, and the racing integration is unique. However, the exposed production credentials (a2a3a4a5a6) and absent database schema make this game fundamentally unusable.
Extensive Crew System - 20+ files for gangs/factories
Nitto Racing Integration - Unique cross-game economy
Multiple Shops - 10+ specialized stores
Rich Social Features - Mail, chat, follow/followers
Gang Warfare Theme - Crips, Bloods, Mafia factions
Feature Variety - 208 PHP files cover many systems
EXPOSED CREDENTIALS - Password a2a3a4a5a6 hardcoded
EMPTY DATABASE - 0-byte SQL file, cannot install
NO SQL ESCAPING - 207 out of 208 files vulnerable
XC-HOSTING DEAD - Platform defunct, no migration
PHP 7 INCOMPATIBLE - Uses removed mysql_* functions
NO DOCUMENTATION - Zero installation or usage docs
Final Rating: 3.5/10 ⭐⭐⭐½
DO NOT ATTEMPT TO USE in any form. The exposed credentials mean every installation of this game revealed the production database password to the world. The empty database file means reverse-engineering weeks of work. The lack of SQL escaping means every form is an attack vector.
However: Study the crew system architecture (20 files for factory management) as a good example of feature modularization. The factory → bank → wager economy is well-designed on paper.
Street Gang exemplifies the XC-Hosting era (2005-2010) when amateur developers could deploy browser games without understanding security. The extensive feature set shows real ambition, but the fundamentals (security, database, deployment) were completely neglected.
When XC-Hosting shut down, thousands of games like this vanished overnight - all that development effort lost because the platform died. Street Gang survives only as a cautionary tale: features don't matter if the foundation is broken.
Conclusion: 3.5 stars for ambition and features, but effectively a 0-star game in practice due to fundamental security and deployment failures. The exposed credentials alone disqualify it from any real use.
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.