Skip to content

Instantly share code, notes, and snippets.

@githubfoam
githubfoam / AsyncRAT malware analysis walkthrough
Last active July 7, 2023 06:12
AsyncRAT malware analysis walkthrough
============================================================================
#ChatGPT
act as a forensics analyzer and run AsyncRAT malware analysis walkthrough.
As a language model, I am not capable of running any software on a computer. However, I can guide you through a typical AsyncRAT malware analysis walkthrough to help you understand the steps involved in the process.
Step 1: Obtain the Sample
The first step in malware analysis is obtaining the sample. In this case, we assume that you have obtained a sample of AsyncRAT malware.
@githubfoam
githubfoam / librensm_experience
Last active October 13, 2025 12:05
librensm_experience
#=====================================================================
Problem
You created a Custom SQL-based alert rule in LibreNMS:
SELECT devices.*, COUNT(ipv4_mac.ipv4_address) AS arp_count
FROM devices
JOIN ipv4_mac ON devices.device_id = ipv4_mac.device_id
GROUP BY devices.device_id
@githubfoam
githubfoam / Investigation Path - Reflected XSS Moodle
Last active December 11, 2023 06:18
Investigation Path - Reflected XSS Moodle
==========================================================================================================
#Bard
CVE-2021-32478 is a cross-site scripting (XSS) vulnerability in the Moodle LTI Authorization Endpoint. This vulnerability can be exploited by an attacker to inject malicious JavaScript code into the Moodle platform, which could be used to steal user credentials, redirect users to phishing websites, or take control of their accounts.
The MITRE ATT&CK framework is a globally recognized knowledge base of adversary tactics and techniques, providing a common language for describing and understanding the behavior of adversaries. By mapping vulnerabilities and exploits to the MITRE ATT&CK framework, organizations can gain a deeper understanding of the potential impact of attacks and prioritize their security efforts.
==========================================================================================================
Versions affected: 3.10 to 3.10.3, 3.9 to 3.9.6, 3.8 to 3.8.8 and earlier unsupp
@githubfoam
githubfoam / windows products cheat sheet
Last active June 2, 2023 07:44
windows products cheat sheet
==========================================================================================================
#Find Windows 11 specs, features, and computer requirements
https://www.microsoft.com/en-us/windows/windows-11-specifications
==========================================================================================================
#ChatGPT
Here's an explanation of the differences between various editions of Windows 11:
Windows 11 Education:
Windows 11 Education is specifically designed for educational institutions. It includes all the core features and functionalities of Windows 11, providing a comprehensive and secure computing environment for educational purposes.
@githubfoam
githubfoam / vesta panel cheat sheet
Last active December 22, 2023 10:37
vesta panel cheat sheet
#=====================================================================
http://vestacp.com/install/
http://vestacp.com/docs/#how-to-point-subdomain-to-dir
http://vestacp.com/pub/vst-install.sh
http://vestacp.com/pub/vst-install-debian.sh #manually "typed"
#=====================================================================
#list domains for a specific user
# Define the Vesta admin user
VESTA_USER1="admin"
@githubfoam
githubfoam / fortigate - deep inspection cheat sheet
Last active January 23, 2025 01:24
fortigate - deep inspection cheat sheet
---------------------------------------------------------------------------------------------------------------------------
#exempting websites from deep inspection like github.com etc
method
#create group
Security Profiles > SSL/SSH Inspection > Profile1 > Addresses > + > Wildcard FQDN Group
#create members
Security Profiles > SSL/SSH Inspection > Profile1 > Addresses > + > Wildcard "*.github.com
@githubfoam
githubfoam / windows defender firewall cheat sheet
Last active July 23, 2024 05:42
windows defender firewall cheat sheet
==========================================================================================================
Firewall.cpl Windows Firewall
WF.msc Windows Firewall with Advanced Security
==========================================================================================================
#Bard
This command will return a table with the profile name, the status of the Windows Defender Firewall for the profile, and the name of the profile
Get-NetFirewallProfile | Select-Object -Property ProfileName, Enabled, Name
If you want to check the status of the Windows Defender Firewall for a specific profile
@githubfoam
githubfoam / windows WSUS cheat sheet
Created March 21, 2023 12:38
windows WSUS cheat sheet
==========================================================================================================
#ChatGPT
WSUS (Windows Server Update Services) is a tool provided by Microsoft that allows system administrators to manage and distribute updates for Windows operating systems and other Microsoft products in a centralized manner.
With WSUS, administrators can approve, decline, and schedule updates for deployment to client computers in their organization. WSUS also provides reports on the status of updates, allowing administrators to monitor which updates have been installed and which ones are still pending.
WSUS works by synchronizing with Microsoft Update servers to obtain the latest updates and then making those updates available to client computers on the network. Clients can be configured to download updates directly from WSUS or through a proxy server.
By using WSUS, administrators can control which updates are deployed to client computers, ensuring that updates are tested and approved before be
@githubfoam
githubfoam / windows ADBA KMS cheat sheet
Last active August 8, 2024 06:17
windows ADBA KMS cheat sheet
==========================================================================================================
#Slmgr.vbs Options for Volume Activation
Attempting to manage an older system from Windows 7 or Windows Server 2008 R2 will generate a specific version mismatch error
==========================================================================================================
#ChatGPT
Explain Key Management Server in windows.
A Key Management Server (KMS) is a feature in Microsoft Windows that allows organizations to activate volume licensed versions of Windows and Office products within their network environment without the need for individual activation keys for each computer.
@githubfoam
githubfoam / powershell script cheat sheet
Last active March 23, 2026 03:33
powershell script cheat sheet
==========================================================================================================
#Gemini
==========================================================================================================
#ChatGPT
==========================================================================================================
#Gemini
Ensuring PowerShell DSC and Chocolatey are Installed
PowerShell DSC is a feature of PowerShell. If you have PowerShell installed on your Windows 10 system, DSC is likely already available.