Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hay ,


How to write a logic bomb using VBScript ??

Only for education purposes .

Thanks !! :doh: :doh: :doh:
Posted
Comments
Sandeep Mewara 28-Jan-11 13:59pm    
Whats 'logic bomb'?
Nish Nishant 28-Jan-11 14:15pm    
Sandeep, aren't you the guy who always tell people to use Google? *grin*
Sandeep Mewara 28-Jan-11 14:25pm    
*always*? :))

Based on the word, I just wanted to listen, what is it.. 'logic bomb' .. an instant comment!

BTW, do you really think, I wouldn't have Googled it already? *grin*
Nish Nishant 28-Jan-11 14:29pm    
I am stunned to hear that you googled it *grin*
Sandeep Mewara 28-Jan-11 14:32pm    
Is it? Is that so obvious or common that I should have been knowing from before? You stunned? *shocked*

Insert this line at the top of the script:

VB
If Date = CDate("3/28/2011") Then MsgBox "Hey, fooled ya!"


Now anyone running it on March 28, 2011 will see that nefarious message. On all other days this ingenious logic bomb will remain absolutely clandestine.
 
Share this answer
 
Comments
Yusuf 28-Jan-11 16:09pm    
Sir, thx d code good. sir, how i install on my frind computer. :-)

BTW: VG +5
CPallini 28-Jan-11 17:41pm    
Sir, you shound't unveil hacker's sacred secrets!
ROTFL - well, we're not going to tell you how to write anything malicious.
 
Share this answer
 
This will bomb and it's really easy to do...
public void GoBoom()
 {
     decimal x = 1.0M;
     decimal y = 0M;
     decimal z = x / y;
 }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900