반응형 IT/PowerShell5 [PowerShell] 정보보안 업무 관련 유용한 파워쉘 명령어 모음 파워쉘을 이용해 PC 보안을 점검 할 수 있는 유용한 스크립트입니다. 응용해서 사용한다면 보안 뿐만 아니라 다양한 환경에서 유용하게 사용할 수 있을 것 같습니다. 출처 : https://www.infosecmatter.com/powershell-commands-for-pentesters/#conclusion PowerShell Commands for Pentesters - InfosecMatter A collection of 25+ PowerShell commands for pentesters and red teamers - finding sensitive information, extracting credentials, privilege escalation, network scanning etc. ww.. 2021. 7. 8. [PowerShell] 유용한 파워쉘 스크립트 모음(Git) Github에 서버 관리자, 정보보안 관리자 등 모두에게 유용할 만한 파워쉘 스크립트 모음이 있습니다. Link : https://github.com/lazywinadmin/PowerShell lazywinadmin/PowerShell PowerShell functions and scripts (Azure, Active Directory, SCCM, SCSM, Exchange, O365, ...) - lazywinadmin/PowerShell github.com 이러한 오픈소스만 잘 사용해도 업무의 능률이 올라가며 코드를 보고 공부하는 것도 좋은 방법이라고 생각합니다. 설치 방법 위 링크에 접속 후 Code > Download ZIP 깃 허브 설치 후 명령어로 다운로드가 가능합니다. 2021. 2. 8. [PowerShell] Base64 인코더/디코더 스크립트 예제 스크립트 실행 정책 변경 파워쉘을 관리자 모드로 실행 후 Set-ExecutionPolicy RemoteSigned 명령어 입력 스크립트 코드 Write-Host "Select a Menu" Write-Host "1. Base64 encoding" Write-Host "2. Base64 decoding" $select = Read-Host "Input : " if($select -eq 1){ $Text = Read-Host "Input the Code" $Bytes = [System.Text.Encoding]::Unicode.GetBytes($Text) $EncodedText =[Convert]::ToBase64String($Bytes) $EncodedText } elseif($select -eq 2){.. 2021. 2. 8. [PowerShell] 스크립트 반복문(Loop) 정리 반복문 for loop Execute a sequence of statements multiple times and abbreviates the code that manages the loop variable. □ for 반복문 > $array = @("item1", "item2", "item3") > for($i = 0; $i -lt $array.length; $i++){ $array[$i] } item1 item2 item3 forEach loop Enhanced for loop. This is mainly used to traverse collection of elements including arrays. □ forEach 반복문 > $array = @("item1", "item2", "item3.. 2021. 2. 4. [PowerShell] Base64 Encoding & Decoding PowerShell provides an easy method for Base64 encoding and decoding. Encoding: $Text = ‘This is a secret and should be hidden’ $Bytes = [System.Text.Encoding]::Unicode.GetBytes($Text) $EncodedText =[Convert]::ToBase64String($Bytes) $EncodedText The result is this base64 encoded text: VABoAGkAcwAgAGkAcwAgAGEAIABzAGUAYwByAGUAdAAgAGEAbgBkACAAcwBoAG8AdQBsAGQAIABiAGUAIABoAGkAZABlAG4A Decoding: De.. 2021. 2. 4. 이전 1 다음 반응형