- cdecl
- fastcall
- stdcall
cdecl stands for "C declaration", it is used by most c compiler in the x86 architecture.
A list of scripts for my Steam Deck that I want to always run as root.
This README describes the files necessary to set up always-sudo scripts. Any other file in this gist is one of the scripts.
Makes /bin/sudo /root/ALWAYS_SUDO_SCRIPTS/run
work for the deck
user, without a password prompt.
This allows that specific "executable" file (bash script) to be run as root without a password prompt.
#!/bin/bash | |
#------------------------------------------------------------------ | |
# FINAL FANTASY XIV - A Realm Reborn Makeshift Patcher | |
# Applies locally stored patches to the game. Requires you to | |
# install the base game from a physical disk. | |
#------------------------------------------------------------------ | |
# --- Configuration ------------------------------------------------- | |
# Directory containing the XIVLauncher.PatchInstaller.exe |
// Author: Sean Pesce | |
// | |
// Manual implementations of the CONCAT operations produced by the Ghidra decompiler. | |
// These definitions are helpful for compiling re-implementations of native code using | |
// decompiler output (e.g., with gcc). | |
// | |
// Note that these implementations would be outperformed by minimal C preprocessor macros | |
// that replicate the same logic. | |
This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.
Run py.exe portable-msvc.py
and it will download output into msvc
folder. By default it will download latest available MSVC & Windows SDK - currently v14.40.33807 and v10.0.26100.0.
You can list available versions with py.exe portable-msvc.py --show-versions
and then pass versions you want with --msvc-version
and --sdk-version
arguments.
To use cl.exe/link.exe first run setup_TARGET.bat
- after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.
To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc
argument (msvc is folder name where output is stored).
# Script author: Matt Graeber (@mattifestation) | |
# logman start AMSITrace -p Microsoft-Antimalware-Scan-Interface Event1 -o AMSITrace.etl -ets | |
# Do your malicious things here that would be logged by AMSI | |
# logman stop AMSITrace -ets | |
$OSArchProperty = Get-CimInstance -ClassName Win32_OperatingSystem -Property OSArchitecture | |
$OSArch = $OSArchProperty.OSArchitecture | |
$OSPointerSize = 32 | |
if ($OSArch -eq '64-bit') { $OSPointerSize = 64 } |
In computer programming, an opaque predicate is a predicate—an expression that evaluates to either "true" or "false"—for which the outcome is known by the programmer a priori, but which, for a variety of reasons, still needs to be evaluated at run time
Opaque predicates appears to have been first used by Christian Collberg & Clark Thomborson back in 1997 source. The technique is discussed in their paper A Taxonomy of Obfuscating Transformations.
// adder.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <iostream> | |
#include <cstdint> | |
#include <intrin.h> | |
//#include <mmintrin.h> | |
//#include <emmintrin.h> | |
uint64_t add(uint64_t a, uint64_t b) |
This process will allow you to create a shortcut on your desktop that will enable automatic entry of your OTP code into FFXIV without having to open up the authenticator each time you log in.
It uses FFXIV QuickLauncher for doing its work.