Jump to content

Rubber Ducky Keylogger that emails the key log text file


Recommended Posts

Hi everyone, I made my own rubber ducky that runs scripts on windows. I found a keylogger script that runs a keylogger through PowerShell and saves the key logs in a file named keyloger.txt. I also found a PowerShell script that will send an email with the keylogger.txt as an attachment through PowerShell every few minutes or hours. However, when I try to run both scripts in two different PowerShell windows the script with the keylogger crashes because both scripts cant interact with the same file. Is there a work around for this at all? I am open to suggestions.

Link to comment
Share on other sites

Post USB Rubber Ducky related stuff in the USB Rubber Ducky section of the forums. But, what do you mean with "made my own rubber ducky"? Are you using a Hak5 USB Rubber Ducky or some "wannabe" thing? And, it's a lot easier to troubleshoot if getting insight in how the scripts look like. In this case, it would be good to see the PowerShell scripts along with the Ducky payload contents.

  • Upvote 1
Link to comment
Share on other sites

  • 11 months later...

Hello I recently purchased a rubber ducky and one of the power scripts that I want to add is a keylogger.I believe I tried all of the developed 

examples on the Hak5 site and I cant get by the Windows defender. I tried adding additional power scripts to shut down the defender prior to

the keylogger but it catches the code as dangerous virus and quarantines it. Can someone help me and show me the error of my ways.


Link to comment
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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...