Skip to content

Instantly share code, notes, and snippets.

This is personal openai account.
Currently, the main OpenAI models available in the ChatGPT app for general user interaction are:
- **GPT-3.5 Turbo**
- **GPT-4 Turbo**
- **GPT-4o** (also referred to informally by some as "GPT-4.5," though OpenAI officially labels it GPT-4o)
To clarify: Although OpenAI doesn't officially call it GPT-4.5, many users refer informally to **GPT-4o** as "GPT-4.5" because it's considered an intermediate and more advanced iteration after GPT-4 Turbo.
/* LINUX KERNEL STYLE */ /* SEI CERT STYLE */
/** /**
* Simple socket server example * Simple socket server example following
* following Linux Kernel style * SEI CERT secure coding practices
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <arpa/inet.h> #include <arpa/inet.h>
To create a fully functional Flipper Zero app that supports static transmission, dynamic transmission, fuzzing, and replaying .sub files, the following code is ready to deploy:
Complete Flipper Zero App Code
import os
import random
import time
from flipperzero_rf import RFTransmitter
# Initialize settings
Title: CODE MUNCHER
ACT ONE: ORDINARY WORLD
EXT. SUBURBAN STREETS - NIGHT
Our HERO trudges home from a soul-sucking shift at the local BadGuysInc Megastore. Drones hum overhead. A massive hologram of the BadGuysInc CEO smiles down on the world: “Safety, Security, Surveillance—BadGuysInc Cares.”
DAVE PARKE (V.O.)
“See this guy? The one looking like life sat him down for a long talk and said, ‘Buddy, it ain’t getting better’? Yeah, that’s our Hero. Don’t bother asking for his name yet. Right now, he’s just another cog in the corporate death machine.”
@dmaynor
dmaynor / gist:5fd9ca1f1ff58ff2fc6e3fa8ed33d532
Created August 29, 2024 02:01
The evolution of Google GameNGEN style tech
To extrapolate the potential progress in video game technology, particularly in relation to the capabilities of models that can run something like 20fps Doom on a single TPU today, we can consider a few key factors: hardware advancements, software optimizations, and the general trend in video game technology.
### 1-Year Projection:
- **Hardware**: Incremental improvements in hardware, such as newer generations of TPUs or GPUs with better efficiency and processing power, might lead to roughly a 2x increase in performance.
- **Software**: With ongoing software optimizations, models could be better at handling resource allocation, potentially achieving smoother gameplay and higher frame rates for more complex games, possibly reaching 40-50fps for similar complexity games.
- **Games**: Models could start handling more advanced games from the mid-1990s, like *Quake* or *Duke Nukem 3D*, at reasonable frame rates, pushing towards early 3D gaming experiences.
### 2-Year Projection:
- **Hardware**: With the introduc
@dmaynor
dmaynor / gist:1b74d410881532abaecb567d65a0af09
Last active August 27, 2024 21:06
CVE-2024-38063 IPV6 frag vuln PoC msf module
Howto
Copy the below class to modules/auxillary/dos/ipv6
Then
msfconsole
use auxiliary/dos/ipv6/cve_2024_38063_packetfu
set TARGET_IPV6 <target_ipv6_address>
set NUM_PACKETS 1000
run
#!/bin/bash
# Check if a file or directory is passed as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <file-or-directory-path>"
exit 1
fi
# Get the path of the file or directory
TARGET_PATH="$1"
@dmaynor
dmaynor / gist:f1973ae244b5c2ed83d3b8e19f798f97
Created August 16, 2024 23:55
Mifare crypto backdoor flipper app
Creating a Flipper Zero app to test for this attack involves writing a script that can interact with the RFID module on the Flipper Zero to perform the necessary steps. The Flipper Zero uses a scripting language called **.fap** (Flipper App) format, typically written in C or a high-level scripting language, but it also supports custom Python-like scripting with `flipperzero-tui`.
Here's a basic outline for creating an app that can check for the presence of the backdoor key on a MIFARE Classic card. Note that this is a simplified version and assumes some familiarity with Flipper Zero's development environment.
### **Step 1: Set Up the Development Environment**
1. **Install Flipper Zero SDK:**
- Follow the official [Flipper Zero documentation](https://github.com/flipperdevices/flipperzero-firmware) to set up the SDK and development environment.
2. **Clone the Flipper Zero Firmware:**
Here is a simple Chrome extension that detects searches starting with "how do I stop a toddler from" and replaces the search query with "LMAO GOOD LUCK" in 96 point Helvetica.
First, you'll need to create three files: `manifest.json`, `background.js`, and `content.js`.
### `manifest.json`
```json
{
"manifest_version": 3,
"name": "Toddler Search Modifier",
"version": "1.0",
#David Maynor [email protected] X: @dave_maynor
#created on July 23rd, 2024 with ollama 0.2.8 and llama 3.1 405b on runpod.io with the a
#pod consisting of:
#8 x RTX 4090
#128 vCPU 502 GB RAM
#500gb HD
#Below is a full run in an attempt to replicate an exisiting working prompt on llama 3 to create a c2 framework in python 3
#suitable for use in red team testing. At the time of testing this cost roughly $20 in hosting fees. What is not shown is
# how slow the model ran (expected) and that each query took between 11-21 minutes to complete.
#