This forum is in archive mode. You will not be able to post new content.

Author Topic: Logic bomb  (Read 3060 times)

0 Members and 1 Guest are viewing this topic.

Offline Wolf

  • Knight
  • **
  • Posts: 224
  • Cookies: 23
  • Fear makes the wolf larger than he really is.
    • View Profile
Logic bomb
« on: April 05, 2012, 07:00:16 AM »
Any one know anything about logic bombs? Ebooks, source code, all info is welcome.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Logic bomb
« Reply #1 on: April 05, 2012, 09:14:46 AM »
Well if we're talking about viruses.... there's not much to tell about it.
http://en.wikipedia.org/wiki/Logic_bomb

Offline Wolf

  • Knight
  • **
  • Posts: 224
  • Cookies: 23
  • Fear makes the wolf larger than he really is.
    • View Profile
Re: Logic bomb
« Reply #2 on: April 05, 2012, 01:52:47 PM »
I was just thinking about another coding project, it seems simple enough but I wanted more info. More interested in the destroying information part, or the "Slag code"

Offline cat_vs_mouse

  • /dev/null
  • *
  • Posts: 17
  • Cookies: 0
  • Learning Ruby (and loving it :D)
    • View Profile
Re: Logic bomb
« Reply #3 on: April 05, 2012, 04:17:42 PM »
I know it's near impossible to make a virus in python but here's a good link on how to make your code run at a certain time:
Code: [Select]
http://docs.python.org/library/sched.html
If you could integrate that module with running an external program. If you don't already know how then look here:
Code: [Select]
http://docs.python.org/library/os.html#os-process

You could make the sched module run a C++, C etc... program at a certain time.


The only problem is getting them to run the python file but you could make it install to the "startup" folder (on Windows) if you made a trojan.


Hope this helps!  :D
cat_vs_mouse - Thanks for reading!

Quote from: techb
Humpty Dumpty sat on a wall.
Humpty Dumpty had a great fall.
All the kings horses and all the kings men said, "Fuck him, he's just an egg."

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Logic bomb
« Reply #4 on: April 05, 2012, 05:06:51 PM »
Some logic (time) bombs back in the day used Windows scheduler to run them. Most, if not all, regular users don't even know what that is and this feature on WinXP is kinda hidden, so the viruses would make an entry there and exit. When the time comes windows itself executes the virus...

http://support.microsoft.com/kb/308569
« Last Edit: April 05, 2012, 05:07:11 PM by Kulverstukas »

V0R73X

  • Guest
Re: Logic bomb
« Reply #5 on: April 08, 2012, 08:01:13 AM »
yeah the concept is not complex enough to need an EBook.


As far as I know, you can use the function below in C to get the current time/date:
Code: [Select]
string timeNow(){
   time_t now;
   time(&now);
   return ctime(&now);
}

So what you have to do is to start a new thread and use this function for getting the time and comparing it to your desired time. You may parse it to get the date only if you're not concerned about the time. When the condition is true, the you may active the bomb.

Also also also the "at" command schedules actions in windows OS, so if you have access to the victim's shell you can just use this command to schedule your logic bomb. However, I personally haven't worked with this so you gotta use google for more info.
« Last Edit: April 08, 2012, 08:01:46 AM by V0R73X »

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.