Jump to content
Sign in to follow this  
idi

Timing attacks based on clock

Recommended Posts

Dear community,

I couldn't find an answer that is timing attacks based on computer clock possible. I would like to insert the ducky and have it run a script at a certain time. Let's say 12:00, would that be possible without creating creating a scheduled task? 

The reasoning behind this is that we have this pwning competition at the office and if I insert the ducky to my coworkers display, I want it to run only when the user is logged in, with a certain time I can make sure that he is on his computer.

All help appreciated.

Share this post


Link to post
Share on other sites
7 minutes ago, idi said:

would that be possible without creating creating a scheduled task? 

not really a timer but lots and lots of delays in the script might get you as long as you need.

Share this post


Link to post
Share on other sites

If you can run a c script

#if defined(__linux) || defined(__linux__) || defined(linux)
 #include <unistd.h>
#elif defined(_WIN32) || defined(WIN32) || defined(WINDOWS)
 #include <windows.h>
#endif

#include <stdio.h>
#include <time.h>

int main(int argc, char *argv){
  time_t t;
  do{
    t = time(NULL);
#if defined(__linux) || defined(__linux__) || defined(linux)
    sleep(1);
#elif defined(_WIN32) || defined(WIN32) || defined(WINDOWS)
    Sleep(1000);
#endif
  }while (t < 0x5c4c02e3); // <-- this is the timestamp of when youo want it to run
  printf("0x%lx\n", t); //replace this with what you want to run
  return 0;
}

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...