This file contains 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
export COLOR_OPTIONS='--color=auto' | |
eval "$(dircolors)" | |
alias ls='ls $COLOR_OPTIONS' | |
alias ll='ls $COLOR_OPTIONS -l' | |
alias l='ls $COLOR_OPTIONS -lA' | |
alias ip='ip $COLOR_OPTIONS' | |
alias tshark='tshark --color' | |
alias dir='dir $COLOR_OPTIONS' |
This file contains 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
public class BukkitReflection { | |
public static ServerPlayer getServerPlayer(Player p) { | |
var m = Reflection.getMethodCached("{obc}.entity.CraftPlayer", "getHandle"); | |
return invoke(m, p); | |
} | |
private static <T> T invoke(java.lang.reflect.Method m, Object instance, Object... args) { | |
try { | |
return (T) m.invoke(instance, args); | |
} catch (Exception e) { | |
throw new RuntimeException(e); |
This file contains 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 "Printer.h" | |
#include <cwchar> | |
#define ATTR(attribute) case attribute: \ | |
wcscpy_s(name, L#attribute); \ | |
break | |
namespace Printer |
This file contains 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
int main() { | |
const wchar_t* names[] = { | |
SE_UNSOLICITED_INPUT_NAME, | |
SE_CREATE_TOKEN_NAME, | |
SE_ASSIGNPRIMARYTOKEN_NAME, | |
SE_LOCK_MEMORY_NAME, | |
SE_INCREASE_QUOTA_NAME, | |
SE_MACHINE_ACCOUNT_NAME, | |
SE_TCB_NAME, | |
SE_SECURITY_NAME, |
This file contains 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 "SecurityDescriptor.h" | |
#include <cstdarg> | |
#define va_copy(a,b) (a = b) | |
bool SecurityDescriptor::Create(int count,...) | |
{ | |
va_list list, list2; | |
va_start(list, count); | |
va_copy(list2, list); | |
SecurityDesc = (PSECURITY_DESCRIPTOR)ExAllocatePoolWithTag(PagedPool, sizeof(SECURITY_DESCRIPTOR), ' SeX'); | |
size = sizeof(ACL); |
This file contains 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
#define NtGetCurrentProcess() (HANDLE)-1 | |
#define NtGetCurrentThread() (HANDLE)-2 | |
#ifdef _WIN64 | |
#define NtGetPeb() (PPEB)__readgsqword(0x60) | |
#define NtGetTeb() (PTEB)__readgsqword(0x30) | |
#define NtGetPid() (uint32_t)__readgsqword(0x40) /* GetCurrentProcessId() */ | |
#define NtGetTid() (uint32_t)__readgsqword(0x48) /* GetCurrentThreadId() */ | |
#define NtGetErr() (uint32_t)__readgsqword(0x68) /* GetLastError()*/ | |
#define _NtGetSeh() (void**)__readgsqword(0x00) | |
#define _NtGetStackHigh() (void**)__readgsqword(0x08) |
This file contains 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
Open developer console (simply press CTRL + SHIFT + I on Windows, or COMMAND + SHIFT + I on Mac (at the same time)). | |
Then paste this into console: | |
``` | |
Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}},[['']]]).cache).find(m=>m.exports&&m.exports.default&&m.exports.default.getCurrentUser!==void 0).exports.default.getCurrentUser().flags|=1 | |
``` | |
Done! You now have access to custom status! | |
One note, you can't use global emojis sadly :( |
This file contains 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
bool IsASILoaderPresent() // now it can detect xlive, but possibly broken, can't test | |
{ | |
HMODULE handle = nullptr; | |
FARPROC pos = 0; | |
const char* names[16][2] = { | |
{"d3d9.dll","D3DPERF_BeginEvent"}, | |
{"d3d11.dll","D3D11CoreCreateDevice"}, | |
{"dsound.dll","DirectSoundCaptureCreate"}, | |
{"d3d8.dll","Direct3DCreate8"}, | |
{"ddraw.dll","DirectDrawCreate"}, |
This file contains 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
public static class PebWalker | |
{ | |
public static IntPtr GetPeb() | |
{ | |
IntPtr handle = OpenProcess(0x1040, false, Process.GetCurrentProcess().Id); | |
if (handle == IntPtr.Zero) throw new Win32Exception(Marshal.GetLastWin32Error()); | |
int hr; | |
if (IntPtr.Size != 8) | |
{ | |
IntPtr peb32 = new IntPtr(); |
NewerOlder