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
| ------------------------------------------------------------------------------------------------ | |
| $ kind create cluster --config baeldungConfig.yaml #create the cluster using the configuration file | |
| kind create cluster --image kindest/node:v1.20.7 #provide a specific version of the Kubernetes image | |
| $ kubectl cluster-info --context kind-baeldung-kind | |
| kubectl cluster-info dump --context kind-baeldung-kind | |
| $ kind get clusters | |
| $ docker ps | |
| $ kubectl get nodes |
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
| ---------------------------------------------------------------------------------------------------- | |
| #how to update java windows 10 | |
| java control panel-update tab | |
| start menu-Type here to search-Environment Variables-System Variables | |
| C:\Program Files\Java\jdk-17.0.2 #Set the JAVA_HOME System Path | |
| %JAVA_HOME%\bin; #Confirm that the path to JAVA_HOME,Append the path to the JDK (up to the bin folder) as the PATH value | |
| ---------------------------------------------------------------------------------------------------- | |
| #Installing the JDK from the Command Line | |
| msiexec.exe /i installer.msi #Basic UI mode |
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
| ============================================================================ | |
| #Wireshark installation directory: windows | |
| C:\Program Files (x86)\Wireshark>tshark.exe | |
| ============================================================================ | |
| tshark -D #list of available interfaces | |
| ============================================================================ | |
| capture | |
| ============================================================================ | |
| tshark -i 2 #start capturing traffic on interface n°2 | |
| tshark -i 2 -a duration:10 #capture for 10 seconds, then stop |
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
| ------------------------------------------------------------------------------------------ | |
| sudo apt install cowsay | |
| cowsay <Text> | |
| echo "Hello" | cowsay | |
| cowsay -g <message> | |
| cowsay -e hh <hello> | |
| cowsay -l #List them with option -l | |
| cowsay -f <cowfile name> <message> |
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
| ------------------------------------------------------------------------------------------------------------------------------ | |
| #Windows | |
| run ZAP via the command line, you will need to locate the ZAP startup script. | |
| C:\Program Files (x86)\OWASP\Zed Attack Proxy\zap.bat | |
| ------------------------------------------------------------------------------------------------------------------------------ | |
| #MacOS | |
| run ZAP via the command line, you will need to locate the ZAP startup script. | |
| /Applications/OWASP\ ZAP.app/Contents/Java/zap.sh | |
| ------------------------------------------------------------------------------------------------------------------------------ |
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
| ----------------------------------------------------------------------------------------------------------------------- | |
| >show wlan summary | |
| >show wlan apgroups | |
| ----------------------------------------------------------------------------------------------------------------------- | |
| >show interface summary | |
| ----------------------------------------------------------------------------------------------------------------------- | |
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
| ---------------------------------------------------------------------------------------------------- | |
| tcpdump -s 0 #capture entire etherner header and IP packet | |
| tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets | |
| tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB) | |
| tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet | |
| tcpdump -X -vvv -n -i eth0 |
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
| ------------------------------------------------------------------------------------------ | |
| ------------------------------------------------------------------------------------------ | |
| AccessChk - Lets you see what type of access users and groups have to files, directories, registry keys, etc. | |
| AccessEnum - Full view of your file system and registry security settings. | |
| AdExplorer - Active Directory viewer and editor. | |
| AdInsight - LDAP real-time monitoring tool used to troubleshoot Active Directory applications. | |
| AdRestore - Ability to restore deleted Active Directory objects. | |
| Autologon - Easily configure autologon mechanism. | |
| Autoruns - Displays programs that are configured to run at startup. | |
| BgInfo - Displays relevant information about the computer on the desktop, such as computer name, IP address, etc. |
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
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| # PS : ChatGPT makes mistakes, consider "trust but verify" principle | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| #Events to Monitor | |
| https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/appendix-l--events-to-monitor | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| #run | |
| eventvwr.msc Event viewer | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| Event Viewer(Local)-Windows Logs (shutdown / restart ) |