Skip to content

molendus1001/JunkGeneratorPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JunkGeneratorPHP

Server Sided C/C++ Junk Code Generator
Written in PHP with some simple html&css additions for easier use
All you need to get it running is just clone main/index.php onto your PHP instance
Only single file is required to get this running - so it's very "plug-and-play"
Very quick to use, just open generation page and simply CTRL+A, CTRL+C, CTRL+V
I kept comments and syntax in simple manner, so maybe this project will help someone understand basics of PHP
Feel Free to Pull updates and ideas to expand my project

Generated code (Example generated junkcode in example folder):

1. Will never execute - Uses 0% Of CPU
2. Don't require to disable linker optimization (Can be used in real functions without affecting performance)
3. Gives 1:1 Size results (Strings are not compressed by compilers, so 1MB JunkCode = 1MB Compiled)

Available junk styles:

1. Passive if statement
2. Unreachable case in switch(int)

Known limitations/problems:

  1. (Bypassed - Split junk into multiple files) Code compiled using built-in visual studio compiler crashes when you paste more than 1500*1024 bytes into SINGLE file
  2. (Fixed - Use new Switch/Case Junk Style; But also why woud you use compiler optimization in files containing junk code?) Compiler kicks out passive if case in high optimization settings



Ideas TODO:
1. Use of compiler macros to randomize junk with each compilation (like: __TIME__ , __DATE__, __LINE__ )
2. Add fake ussage of declared junk to prevent compiler optimization compatibility issues (sprintf, MessageBoxA)
2.5. Option to set real variable name in generator that woud be "overwritten with junk"
3. Option to change junk parameters(like: string length, amount of variables) without editing php file(just to leave them as default settings) + limit of maximum values to prevent abuse by users

About

PHP Server Sided C/C++ Junk Code Generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages