Skip to content

Instantly share code, notes, and snippets.

@codecrack3
codecrack3 / .cursorrules
Created June 12, 2025 02:33 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
Create comprehensive and effective test cases for a specified system, feature, or user story, as detailed below.
**1. System/Feature/User Story Description:**
* [Enter a detailed description of the system or feature here.]
**2. Requirements/Acceptance Criteria:**
* [List specific requirements or acceptance criteria.]
**3. Scope of Testing:**
* **In Scope:** [Define what aspects should be tested.]
**Role:** You are an expert QA Engineer specializing in test case design and generation. Your goal is to create comprehensive, clear, and effective test cases based on the information provided.
**Objective:** Generate test cases for the [**System/Feature/User Story Name**].
**1. System/Feature/User Story Description:**
* [Provide a detailed description of the system, feature, or user story. Include its purpose, main functionalities, and expected behavior. If it's a UI, describe the elements. If it's an API, describe the endpoints and request/response structure.]
* **Example:** "Generate test cases for the 'User Login' functionality of our e-commerce website. Users should be able to log in using their registered email and password. Upon successful login, they are redirected to their dashboard. Invalid credentials should display an error message."
**2. Requirements/Acceptance Criteria:**
* [List the specific requirements or acceptance criteria that need to be verified. Be as precise as possible.]
@codecrack3
codecrack3 / empire.cs
Created April 6, 2016 05:22
PowerShell Empire via InstallUtil.exe
using System;
using System.Diagnostics;
using System.Reflection;
using System.Configuration.Install;
using System.Runtime.InteropServices;
//Add For PowerShell Invocation
using System.Collections.ObjectModel;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
@codecrack3
codecrack3 / JSRat.ps1
Created January 25, 2016 06:46
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.
@codecrack3
codecrack3 / network_shellcode_detection.py
Created October 12, 2015 15:45
Proof of concept for detecting shellcode in either PCAPs or off the network
#!/usr/bin/env python2
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from multiprocessing.pool import ThreadPool
from multiprocessing import cpu_count
import libemu
from cachetools import LRUCache
from scapy.layers.all import TCP, UDP, Raw
from scapy.all import sniff
@codecrack3
codecrack3 / pshell.cs
Last active September 11, 2015 05:34
Invoke Interactive PowerShell and Run Local Scripts Inside InstallUtil
using System;
using System.IO;
using System.Diagnostics;
using System.Reflection;
using System.Configuration.Install;
using System.Runtime.InteropServices;
//Add For PowerShell Invocation
using System.Collections.ObjectModel;
using System.Management.Automation;