Author Topic: Power Shell OMFG  (Read 1831 times)

0 Members and 1 Guest are viewing this topic.

Offline bubzuru

  • Knight
  • **
  • Posts: 395
  • Cookies: 21
  • everything is contained in the data
    • View Profile
    • New School Tools
Damm it feels good to be gangsta
http://bubzuru.comule.com

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: Power Shell OMFG
« Reply #1 on: November 01, 2011, 07:56:52 pm »
I'm not sure about the "Set-ExecutionPolicy" thing not meant for security. In the security section of his book, Bruce Payette(Co-Designer of powershell) goes on about a virus and a worm written in powershell, and then a method to counter it:

Quote
13.3.1 No execution of scripts by default

PowerShell is installed in such a way that it won’t run scripts by default. It can only be
used as an interactive command interpreter.
Before scripts can be run, the user has to take explicit action to change the execution
policy for PowerShell to allow script execution. In the default configuration, the
only way to execute code is if the user manually starts PowerShell and types commands
in at the prompt.
This is covered in detail in the section 13.3.3.
So PowerShell is secure by default because it doesn’t do much of anything. Now
let’s see how to make it useful by enabling script execution. But first, we’ll cover a
somewhat more mundane topic. PowerShell uses the PATH environment variable to
find commands. This has some security implications, so we’ll review those first before
we talk abut how to enable scripting.

Worth a read(Windows PowerShell In Action[6.83MB]):
  http://www.mediafire.com/?0arx0z08gaya5f3


Offline _ANONYMOUS_

  • Serf
  • *
  • Posts: 24
  • Cookies: 0
  • I Prefer To Remain Anonymous
    • View Profile
Re: Power Shell OMFG
« Reply #2 on: December 15, 2011, 03:11:20 pm »
The link doesnt work for me im not sure if its the same for everyone
The only reason people get lost in thought is because it's unfamiliar territory

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: Power Shell OMFG
« Reply #3 on: December 15, 2011, 04:12:09 pm »
The link doesnt work for me im not sure if its the same for everyone
Does work for me ;),   
~Factionwars