AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   Decompiling Plugins (.amx/x -> .sma) (https://forums.alliedmods.net/showthread.php?t=19368)

BAILOPAN 10-15-2005 04:41

Decompiling Plugins (.amx/x -> .sma)
 
Topic: How do you decode a closed source plugin back to source code?

This is a hot topic for some people, and I've been asked about it many times. After the Sputnik53 incident, I decided to publically reveal how it's done. Currently, I'm writing a multipart-article on the SourceMod devlog.

This is not for the faint of heart, and you should step into this with knowledge of C and processor memory layout. I'll update this post as I complete more pieces of the tutorial.

Part 1 - Introduction to the VM
Part 2 - Basic Disassembly
Part 3 - Decoding Branches
Part 4 - Local procedures, variables, and multi-branches
Part 5 - Optimization
Part 6 - Stocks, floats, ternary operators, and for loops
Part 7 - Multi-part if statements, multi-dimensional arrays

BAILOPAN 10-16-2005 06:31

Part 4 added.

Zenith77 10-16-2005 12:09

Nice, very very nice.



p.s. Whats the answer to the bonus question :lol:

BAILOPAN 10-17-2005 05:54

Part 5 added.

Worth noting here too: Wraith's AMXReader now supports AMX Mod X 1.60 plugins.

LynX 10-17-2005 07:16

w00teh!!!

Baileh finally decided to make mine life happy again ^^

Wraith, 10-17-2005 11:29

It is also worth noting that the disassembler isn't idiot proof. If you have a problem or request you can find me in #adminmod on gamesurge.

BAILOPAN 10-28-2005 05:15

Part 6 added.

BAILOPAN 10-30-2005 06:00

Part 7 added.

ssjGoten 08-09-2006 15:05

Re: Decompiling Plugins (.amx/x -> .sma)
 
when i open AmxReader gives me that error "The Application failed initialize properly (0xc0000135). Click on OK to terminate the application" :((


Pls help me :(

k007 08-09-2006 15:20

Re: Decompiling Plugins (.amx/x -> .sma)
 
Nice gj BAIL


All times are GMT -4. The time now is 03:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.