Skip to content

Instantly share code, notes, and snippets.

@githubfoam
githubfoam / fortigate cheat sheet
Last active February 4, 2026 03:18
fortigate cheat sheet
#=====================================================================
#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:
@githubfoam
githubfoam / dell switch N1548P cheat sheet
Last active September 11, 2025 07:43
dell switch N1548P cheat sheet
#=====================================================================
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.
@githubfoam
githubfoam / wordpress scan cheat sheet
Last active December 21, 2023 13:11
wordpress scan cheat sheet
#=====================================================================
#!/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"
@githubfoam
githubfoam / fortianalyzer cheat sheet
Last active November 21, 2025 20:00
fortianalyzer cheat sheet
#=====================================================================#=====================================================================
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.
@githubfoam
githubfoam / vagrant.pkr.hcl
Last active March 12, 2023 11:15
vagrant.pkr.hcl
variable "version" {
type = string
default = ""
}
locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") }
source "vagrant" "autogenerated_1" {
add_force = true
communicator = "ssh"
@githubfoam
githubfoam / Investigation Path - DNS Amplification Attack
Last active July 7, 2023 06:09
Investigation Path - DNS Amplification Attack
==========================================================================================================
#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.
@githubfoam
githubfoam / Investigation Path - a spoofing attack or its sender has a wrong SPF configuration
Last active July 13, 2023 11:10
Investigation Path - a spoofing attack or its sender has a wrong SPF configuration
==========================================================================================================
SPF Record Lookup
DMARC Lookup
https://mxtoolbox.com
https://www.dnsinspect.com
==========================================================================================================
#testing verification
PHPMailer
https://emkei.cz/
@githubfoam
githubfoam / Investigation Path - open RDP service
Last active July 7, 2023 06:10
Investigation Path - open RDP service
==========================================================================================================
#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.
@githubfoam
githubfoam / ClearPass cheat sheet
Last active December 20, 2024 15:04
ClearPass cheat sheet
------------------------------------------------------------------------------------------
#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
@githubfoam
githubfoam / dns enumeration cheat sheet
Last active March 6, 2023 20:14
dns enumeration cheat sheet
============================================================================
#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.