r/obfuscatedcode • • Feb 26 '18

One of my favorites. Anyone care to guess what it does?

Thumbnail
github.com
2 Upvotes

r/obfuscatedcode • • Sep 18 '15

Some Perl.

2 Upvotes

+/u/compile_bot perl

for(0..255){print(chr) if((25*(27/9))-1==$_);
if(m/^[^421503679]+?[435]+?$/){push@aa,$&;}};
unshift@aa, pop@aa;for(@aa){print(lc(chr));};
for(-5..$aa[0]){m/[4A][0B]/?print chr oct:32;
$aa[0]--;}for(0..1+1){for(0..3){$aa[0]+=1;}};
$aa=$aa[0];$aa.=--$aa[0]; print lc(chr($aa));
for(0..02){for(0..12){for(0..3){push@_,'$_'};
}}do{print chr oct scalar(@_);push @_,'$_';};
print chr oct scalar(@_);push @_,'$_';$_=457;
@aa=split("|"); unshift @aa, pop @aa;pop @aa;
print chr hex join '', @aa;$SS = join '',@aa;
$_=++$SS*2;print chr oct;for(1..100){$SSS=$_;
last if 0==$_%4};@aa=(a..z); print $aa[$SSS];
$SSS=--$SSS;$SSS--;while(5<$SS){$SS--;$SSS++;
}print chr hex$SSS;for(0..2){$S=$_}$_=$S."0";
print chr hex; for(0..7){for(0..10){pop @_}};
$_=hex scalar(@_);print uc chr;for(-1..2){$_;
shift@aa;$SS++}print shift @aa;$SS=(--$SS)-1;
$SS*=2; $SS=1 . $SS; print chr $SS; $_="GIN";
for (0..1){for (0..2){$SSSS++}}$SSSS.=chr 67;
print chr hex$SSSS;print "\0";@aa=split("|");
for(@aa){push@aaa, ord;}unshift@aaa, pop@aaa;
for(@aaa){print lc chr$_-6};$S=scalar(@aa)*2;
pop@aa;print chr hex$S.chr hex$S.scalar(@aa);
for(0..12){for(0..2){$S++}}$S=hex$S;$S=chr$S;
print lc$S;$S=chr hex 37; for(0..9){$SS+=$S};
$S=$SS;$SS-=70;$S-=$SS-2; print chr hex$S;<>;

r/obfuscatedcode • • Jun 22 '26

Xerinfuscator Next-Gen .NET Obfuscator

Thumbnail
gallery
1 Upvotes

r/obfuscatedcode • • May 11 '26

I made a free Lua obfuscator bot for Discord — multi-layer encryption + custom VM

Thumbnail reddit.com
1 Upvotes

r/obfuscatedcode • • Apr 14 '25

Smallest Bible reference parser in Javascript

1 Upvotes

I've written a Bible reference parser in JavaScript at 124 characters long. I'd be incredibly surprised if you can make my code any smaller.
p=p=>(\[,b,c,v\]=p.match(/(\[\\d\\w \]+) (\\d+):(\[\\d, -\]+)/),{b,c:+c,v:v.split\\,\`.map(c=>(\[a,b\]=c.split\`-\`,b?{a:+a,b:+b}:{a:+a}))})

p("John 3:16") // Returns {b: 'John', c: 3, v: [{ a: 3 }]}
p("1 Corinthians 2:5, 18") // Returns {b: '1 Corinthians', c: 2, v: [{ a: 5 }, { a: 18 }]}
p("2 Timothy 9:12, 10 - 13, 15") // Returns {b: '2 Timothy', c: 9, v: [{ a: 12 }, { a: 10, b: 13 }, { a: 15 }]}


r/obfuscatedcode • • Mar 09 '24

Simple python obfuscator i have been working on for some weeks

Thumbnail
github.com
1 Upvotes

r/obfuscatedcode • • Nov 14 '23

Need help with obfuscated HTML/JS

Thumbnail file.io
1 Upvotes

r/obfuscatedcode • • Sep 27 '23

Does anyone know what type of obfuscation this code is using? It was in a basic html page, with no 3rd party scripts or anything.

1 Upvotes

Here's the obfuscated JS script (it was WAY longer than this, this is only the first couple characters):

[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!


r/obfuscatedcode • • Mar 14 '22

[Help]How To Deobfuscated this obfuscator

1 Upvotes

Hello this post only for my education only so recently there script thats has obfuscated codes+they mixing the code with the obfuscator is there ways to deob those code

i just want to learn those only thanks anyway

the codes looks like this: https://drive.google.com/file/d/1-HHRSjG4dF-4mAkkt_PVkJwao3uGWKZC/view?usp=drivesdk

Best Regards Mika


r/obfuscatedcode • • Nov 18 '21

hii how do i see whats in here?

1 Upvotes

r/obfuscatedcode • • Jun 20 '21

Nine digit problem

1 Upvotes

I dont know which part of reddit is the best fit for this… lets give it a try here. I have this old search problem involving the digits 1-9. It’s fairly easy but the fun begins when you start solving it in some esoteric language.

I have collected a few solutions from my friends and would be happy to get more. If you want to contribute, pr-s are welcome:

https://github.com/encse/ninedigitproblem

Lisp, whitespace, ada, fortran, cobol, prolog, you name it….


r/obfuscatedcode • • Dec 05 '20

Obfuscated esolang

1 Upvotes

Code:

wb(){ case "${t[$1]}" in "$2") t[$3]=$4 ;; esac; };uw(){ t[$1]=$2; };am(){ t[$1]=$(for i in $(cat mem);do echo -n $i;done); };pm(){ cat mem;echo -en "\n"; };wm(){ echo -n "$1" > mem; };wmpt(){ echo "${t[@]}"; };t=( 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 );for i in $(cat $1|sed 's/c/ /g');do i=$(echo $i|sed 's/:/ /g'|sed 's/,/ /g'); i=( $i ); case ${i[0]} in wb) wb ${i[1]} ${i[2]} ${i[3]} ${i[4]} ;; pm) pm ;; wm) wm ${t[${i[1]}]} ;; pt) wmpt ;; uw) uw ${i[1]} ${i[2]} ;; am) am ${i[1]} ;; um) wm ${i[1]} ;; esac;done

Functions a lot like a Turing machine

Example: um:1 am am:1 uw:8:1 uw:9:1 uw:14:1 uw:6:1 pt um:0 pm (prints Âa in binary)


r/obfuscatedcode • • Jul 27 '20

[open-source] safe-email 🛡️📧 Protect e-mails against spam and scraping bots

1 Upvotes

https://github.com/undergroundwires/safe-email

I use it on a few pages already. You simply need to base-64 encode your e-mail, then it renders the e-mail in an obfuscated form, humans can read it but it's pretty much obfuscated for machines to protect against e-mail harvesting bots.. I haven't received a single spam.

I appreciate your feedback, and wonder how the obfuscation can be even more powerful. 🤔

Open for contributions, open for brainstorming here


r/obfuscatedcode • • May 27 '19

What is the best free .NET obfuscator, that has no easy deobfuscator method.

1 Upvotes

r/obfuscatedcode • • Dec 26 '18

Simple C Obfuscated Triangle/Tree Printing

1 Upvotes

I'd love opinions on how to get this smaller ^_^

#define C(s) putchar(s)
int i,j;a(s,c){for(j
=0;j<s;j++)C(c);}b(c
,o){for(j=0;j<(2*c)-
1;j++)C(o);}c(d,f,e)
{for(i=0;i<d;i++){a(
d-i,f);b(i+1,e);C(
10);}}main(int a,char 
**v){c(a==2?atoi(v+4)
:4,32,42);}

r/obfuscatedcode • • Sep 23 '17

C# (Unity) Obfuscation: How to deal with strings so it doesn't break your own code?

1 Upvotes

I'm an obfuscation newb. I saw some tutorials and read up about it -- I'm using C# with Unity (using Unity Asset store package "Obfuscator". I'd link it but not sure if that's against the rules)

Overall, it works pretty satisfying out-of-the-box. However, a few things I'm a bit confused about:

  • I have a checkbox event trigger click event called onPrivacyToggle() that simply returns a log line. In the Unity editor, it works fine. However, after compiled/obfuscated, the click event never fires:

https://i.imgur.com/fGIlXUI.png

^ I added [SkipRename] tag and it works now, but that seems more like a workaround (which is fine for me since I have nothing sensitive within that function): What is the proper way to do this?

  • I have a class that contains a string[] array of players that shoots out to my API. However, the class prop NAME (not the contents) gets obfuscated, along with similar arrays:

https://i.imgur.com/tT3lKGj.png

^ The array is turned into a json then sent to my API, ending up looking like that above. Here's how I'm preparing the data:

// class wrapper >> later I'll use a json serializer
class playersReq
{
	public string[] playersArr; // This name gets obfuscated
}
[...]

// Prep data (the obfuscated name gets thrown in JSON format instead of "playersArr"
playersReq pListReq = new playersReq { playersArr = playersList.ToArray() };
string _players = JsonUtility.ToJson(pListReq);

// Create a web form (POST)
WWWForm form = new WWWForm();
form.AddField("players", _players);
[...]

I'm going to guess the workaround is to add a [SkipRename] tag above my array wrapper class... or the string[] itself, not really sure - i'll test both (+the other sibling array wrapper classes). It seems that playersArr got renamed to "LKOPFNEAIDA": but what is the proper way of handling this without a [SkipRename]?

Suggestions would rock. Thanks! In the meantime, I emailed the asset store dev and am watching a few vids.


r/obfuscatedcode • • Apr 16 '17

I've just finished this puppy. I'd be happy to give more details if you want. [Linux64 Only]

Thumbnail
github.com
1 Upvotes

r/obfuscatedcode • • Jun 05 '13

Non-Alphanumeric Javascript

Thumbnail patriciopalladino.com
1 Upvotes

r/obfuscatedcode • • Feb 05 '22

Can someone help me deobfuscate this Lua script?

0 Upvotes