Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 13:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Shadows Obfuscator (mit Sourcecode)

Discussion on Shadows Obfuscator (mit Sourcecode) within the AutoIt forum part of the Coders Den category.

Reply
 
Old 02/11/2014, 16:35   #241
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by Nobita2014 View Post
Hi Shadow992, I use your obfuscator C + + 1.1.4, and after obfuscated script does not work, msg some errors. Maybe you can help 1 ver English and msg Error at num line, it msg ?? 20 ?? . Thank Mr Shadow992.
Obfuscators may never work perfect, so it is nearly impossible to say what exactly went wrong or even how to fix it. Just try again by adding/removing/... code.
Shadow992 is offline  
Old 02/12/2014, 03:33   #242
 
elite*gold: 0
Join Date: Feb 2014
Posts: 7
Received Thanks: 0
Hi! Shadow992, maybe you can help obfuscator C 1.1.4 :
_ With Func "name obfuscator" but Func ($i, $x=2) : $i, $x Not "name obfuscator". A Some func it can "name obfuscator",
_ how for obfuscator C 1.1.4 "String" -> "name obfuscator". Thank you.
Nobita2014 is offline  
Old 02/12/2014, 12:10   #243
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by Nobita2014 View Post
Hi! Shadow992, maybe you can help obfuscator C 1.1.4 :
_ With Func "name obfuscator" but Func ($i, $x=2) : $i, $x Not "name obfuscator". A Some func it can "name obfuscator",
_ how for obfuscator C 1.1.4 "String" -> "name obfuscator". Thank you.
I cannot really help you as already described...
Shadow992 is offline  
Old 02/13/2014, 01:41   #244
 
elite*gold: 0
Join Date: Feb 2014
Posts: 7
Received Thanks: 0
Thank Shadow992 for tool. With autoit obfuscator complie all working good, With obfuscator C 1.1.4 -> successful -> run autoit successful -> But something in Func No Working (test and test)
I wan A Tool help Anti Code Anti Decomplie, scarcity ...
Nobita2014 is offline  
Old 02/13/2014, 12:28   #245
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by Nobita2014 View Post
Thank Shadow992 for tool. With autoit obfuscator complie all working good, With obfuscator C 1.1.4 -> successful -> run autoit successful -> But something in Func No Working (test and test)
I wan A Tool help Anti Code Anti Decomplie, scarcity ...
Anti decompilation is not possible at the moment.
Shadow992 is offline  
Old 03/06/2014, 21:23   #246
 
elite*gold: 0
Join Date: Feb 2014
Posts: 1
Received Thanks: 1
Hello Mister Shadow992,
Nice work with crackme, i'd like the way your packer works)
I'll post here the analisys of your packer but not the solution to your crackme...since is pointless patch it, when you can decompile it totally...However I can make patched solution and send you in private.
From my point of view has been nice reverse your crackme, and again good job Mate!

List of Anti-Debugging tricks used:
- FindWindow function
- IsDebuggerPresent function
- OutputDebugString function
- ZwQuerySystemInformation function
- ContextFlags

read and write at runtime:
- ReadProcessMemory function
- WriteProcessMemory function

In addition to this it will use self-mod code description is down:

About the AU3 script - compressed it means (interpreter + plain AU3 script encrypted):
the executable will be handled and rewritten using 4 "C" functions:

// c functions
int fseek(FILE *stream, long offset, int whence);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
long ftell(FILE *stream);
void rewind(FILE *stream);
// end c functions

After that the packer will check if it is a DOS MZ format: checking if it has the MAgic_Number MZ and after it checks if it's a portable executable using a cmp with the hexadecimal rappresentation of "EP".
At the end it will create the process using Windows API CreateProcess
Now it will pause the thread and preparing us for a nice surprise:
it will play us with the last trick to check if debugger is present using "ContextFlags"....
and after it will resume the thread and run the program normally.


so if you want to use Ollydbd you need this plugin MagicHideOllyDbg
and you need to turn on these options:
Auto Run HideOD
HideNTDebugBit
OutDebugStringA
ZwSetInformationThread
ZwQuerySysteminformation
ZwSetInformationProcess

I was forgetting that you need to hide even the Window title of Ollydbg, since shadow's packer is checking for it
so I posted a little piece of Asm to change title of "Ollydbg" in "AxelMtE" so it won't be detected, however you can use any Ollydbg plugin to do this.
The code has been written using masm32, so you need masm32 to compile this little piece of code
Code:
.486
.model flat, stdcall
option casemap :none

include \masm32\include\user32.inc
include \masm32\include\kernel32.inc

includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib

.data    
    Error       db  "Error",0
    ODBG        db  "OLLYDBG",0
    NFodbg      db  "OllyDbg not found.",0
    Success     db  "Succesfully Changed!",0     
    hWndW       dd  0
    NewT        db  "AxelMtE",0
.code
start:
    mov edx,offset ODBG
    push 0
    push edx
    call FindWindow    
    cmp eax,0
    jz err  
    mov edx,offset NewT   
    push edx
    push eax
    call SetWindowText
    jz noDBG
    cmp eax,0
    je err
    mov edx,offset Success
    push 40h
    push 0
    push edx
    push 0    
    call MessageBox
    push 0
    call ExitProcess
    
 err:
    mov edx,offset Error
    push 10h 
    push 0
    push edx
    push 0    
    call MessageBox    
    jmp exit  
    
noDBG:
    mov edx,offset NFodbg
    push 10h 
    push 0
    push edx
    push 0    
    call MessageBox 
     
exit:

    push 1
    call ExitProcess

end start
; end of code
have fun
Best regards
AxelMtE
AxelMtE is offline  
Thanks
1 User
Old 03/20/2014, 18:51   #247
 
elite*gold: 0
Join Date: Mar 2014
Posts: 17
Received Thanks: 1
My sir,

Thank you very much/
Really you are the best member in this forum.
ws-man is offline  
Thanks
1 User
Old 03/22/2014, 21:34   #248
 
elite*gold: 0
Join Date: Mar 2014
Posts: 1
Received Thanks: 0
Hello and thanks for letting my join your community, i downloaded this obfuscator and it works fine for my needs except that doesnt take into account Fileinstall("litral path",$canbevariable)

kind of a waste of time but i dont want to end this yet any idea?
swayzHard is offline  
Old 03/22/2014, 22:04   #249
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
FileInstall doesn't accept any variable because you can overflood the final exe with many ressources. You need to remove the variable and have to use a constant.
alpines is offline  
Old 06/05/2014, 07:38   #250
 
elite*gold: 0
Join Date: Dec 2011
Posts: 20
Received Thanks: 3
Question

Shadow, would I be able to see a Shadows Obfuscator for autohotkey too anytime soon?
DuguWudi is offline  
Old 06/08/2014, 00:41   #251
 
elite*gold: 0
Join Date: Jul 2012
Posts: 1
Received Thanks: 0
When using any type of obfuscator including yours I always get variable declared error when running compiled program.
unlist3d is offline  
Old 06/22/2014, 08:35   #252
 
elite*gold: 0
Join Date: Jan 2014
Posts: 1
Received Thanks: 0
Shadow,

Any idea why I get the error:

"Invalid FileInstall() Function:"

When I try to compile after using your obfuscator? I tried changing the dir of the random generated variable to this:

FileInstall("obfuscator_file.s92", "C:\Windows\Autoit\" & $REPPTGDEVLQKO,1)
$00O0OOO00OsIqdLKgMLDTpcg=StringSplit(__uBmsPcKtMT CcvPBnoD(FileRead("C:\Windows\Autoit\" & $REPPTGDEVLQKO)),chr("74"),2)
FileDelete("C:\Windows\Autoit\" & $REPPTGDEVLQKO)

Still get the same error.
johnny71 is offline  
Old 07/18/2014, 15:21   #253
 
elite*gold: 0
Join Date: Dec 2011
Posts: 20
Received Thanks: 3
AutoIt-Obfuscator written in C++ problem

Hi Shadow,
I have a problem with your AutoIt-Obfuscator written in C++ in the latest autoit version.

It seem it no longer works if the obfuscated compiled exe run in other language(regional setting) OS beside english. Previously no such problem.
DuguWudi is offline  
Old 01/19/2016, 14:47   #254
 
elite*gold: 0
Join Date: Oct 2012
Posts: 10
Received Thanks: 1
Hi shadow, im not sure you have got my pm?

If not, is it possible that you can make the obfuscator support command lines, like:
obfuscator.exe script.au3 from cmd.

and also it does not work if the script contains spaces, ex:
new script.au3 does not work
newscript.au3 does work,

is it possible to fix that ?
legend90 is offline  
Old 01/19/2016, 16:37   #255
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You have to add " to the file name if there is any whitespace in between.
"new script.au3"
alpines is offline  
Reply


Similar Threads Similar Threads
AutoIt Obfuscator - Verschlüsselung
09/06/2009 - AutoIt - 7 Replies
Hey, Bin dank einem guten Freund, der mich darauf hingewiesen hat, auf diesen nützlichen Tool gestoßen: AutoIt Obfuscator Was macht er: English: Obfuscator doesn't make your source safe!
Suche v1.0.24.14 vom Obfuscator von Autoit
09/17/2008 - Guild Wars - 2 Replies
Hi, hat die vielleicht noch jemand oder habt ihr auch alle nur die neue version ?? Falls jemand noch die alte hat würde ich mich freuen wenn man die hie hochladen oder mir schicken könnte Mfg emtec



All times are GMT +1. The time now is 13:59.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.