/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
WindowsClient/RandomPadding.cpp
24 строки
707 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// We moved to non-ASLR at some point to get consistent hashes. // Exploiters quickly moved to hardcoding fixed addresses each week. // This is only here to move the code around a little bit each week. #include "stdafx.h" #include "Security/RandomConstant.h" #include "Security/JunkCode.h" template <int N> __forceinline void useless() { junk<(N*(RBX_BUILDSEED%16) + __LINE__*N*(RBX_BUILDSEED%15) + N*N) % 17>(); useless<N-1>(); useless<N-1>(); } template<> __forceinline void useless<0>() {} // VS2012 really doesn't get why a function that is unused should exist. extern "C" { #pragma comment (linker, "/export:_unusedPadding") void unusedPadding() { useless<9>(); } };