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
| #===================================================================== | |
| #CIS benchmark | |
| https://www.cisecurity.org/benchmark/fortinet | |
| #===================================================================== | |
| Packet flow ingress and egress: FortiGates without network processor offloading | |
| https://docs.fortinet.com/document/fortigate/6.4.0/parallel-path-processing-life-of-a-packet/86811/packet-flow-ingress-and-egress-fortigates-without-network-processor-offloading | |
| #===================================================================== | |
| CLI | |
| the control key sequences shown in the following table: |
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 version | |
| show os-version | |
| show system | |
| #===================================================================== | |
| #ChatGPT | |
| The output of the show version command on the Dell Networking Switch N1548P provides information about the machine description, system model, serial number, hardware version, and software versions. Here's an explanation of each field in the given output: | |
| Machine Description: Indicates that it is a Dell Networking Switch. |
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 | |
| #wpscan.sh scan wordpress websites in subdomains/URLs | |
| while read url; do | |
| echo "Scanning URL: $url" | |
| if curl --output /dev/null --silent --head --fail "$url"; then | |
| wpscan_output=$(wpscan --url "$url" | grep "WordPress version") | |
| if [ -z "$wpscan_output" ]; then | |
| echo "This $url does not run WordPress" |
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 sys status | |
| Get general information: firmware version, serial number, ADOMs enabled or not, time and time zone, general license status (Valid or not). | |
| get sys performance | |
| Detailed performance statistics: CPU load, memory usage, hard disk/flash disk used space and input/output (iostat) statistics. |
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
| variable "version" { | |
| type = string | |
| default = "" | |
| } | |
| locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") } | |
| source "vagrant" "autogenerated_1" { | |
| add_force = true | |
| communicator = "ssh" |
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
| ========================================================================================================== | |
| #Allow Recursive Queries ? | |
| https://www.dnsinspect.com | |
| ========================================================================================================== | |
| #ChatGPT | |
| Here's an example of how you can perform manual tests using nslookup from a client machine to verify that the DNS server denies recursive queries after disabling recursion and forwarders: | |
| Disable recursion and forwarders on the Windows Server 2016 Datacenter DNS server as mentioned previously. |
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
| ========================================================================================================== | |
| SPF Record Lookup | |
| DMARC Lookup | |
| https://mxtoolbox.com | |
| https://www.dnsinspect.com | |
| ========================================================================================================== | |
| #testing verification | |
| PHPMailer | |
| https://emkei.cz/ |
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
| ========================================================================================================== | |
| #Explain how to use SSL Certificate when connecting with RDP in Windows 11 | |
| Obtain an SSL Certificate: You can obtain an SSL certificate from a trusted certificate authority or generate a self-signed certificate. | |
| Install the SSL Certificate: Install the SSL certificate on the computer that is hosting the Remote Desktop Services (RDS) role. You can install the certificate using the Certificate snap-in in the Microsoft Management Console (MMC). | |
| Configure the Remote Desktop Session Host: You need to configure the Remote Desktop Session Host to use the SSL certificate for encryption. | |
| a. Open the Remote Desktop Session Host Configuration console by typing "tsconfig.msc" in the Run dialog box. |
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
| ------------------------------------------------------------------------------------------ | |
| #troubleshooting | |
| # service status all | |
| Policy server [ cpass-policy-server ] is running | |
| TACACS server [ cpass-tacacs-server ] is running | |
| Radius server [ cpass-radius-server ] is running | |
| Async DB write service [ cpass-dbwrite-server ] is running | |
| DB replication service [ cpass-replication ] is running | |
| DB change notification server [ cpass-dbcn-server ] is running |
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
| ============================================================================ | |
| #ChatGPT | |
| #Explain how dns enumeration is done. | |
| DNS enumeration is the process of discovering and gathering information about the DNS (Domain Name System) records associated with a specific domain name. This can be useful for various purposes, including reconnaissance, vulnerability assessment, and penetration testing. | |
| Here are the steps typically involved in DNS enumeration: | |
| Identify the target domain name: The first step is to identify the target domain name that you want to enumerate. This could be the domain name of a website, a company, or any other entity that has a public presence on the internet. |