• XSS.stack #1 – первый литературный журнал от юзеров форума

[HELP] - Compile Time String Obfuscation

plexus

RAID-массив
Пользователь
Регистрация
15.08.2020
Сообщения
59
Реакции
62
#English:
Hello, I am currently attempting to obfuscate my strings which are embedded in my code. I've been reading up on this however I've found very little when it comes to hiding strings at compile time for C. My goal is to take something like:
Код:
#define string "test"
and have it be hidden from the text editor, I found a few libraries already from a google search: https://www.blackhat.com/docs/eu-14...amming-Applied-To-software-Obfuscation-wp.pdf
however many of these include to many dependencies or are C++ based. What single C headers do you use for this?

pointing me even in the right direction would be appreciated :)

#Russian:
Здравствуйте, В настоящее время я пытаюсь запутать свои строки, которые встроены в мой код. Я читал об этом, однако я нашел очень мало, когда дело доходит до скрытия строк во время компиляции для C. моя цель состоит в том, чтобы взять что-то вроде:
Код:
#define string "test"
и пусть он будет скрыт от текстового редактора, я уже нашел несколько библиотек из поиска google: https://www.blackhat.com/docs/eu-14...amming-Applied-To-software-Obfuscation-wp.pdf
однако многие из них относятся ко многим зависимостям или основаны на C++. Какие одиночные заголовки C вы используете?

было бы очень полезно указать мне даже правильное направление :)
 
Пожалуйста, обратите внимание, что пользователь заблокирован
You can't really do that well in C. C can only do metaprogramming with preprocessor and the preprocessor is limited to simple text transformations. It would be much better if you use external tool for that. For example you can take pycparser or libclang to parse C code to AST, traverse it and replace all strings with encrypted onces.
 
You can't really do that well in C. C can only do metaprogramming with preprocessor and the preprocessor is limited to simple text transformations. It would be much better if you use external tool for that. For example you can take pycparser or libclang to parse C code to AST, traverse it and replace all strings with encrypted onces.
Thank you I'll look into that :)
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх