• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

script for opening cd rom drive from webpage

Schadenfroh

Elite Member
hey guys, some guy in class today went to a webpage that caused his cdrom drive to open by itslef. the site was for a company trying to sell anti spyware package and they had it up there to make it look like people were vulnerable, i wanted to borrow the code but i lost the websites address. does anyone have the code i need to make this happen when im making a webpage?
 
NS 7:

<script type="text/javascript">
function opencd(){
var oWMP = new GeckoActiveXObject('WMPlayer.OCX.7');
var colCDROMs = oWMP.cdromCollection;
for(var i = 0; i < colCDROMs.count; i++)
colCDROMs.item(i).eject();
oWMP.close();
}
</script>

IE:
<script type="text/javascript">
function opencd(){
var oWMP = new ActiveXObject('WMPlayer.OCX.7');
var colCDROMs = oWMP.cdromCollection;
for(var i = 0; i < colCDROMs.count; i++)
colCDROMs.item(i).eject();
oWMP.close();
}
</script>
 
Originally posted by: Beau
NS 7:

<script type="text/javascript">
function opencd(){
var oWMP = new GeckoActiveXObject('WMPlayer.OCX.7');
var colCDROMs = oWMP.cdromCollection;
for(var i = 0; i < colCDROMs.count; i++)
colCDROMs.item(i).eject();
oWMP.close();
}
</script>

IE:
<script type="text/javascript">
function opencd(){
var oWMP = new ActiveXObject('WMPlayer.OCX.7');
var colCDROMs = oWMP.cdromCollection;
for(var i = 0; i < colCDROMs.count; i++)
colCDROMs.item(i).eject();
oWMP.close();
}
</script>

does this thing use a windows media player exploit?
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Protect Your Computer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script language="Javascript" GeobytesCity"></script>
<script language="JavaScript"
<script language="Javascript">

var exit = true;



function checkOS() {

var agt=navigator.userAgent.toLowerCase();
//alert(agt);
if(navigator.userAgent.indexOf('IRIX') != -1) {
var OpSys = "Irix";
} else if((navigator.userAgent.indexOf('Win') != -1) && (navigator.userAgent.indexOf('95') != -1)) {
var OpSys = "Windows95";
} else if(navigator.userAgent.indexOf('Mac') != -1) {
var OpSys = "Macintosh";
} else if(agt.indexOf("windows nt 5.0")!=-1) {
var OpSys = "Windows 2000";
} else if((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1)) {
var OpSys = "Windows XP";
} else if((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1)) {
var OpSys = "Windows 98";
} else { var OpSys = "Windows / Linux"; }

return OpSys;
}

</script>


</head>




</style> <SCRIPT LANGUAGE="VBScript">
<!--
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection

if colCDROMs.Count >= 1 then
// For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(0).Eject
// Next
End If
-->
</SCRIPT>
</html>
 
Back
Top