powershell for hackers #001

preview_player
Показать описание
#shorts #short #cybersecurity #hacker #linux #powershellscripting #cmd
The content in this video is for educational purposes only. We do not promote or condone any illegal activity or hacking without the expressed
written consent of the target. Any actions taken by viewers based on the content of this video is solely at their own risk and we will not be held
liable for any damages or legal consequences that may arise.
Tip 1: Using Variables in powershell, to declare a variable in powershell,you start with the $ symbol and the variable name, for example hello and = to a string value like hello world, hit enter, and then to see it's content you can just type the dolar symbol with the variable name which is hello in our case, hit enter, you get hello world, or you can use the write-host cmdlet, type write-host and the the variable , hit enter , we get hello world again.
Code:
$Hello = "Hello, World!"
Write-Host $variable
Explanation:
Variables in PowerShell are declared using the $ symbol followed by the variable name.
The value of a variable is assigned using the = operator.
The Write-Host cmdlet is used to display the value of the variable in the console.
Рекомендации по теме