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
| Get-WmiObject Win32_UserAccount | Select-Object Name,FullName,Disabled |
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
| @echo off | |
| pushd "%~dp0" | |
| dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt | |
| dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt | |
| for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
| pause |
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
| #https://www.cyberciti.biz/faq/how-to-remove-non-empty-directory-in-linux/ | |
| rm -rf directory |
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
| #https://www.darkoperator.com/blog/2014/8/8/sysinternals-sysmon | |
| #https://github.com/nshalabi/SysmonTools | |
| #https://github.com/SwiftOnSecurity/sysmon-config | |
| sysmon64.exe -i -h md5 -l -n | |
| wget https://raw.githubusercontent.com/SwiftOnSecurity/sysmon-config/master/sysmonconfig-export.xml -O sysmonconfig-export.xml | |
| sysmon64.exe -c sysmonconfig-export.xml | |
| Get-Service -Name sysmon64 | |
| wget https://github.com/nshalabi/SysmonTools/raw/master/SysmonView/64.zip -O 64.zip |
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
| netsh advfirewall firewall show rule name=all |select-string "Enabled:.*Yes" -Context 3,3 |
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
| #https://linuxize.com/post/how-get-size-of-file-directory-linux/ | |
| sudo du -sh cis |
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
| #https://superuser.com/questions/290682/recursive-download-of-subfolder-with-wget-no-parent-apparently-not-working | |
| wget -r -l1 --no-parent -nH "https://www.website.com/parent/directory/" |
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
| // https://www.educative.io/answers/how-to-escape-unescape-html-characters-in-string-in-javascript | |
| function escape(htmlStr) { | |
| return htmlStr.replace(/&/g, "&") | |
| .replace(/</g, "<") | |
| .replace(/>/g, ">") | |
| .replace(/"/g, """) | |
| .replace(/'/g, "'"); | |
| } |
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
| #https://www.bitsioinc.com/tutorials/install-splunk-linux/ | |
| #/opt/splunkforwarder/bin/splunk enable boot-start | |
| wget -O splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb "https://download.splunk.com/products/splunk/releases/9.0.1/linux/splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb" | |
| dpkg -i /home/go/Downloads/splunk-9.0.1-82c987350fde-linux-2.6-amd64.deb | |
| sudo /opt/splunk/bin/splunk enable boot-start --accept-license | |
| Do you agree with this license? [y/n]: y |
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
| #!/bin/bash | |
| git add . | |
| git commit -m "enhance" | |
| git push --force https://gellanyhassan0:[email protected]/gellanyhassan0/boilerplate-project-timestamp-1 |
NewerOlder