Skip to content

Instantly share code, notes, and snippets.

@cremno
Created March 6, 2021 10:02
Show Gist options
  • Save cremno/11e6e7811d52116e56fa002595b02f60 to your computer and use it in GitHub Desktop.
Save cremno/11e6e7811d52116e56fa002595b02f60 to your computer and use it in GitHub Desktop.
code found on kc ~late 2012
#include <stdio.h>
#include <string.h> /* ANSI X3.159-1989 source code compliant with ISO/IEC 9899:1990 */
#include <ctype.h> /* proudly made without MySQL and Postgres for greater readability */
#define _(spurdo,spaerde,ebin) do{spaerde=stpcpy(spurdo,wtf8[ebin]);if(!ebin--)spaerde=stpcpy(spaerde,"\x65\x73");else if(!ebin)*--spaerde=0;*spurdo=toupper(*spurdo);}while(++ebin >9000)
int main(){int i,j,k,l;char*p,*q,*r,*s,b[42];char const*const wtf8[]={"\x74\x6f\x64","\x73\x74\x72\x61\x66\x65","\x6b\x69\x6e\x64\x65\x72","\x73\x63\x68\xc3\xa4\x6e\x64\x65\x72"};
for(i^=i;~(i>>1)&(1<<1);++i){_(b,p,i);for(j^=j;!(j>>2);++j){if(!(j^i))continue;q=stpcpy(stpcpy(p,wtf8[j]),"\x20\x66\xc3\xbc\x72\x20");for(k^=k;~k^~(1<<2);++k){if(!((k^j)&&(i^k)))continue;_(q,r,k);
for(l^=l;~l>>2;++l){if(!(j^l)||!((l-k)&&(l-i)))continue;s=stpcpy(r,wtf8[l]);if(!l--)stpcpy(s,"\x65");else if(!l)stpcpy(s,"\x6e");puts(b);break;}}}}return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment