This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##### Credentials ##### | |
| Write-Host "[*] Get Credential..." | |
| $username = "USERNAME" | |
| $password = "PASSWORD" | |
| $secstr = New-Object -TypeName System.Security.SecureString | |
| $password.ToCharArray() | ForEach-Object { $secstr.AppendChar($_) } | |
| $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $secstr | |
| $IPs = @() # WSMAN 가능한 아이피 리스트 | |
| $myIP = (Get-NetIPAddress -AddressFamily IPV4 -InterfaceAlias Ethernet0).IPAddress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let obj1 = {} | |
| obj1.__proto__.attack = 'this object is polluted' | |
| console.log(obj1.attack) | |
| let obj2 = {} | |
| console.log(obj2.attack) |