Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Obfuscated AutoHotkey code


  • Please log in to reply
7 replies to this topic
fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
So today I was thinking about writing AutoHotkey code in the least sane way possible :lol:
Here's my entry, it's a function to tell apart Chris' official build from forks. The logic behind it is actually simple.
IsVanillaAutoHotkey() ; easily callable wrapper
{
	return ؘÆ()
}

; Keywords used in this function:
; if, loop, parse, chr, A_LoopField, return, A_ThisFunc

ؘÆ(ªšÎ="")
{iF ªšÎ
{LoOP,pArSe,ªšÎ
{ÒÆÞ:=cHr(Chr(54)cHR(55))CHR(chr(49)ChR(48)cHr(52))cHR(CHr(56)ChR(50))
,Ίè:=%ÒÆÞ%(%ÒÆÞ%(57)%ÒÆÞ%(55))%ÒÆÞ%(%ÒÆÞ%(56)%ÒÆÞ%(51))%ÒÆÞ%(%ÒÆÞ%(54)%ÒÆÞ%(55))
,’ܨ.=%ÒÆÞ%(%Ίè%(a_LooPfIELd)/2)                   ;;;
,ÒÆÞ:="",Ίè:=""                                    ;;; Written by fincs
}REtuRn ’ܨ                                         ;;; v1 - 13/09/2010
}ÒÆÞ:=A_tHIsFuNc,ªšÎ:="ÐqB"                         ;;;
,ÂØŒ:=%ÒÆÞ%("¤ÊÎ’¦èŠäÆ‚ØØ„‚†Ö"),’ܨ:=%ÒÆÞ%("ܪšÎŠè"),Ò¦ê:=%ÒÆÞ%("ˆØ˜Æ‚˜Ø")
,ä†Â:=%ÒÆÞ%("ê’ܨ"),ØØÄ:=%ÒÆÞ%("Òœ¨lh"),ˆØØ:=%ÒÆÞ%("Θž„ÂØŒäŠÊ"),¨lh:=%ÂØŒ%(ÒÆÞ)
,‚˜Ø:=%’ܨ%(¨lh+12,0,ä†Â),ÐqB:=%’ܨ%(‚˜Ø+0,0,ØØÄ),%Ò¦ê%(ˆØØ,ä†Â,¨lh),ÐqB:=(ÐqB=%’ܨ%(ªšÎ,0,ä†Â))
,ÒÆÞ:="",ªšÎ:="",ÂØŒ:="",’ܨ:="",Ò¦ê:="",ä†Â:="",ØØÄ:="",ˆØØ:=""
rEtUrN ÐqB
}

Post your insane AHK scripts here :)

Zaelia
  • Members
  • 754 posts
  • Last active: Jan 17 2015 02:38 AM
  • Joined: 31 Oct 2008
hehe :) look like Regex

Something like this can be very horrible (static, global, var=value, % %var%, ...)
ø:="Ø" , Ø:="ø"

Ø(ø="ø"){
return ø
}

ø(Ø="Ø"){
return Ø
}

msgbox % Ø "|" %Ø% "|" Ø() "`n" ø "|" %ø% "|" ø()


Eedis
  • Members
  • 1775 posts
  • Last active: Aug 14 2015 06:33 PM
  • Joined: 12 Jun 2009
:shock:
AutoHotkey state, the forum, Poly, and Drainx1. The short story.
I love my wife, my life, my atomic-match; for giving me the greatest gift a man could ask for, such a perfect and beautiful little girl.
9rjbjc.png

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Actually, I was attempting at short-code in the following topic :
AxC : <!-- m -->http://www.autohotke...pic.php?t=29593<!-- m -->

rootmos
  • Members
  • 13 posts
  • Last active: Mar 11 2016 09:37 AM
  • Joined: 03 Jul 2013

Im still trying how TS script is working, I have no idea how to make such code work. Can you please explain :)

 

This might be obfuscated code:

FVTGB = Q1AZW2SXE3DCR4FVTGB5YHNU6JMIKO7LPÖ8ÅÄ!9#¤&/()=?`@£$€{[]}\
  
StringMid, LDCKMFRG, FVTGB, 0x16, 0x1  ; H
StringMid, SAKMFLKM, FVTGB, 0x9, 0x1 ; E
StringMid, DSFMVP23, FVTGB, 0x20, 0x1  ; L
StringMid, DCR4FVT, FVTGB, 0x20, 0x1 ; L
StringMid, SADLMGPA, FVTGB, 0x1E, 0x1 ; O

Msgbox %LDCKMFRG%%SAKMFLKM%%DSFMVP23%%DCR4FVT%%SADLMGPA%

It's very simple but it might prevent someone from reading/translating it to clear-text. I searched the forum for a Official obfusactor but can't find one.



ErrorOnLine1
  • Members
  • 230 posts
  • Last active: Oct 05 2015 02:46 PM
  • Joined: 25 Dec 2012

Im still trying how TS script is working, I have no idea how to make such code work. Can you please explain 

 

This might be obfuscated code:

FVTGB = Q1AZW2SXE3DCR4FVTGB5YHNU6JMIKO7LPÖ8ÅÄ!9#¤&/()=?`@£$€{[]}\
  
StringMid, LDCKMFRG, FVTGB, 0x16, 0x1  ; H
StringMid, SAKMFLKM, FVTGB, 0x9, 0x1 ; E
StringMid, DSFMVP23, FVTGB, 0x20, 0x1  ; L
StringMid, DCR4FVT, FVTGB, 0x20, 0x1 ; L
StringMid, SADLMGPA, FVTGB, 0x1E, 0x1 ; O

Msgbox %LDCKMFRG%%SAKMFLKM%%DSFMVP23%%DCR4FVT%%SADLMGPA%

It's very simple but it might prevent someone from reading/translating it to clear-text. I searched the forum for a Official obfusactor but can't find one.

 

Google site-search
site:autohotkey.com obfuscate
 
 
This script may be a bit complicated, but you might find other examples using Google site-search.
 
*2nd attempt to edit this post
 
Ah, here's the problem - You are not allowed to use that image extension on this community.


rootmos
  • Members
  • 13 posts
  • Last active: Mar 11 2016 09:37 AM
  • Joined: 03 Jul 2013

Thank you for your reply, will check it out!



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

OK then

How about translating it back :D

IsVanillaAutoHotkey() ; easily callable wrapper
{
	return Function()
}

; Keywords used in this function:
; if, loop, parse, chr, A_LoopField, return, A_ThisFunc, asc

function(str="")
{
If str
{
   Loop,parse,var
      resultstr.=chr(asc(a_Loopfield)/2)                   ; Written by fincs
   return resultstr                                        ;v1 - 13/09/2010
}
ªšÎ:="ÐqB"                        
ÂØŒ:=function("¤ÊÎ’¦èŠäÆ‚ØØ„‚†Ö") ;If id have to guess id say A_ThisFunc
’ܨ:=function("ܪšÎŠè")
Ò¦ê:=function("ˆØ˜Æ‚˜Ø")
ä†Â:=function("ê’ܨ")
ØØÄ:=function("Òœ¨lh")
ˆØØ:=function("Θž„ÂØŒäŠÊ")
¨lh:=%ÂØŒ%(ÒÆÞ)
,‚˜Ø:=%’ܨ%(¨lh+12,0,ä†Â)
ÐqB:=%’ܨ%(‚˜Ø+0,0,ØØÄ)
%Ò¦ê%(ˆØØ,ä†Â,¨lh),
ÐqB:=(ÐqB=%’ܨ%(ªšÎ,0,ä†Â))
,ÒÆÞ:=""
ªšÎ:=""
ÂØŒ:=""
’ܨ:=""
Ò¦ê:=""
ä†Â:=""
ØØÄ:=""
ˆØØ:=""
return ÐqB
}

This is how far i have made it without using Autothotkey.

The result wont be the same cause u use the Function name in the calculation.


Visit the new forum ahkscript.org.

http://ahkscript.org