-2

Can powershell be used to run scripts on remote PC’s like i am sitting in my house and i want to run scripts on a facebook server ,is that possible (if facebook server is using windows )?

Question 2) Is is possible to have a Server Side Attack using PowerShell ? Or only client side attack is only possible?

nd510
  • 1,738
  • 1
  • 10
  • 15
  • You can run scripts on remote PC's that you have access to.. – bigC5012 Apr 27 '17 at 18:26
  • By access to , you mean acess to the Powershell of remote pc(here facebook server)?and how can i get the access ,using server side includes or what ?? – ErrorrrDetector Apr 27 '17 at 18:28
  • Meaning you can run remote powershell on machines on your network. Opening powershell to the internet opens your servers up to too much risk. Therefore without access to Facebook's network you cannot run Powershell commands on their servers. – bigC5012 Apr 27 '17 at 18:46

2 Answers2

3

Yes, it is possible to run Powershell on a remote machine. The technology is called Powershell Remoting (https://technet.microsoft.com/en-us/library/ff700227.aspx)

Powershell will run on any system that supports it, client or server (Only Windows, that I'm aware of). To get access to a server, you would need to make sure you have firewall access to that server, Powershell would need to be installed, and the permissions in the Powershell environment would need to allow for remote scripts to be run (via the Set-ExecutionPolicy commandlet). The safest way would be to use the "RemoteSigned" execution policy.

Dan Landberg
  • 3,312
  • 12
  • 17
  • 1
    I did answer question 2. The question was is it possible to execute Powershell on a server, and the answer is yes, provided it is installed. . – Dan Landberg Apr 28 '17 at 14:13
1

Yes, it is possible to run POWERSHELL on a remote machine.

The same can be achieved using PowerShell Remoting

PowerShell will run on any system(Windows as OS) . If you want to run code on a server, you need to have firewall access to that server,otherwise your connection will be blocked , Powershell would need to be installed/pre-installed on that computer/server/machine, and the permissions in the Powershell environment would need to allow for remote scripts to be run . Using Command Execution Vulnerability it can be exploited .

Seek_hElp
  • 48
  • 1
  • 5