a basic and offensive example of control flow obfuscation

A place to submit all custom code, scripts, and programs.
Forum rules
Do NOT post malicious code or programs. Please review all code posted in this forum before downloading or running any of the code or programs here.

a basic and offensive example of control flow obfuscation

Post by MadM0use on Sun Feb 01, 2015 2:53 pm
([msg=86539]see a basic and offensive example of control flow obfuscation[/msg])

Code: Select all
#include <stdio.h>
main(a,b,c,d,e)
{
   if(a != 1)
   {
      
      if((a*b*c) == d)
      {
         printf("fuck ");
         main(10,5,2);
      }
      else if((b%a) == c && a == 2)
         printf("lol jk :P\n");
      else if((a/c) == b)
      {
         printf("yourself ");
         main(2,5,1);
      }
      else if((a+b) == c)
      {
         printf("Go ");
         main(6,2,2,24);
      }
   }
   else
      main(2,2,4);
   return;
}

const char main[]="\xeb\xfe -> A fully functional program in C";

<@MadMouse> i am forgot what i was doing today but i had motivation and a distinct plan when i woke up stoned right now

http://pastebin.com/FnwUG5KS
Books:
http://goo.gl/muPm3d
User avatar
MadM0use
Experienced User
Experienced User
 
Posts: 70
Joined: Thu Sep 11, 2014 10:30 pm
Blog: View Blog (0)


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 0 guests