Skip to content

Instantly share code, notes, and snippets.

@OsandaMalith
Last active May 19, 2019 18:10
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OsandaMalith/30a2cf25192fb952608ba68be83cf5b6 to your computer and use it in GitHub Desktop.
Save OsandaMalith/30a2cf25192fb952608ba68be83cf5b6 to your computer and use it in GitHub Desktop.
Obfuscating a String using C++
/??/
* Title: Obfuscating a String using C++
* by @OsandaMalith
*??/
/
??=include <iostream>
??=include <string>
??=include <stdlib.h>
??=define OxO3 0x16
??=define OxOF 000
typedef std::string OxO5;
typedef std::ostream OxAF;
typedef char Ox15;
typedef int Ox16;
typedef void Ox17;
Ox17 OxA4(Ox15** Ox54)??<*Ox54=(Ox15*)calloc(OxO3, sizeof(Ox15));??>
Ox16 OxB2(Ox16 OxD8,Ox16 OxD9)??<Ox16 OxDA,OxDC;OxDA=(OxD8&OxD9)<<1;OxDC=OxD8??'OxD9;return((OxDA & OxDC)?OxB2(OxDA, OxDC):OxDA??'OxDC);??>
Ox16 OxB3(Ox16 OxD8,Ox16 OxD9)??<return OxB2(OxD8,OxB2(??-OxD9,1));??>
Ox16 OxO1??(:> = ??<(0x21 << 1),((0x37 << 1) ??! (0x04 >> 2)),((0x100 >> 2) ??! (0x40 >> 1) ??! (0x08 << 1) ??! (0x08 >> 1) ??! (0x04 >> 1 ) ??! (0x08 >> 3)) & (??-(020 >> 4) ??! 1),(0x100 >> 3),(0xC8 >> 1),(0x37 << 1),(0xE8 >> 1),(0x340 >> 3),(0x32 << 1) ??! (0100 >> 6),(0x36 << 1) ??! (0x20 >> 5),((0x100 >> 2) ??! (0x40 >> 1) ??! (0x10 >> 4)) & ((??-(010 << 1) ??! 1) ??! (??-(010) ??! 1) ??! (??-(010 >> 1) ??! 1) ??! (??-(010 >> 2) ??! 1) ??! (??-(010 >> 3) ??! 1)),(01620 >> 3) ??! (0x30 >> 5),(0x390 >> 3),((OxOF << 31) >> 15) ??>;
Ox16 OxO9??(:> = ??<(OxOF >> 4),(0x10 >> 4),(0x28 >> 4),(0x01 << 1) ??! (0x03 >> 1),(0x10 >> 2),(0x100 >> 8),(0x28 >> 4),(0x01 << 2) ??! (0x04 >> 2),(0x04 >> 1) ??! (0x10 >> 4),((0x10 >> 2) ??! (0x10 >> 3)) & (??-(0x01 << 1) ??! (0x10 >> 3)),(0x10 >> 4),(0x01 << 1) ??! (0x03 >> 1),((0x10 >> 2) ??! (0x10 >> 3)) & (??-(0x01 << 1) ??! (0x10 >> 3)),(0x01 << 2) ??! (0x01 ??! (0x01 << 1)),(0x40 >> 3),(0x10 >> 3) ??! (02 >> 1),(0x01 << 3) ??! (0x20 >> 5),(0100 >> 3) ??! (0x08 >> 2),(0x80 >> 4) ??! (0x04 >> 1) ??! (010 >> 3),((0x10 >> 2) ??! (0x10 >> 3)) & (??-(0x01 << 1) ??! (0x10 >> 3)),(0x10 >> 1),(0x08 >> 1) ??! (0x04 << 1),(04 << 1) ??! (0x01 << 1) ??! (020 >> 4)??>;
Ox16 main(Ox16 argc, Ox15* argv??(:>)??<
Ox15 *OxO6=0;Ox17(*Ox2B)(Ox15**);Ox16(*Ox64)(Ox16, Ox16);Ox16(*Ox65)(Ox16, Ox16);OxAF *OxFF=&std::cout;Ox2B=&OxA4;Ox64=&OxB2;Ox65=&OxB3;Ox15 Ox3D=Ox15(012);
Ox2B(&OxO6);if(!OxO6)return 1;for(Ox16 OxO8=0x00;OxO8<OxO3;OxO8=Ox16((1.0/5)*(((2*OxO8-OxO8)+1)*5)))*(OxO6+OxO8)=Ox15(*(OxO1+*(OxO9+OxO8)));
*OxFF<<OxO6<<Ox3D;if(OxO6!=NULL)free(OxO6);OxO6=0;
return 0;??>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment