This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import urllib.request | |
import urllib.error | |
import sys | |
import yaml | |
def generate(prefix, model_id, endpoint, api_key): | |
return { | |
"model_name": f"{prefix}/{model_id}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import tornado.ioloop | |
import tornado.web | |
import time | |
import asyncio | |
import logging | |
import requests | |
g_ioloop = None | |
g_server = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$#" -gt 0 ]; then | |
xattr -c "$1" | |
fi | |
open -a "Binary Ninja" "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FEATURE=$(git branch --show-current) | |
if git show-ref --quiet refs/remotes/origin/main; then | |
MAIN=main | |
elif git show-ref --quiet refs/remotes/origin/master; then | |
MAIN=master | |
else | |
echo "No main branch found" >&2 | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
extern void mylib_test(); | |
int main() | |
{ | |
puts("Hello, world!"); | |
// NOTE: Your project must use at least one symbol from the static library | |
mylib_test(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pefile | |
import icicle | |
# Section flags | |
IMAGE_SCN_MEM_SHARED = 0x10000000 | |
IMAGE_SCN_MEM_EXECUTE = 0x20000000 | |
IMAGE_SCN_MEM_READ = 0x40000000 | |
IMAGE_SCN_MEM_WRITE = 0x80000000 | |
class PEmulator: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import pyautogui | |
if __name__ == "__main__": | |
while True: | |
x, y = pyautogui.position() | |
h = 400 | |
count = 0 | |
print("testing...") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <intrin.h> | |
typedef void (*RtlUserThreadStart_t)(PTHREAD_START_ROUTINE fpTransferAddress, PVOID pContext); | |
static RtlUserThreadStart_t original_RtlUserThreadStart; | |
static void hook_RtlUserThreadStart(PTHREAD_START_ROUTINE fpTransferAddress, PVOID pContext) | |
{ | |
MessageBoxA(0, "!Entry point hijacked", "Success", MB_SYSTEMMODAL | MB_RTLREADING); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<bzexclusions> | |
<!-- Editable Exclusions: You may edit this file. WARNING: ONLY FOR ADVANCED USERS! --> | |
<!-- To restore the defaults, remove this file (it will return).--> | |
<!-- --> | |
<!-- Rule 1: All the excludefname_rule below are case insensitive. --> | |
<!-- --> | |
<!-- Rule 2: a file must match ALL criteria on the line to be excluded from backup. --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Emulate IDA's xref window | |
//@author Duncan Ogilvie | |
//@category Analysis | |
//@keybinding X | |
//@menupath Navigation.IDA References | |
//@toolbar | |
// Reference: https://www.reddit.com/r/ghidra/comments/h07yoo/comment/fukuj1c | |
import ghidra.app.cmd.data.CreateArrayCmd; | |
import ghidra.app.decompiler.ClangFuncNameToken; |
NewerOlder