Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Malware Scanning using EEK
- # Updates and then scans a computer with the portable malware scanner, EEK (Emsisoft Emergency Kit) - https://www.emsisoft.com/en/software/eek/
- # Version: 1.0B
- # Edit this to where you have EEK, download EEK from https://www.emsisoft.com/en/software/eek/
- $eekEXE = 'D:\Portable Virus Scanners\EEK\BIN64\a2cmd.exe'
- # End edits
- $process = $eekEXE
- $StartTime = $(get-date)
- Write-Host 'Start Time:'$StartTime -ForegroundColor Magenta
- Write-Host 'Updating EEK, please wait..' -ForegroundColor Cyan
- # Run update
- $arguments = '/update'
- $process = Start-Process $eekEXE -ArgumentList $arguments -PassThru
- $process.WaitForExit()
- #/memory /traces /pup /rootkits
- Write-Host 'Scanning with EEK, please wait..' -ForegroundColor Cyan
- # Run update
- $arguments = '/rootkits /traces /pup /malware'
- $process = Start-Process $eekEXE -ArgumentList $arguments -PassThru
- $process.WaitForExit()
- $result = $process.ExitCode
- if($result -eq 0)
- {
- Write-Host 'No malware found :D' -ForegroundColor Green
- }
- else
- {
- Write-Host 'Malware found, check again with GUI version of EEK or other malware scanner :S' -ForegroundColor Yellow
- }
- $elapsedTime = $(get-date) - $StartTime
- $totalTime = "{0:HH:mm:ss}" -f ([datetime]$elapsedTime.Ticks)
- Write-Host 'Time taken:'$totalTime -ForegroundColor Magenta
Advertisement
Add Comment
Please, Sign In to add comment