前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于pb decompiler的搜索

PureBasic Forum • View topic - pb decompiler PureBasic ForumPureBasic web sitePureBasic blog page FAQ Search Register Login It is currently Thu Feb 27, 2014 12:55 am View unanswered posts | View active topics Board index » PureBasic » Coding Questions All times are UTC + 1 hour pb decompiler Page 1 of 4 [ 60 posts ] Go to page 1, 2, 3, 4 Next Print view Previous topic | Next topic Author Message Kaisen2100 Post subject: pb decompilerPosted: Mon May 30, 2005 9:52 pm Enthusiast Joined: Fri May 28, 2004 4:16 pmPosts: 121Location: Madeira Island, Portugal Does exists any PureBasic Decompiler?? Its easy to decompile a program made with PureBasic? ... i just want to know hard (or easy) is to decompile PB programs (Windows, Linux, Mac, Amiga) And if it is posible to decompile, how can i do to avoid (or to make it a very hard work) anyone to decompile my program? Thanks _________________PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/ Top Paul Post subject: Posted: Mon May 30, 2005 10:03 pm PureBasic Expert Joined: Fri Apr 25, 2003 4:34 pmPosts: 781Location: Canada Use a disassembler to veiw the compiled EXE as ASM source. Every program can be viewed as ASM code regardless of what it is. Top Fred Post subject: Posted: Mon May 30, 2005 10:46 pm Administrator Joined: Fri May 17, 2002 4:39 pmPosts: 10444Location: France you could try to look for PB pattern while decompiling, but it will be really hard to read IMHO (unless you know perfectly assembly). Top Kaisen2100 Post subject: Posted: Tue May 31, 2005 1:28 am Enthusiast Joined: Fri May 28, 2004 4:16 pmPosts: 121Location: Madeira Island, Portugal hehehe ... ok i understand ... its impossible to stop anyone decompliling your programming ... but you can make it harder to him ... but how??? _________________PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/ Top Kaisen2100 Post subject: Posted: Tue May 31, 2005 1:30 am Enthusiast Joined: Fri May 28, 2004 4:16 pmPosts: 121Location: Madeira Island, Portugal Fred wrote:you could try to look for PB pattern while decompiling, but it will be really hard to read IMHO (unless you know perfectly assembly). i do not understand this ... "PB pattern"? ... what you mean with that? ... my english is bad sorry _________________PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/ Top zapman* Post subject: Posted: Tue May 31, 2005 6:12 am Enthusiast Joined: Wed Jun 02, 2004 10:17 pmPosts: 112Location: New Caledonia (South Pacific) "Patern" is the name that can be given to any sequence of ASM instructions corresponding to one PB instruction. Because compilation is an automatic process doing anything in the same way when it has to do it, you can find statistical correspondences when you compare an original PB code and its compiled version. If you have three loops using "for-next" in your PB code, you'll have three similar paterns of ASM instructions in the compiled code. To come back to your original question, stand on the idea that it is so hard to decompile an ASM compiled program that you can (at this moment) consider this operation as practically "impossible". It is "theorically" possible (I made an interresting beginning of Microsoft QuickBasic decompiler some years ago) but I promise you that it is a HUGE work probably much harder than creating a complete new compiler. As far as I know, there is not any efficient decompiler of any high language (Basic, C, C++,...) available on the market. The one that will do it is a King Master and it would be very more interresting to decompile C++ than PureBasic. So, I YOUR program is not one of the best softwares of the last 20 years or a master piece of the national security system of your country, they are very few chances that anyone spends enough time to decompile it. Keep quiet Note : because your are not english native, you perhaps thinck that the "IMHO" abbreviation used by Fred was a very complexe programming notion or the name of a secret part of the API... It only means "In My Humble Opinion". Yes, Fred is Humble even if he is probably one of the very few people that would be able to make a decompiler . _________________Don't try - DO it ! Last edited by zapman* on Tue May 31, 2005 7:02 am, edited 3 times in total. Top Bonne_den_kule Post subject: Posted: Tue May 31, 2005 6:44 am Addict Joined: Mon Jun 07, 2004 7:10 pmPosts: 846Location: Bergen, Norway The only good decompiler is the java decompiler. Top zapman* Post subject: Posted: Tue May 31, 2005 6:52 am Enthusiast Joined: Wed Jun 02, 2004 10:17 pmPosts: 112Location: New Caledonia (South Pacific) You can find some Java and Flash decompilers but I don't believe that these languages are "really" compiled (not in ASM). _________________Don't try - DO it ! Top PB Post subject: Re: pb decompilerPosted: Tue May 31, 2005 9:04 am PureBasic Expert Joined: Fri Apr 25, 2003 5:24 pmPosts: 7184 > Does exists any PureBasic Decompiler? If you mean like a Visual Basic decompiler, which takes the final exe and then turns it back into VB source code, then no, nothing like this exists for PureBasic. _________________Note: I am not a PureBasic team member.I use 5.21 LTS (x86) on Win 7 Ult (64-bit). Top thefool Post subject: Posted: Tue May 31, 2005 9:34 am Always Here Joined: Sat Aug 30, 2003 5:58 pmPosts: 5892Location: Denmark the big problem is that you dont decompile code to crack it. simply no need for that. so you got to have something that maybe encrypts your registration code block [live. Self modifying code, yeah it is possible in pb], some checks to see if the registration block has been modified, and a lot of other checks and stuff. more checks the better! Top Tommeh Post subject: Posted: Tue May 31, 2005 11:04 am Enthusiast Joined: Sun Aug 29, 2004 2:25 pmPosts: 149Location: United Kingdom There are all kinds of decompilers, ASM, Java, Flash, VB4 etc But PureBASIC code is decompilerable, but only to a certen extent. Here is what you do: Make a very simple program in PB, something like message requester 'hello world' and make PB make the ASM file of it, in that ASM you can see clearly what is going on, all you have to do is extract stuff like that from the final exe by yes, looking for the patterns Top Kaisen2100 Post subject: Posted: Tue May 31, 2005 11:24 am Enthusiast Joined: Fri May 28, 2004 4:16 pmPosts: 121Location: Madeira Island, Portugal Thanks people for your help ... but now i have another question thefool wrote:the big problem is that you dont decompile code to crack it. simply no need for that. so you got to have something that maybe encrypts your registration code block [live. Self modifying code, yeah it is possible in pb], some checks to see if the registration block has been modified, and a lot of other checks and stuff. more checks the better! How can i do "Self modifying code" ?? ... i was read a few times about it ... but i dont know can i do it in my program? ... exist any example of that? ... By the way ... Decompile a Java program is easy ... i think ... because it is no compiled to ASM (it is compiled to byte code for the Java Virtual Machine) _________________PureBasic File Relocator [NEW VERSION 1.1] ==> http://pbfilerelocator.atspace.com/ Top thefool Post subject: Posted: Tue May 31, 2005 11:30 am Always Here Joined: Sat Aug 30, 2003 5:58 pmPosts: 5892Location: Denmark http://forums.purebasic.com/english/viewtopic.php?t=3650&highlight=selfmodifying+codeexample however you need to remove the encryption that is done at runtime, and then encrypt it directly in the file. Then at runtime it decrypts Top traumatic Post subject: Posted: Tue May 31, 2005 12:54 pm PureBasic Expert Joined: Sun Apr 27, 2003 4:41 pmPosts: 1662Location: Germany Without trying to be a know-it-all I'd like to share my 2ct. as well... Nothing will ever stop anyone from reversing your code, the only aim of protection methods is to make it harder. A decompiler decompiles bytecode (VB, Java, Jamagic , C#, etc.) whereas for 'real' applications a disassembler is needed. Common methods to protect your code from reversing are self-modifying code, compression and cpu-emulation. Of course all of these methods can be bypassed as well without even knowing what exactly is going on as the exe still gets executed at some time, so the wanted code can be obtained from memory. That's why all 'better' protection-schemes include a check for commonly used debuggers and disassemblers. Out of curiosity, do you worry about your app being cracked (bypass protection) or about secret algorithms being stolen? _________________Good programmers don't comment their code. It was hard to write, should be hard to read. Top thefool Post subject: Posted: Tue May 31, 2005 2:21 pm Always Here Joined: Sat Aug 30, 2003 5:58 pmPosts: 5892Location: Denmark traumatic wrote:Nothing will ever stop anyone from reversing your code, the onlyaim of protection methods is to make it harder.Quote:A decompiler decompiles bytecode (VB, Java, Jamagic , C#, etc.)whereas for 'real' applications a disassembler is needed.true, again Quote:Common methods to protect your code from reversing are self-modifyingcode, compression and cpu-emulation. Of course all of these methods canbe bypassed as well without even knowing what exactly is going on as theexe still gets executed at some time, so the wanted code can be obtainedfrom memory. That's why all 'better' protection-schemes include a checkfor commonly used debuggers and disassemblers. checks, checks, checks and checks! if you can find something about how to disturb an disassembler from finding out wich api calls you made. A way would be api hooking! check if the registration routines has been altered, and do more checks! so if 1 check is altered, all the other is too. problem is, when a keygen is done then you cant check for it. also if people give out stolen serials. so have somekind of blacklist so if more people uses that number or you see it on asta****.box.** , or any other places, put it on the blacklist. Alter the position of checks and even how the checks are performed, alter encryption algorithms too for each release you make. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 4 [ 60 posts ] Go to page 1, 2, 3, 4 Next Board index » PureBasic » Coding Questions All times are UTC + 1 hour Who is online Users browsing this forum: No registered users and 4 guests You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forum Search for: Jump to: Select a forum ------------------ PureBasic Coding Questions Game Programming 3D Programming Assembly Programming The PureBasic Editor The PureBasic Form Designer General Discussion Feature Requests and Wishlists Tricks 'n' Tips Tricks 'n' Tips (Archive) Bug Reports Bugs - Windows Bugs - Linux Bugs - Mac OSX Bugs - Documentation Bugs - SpiderBasic OS Specific AmigaOS Linux Windows Mac OSX Miscellaneous Announcement Off Topic Showcase Applications - Feedback and Discussion PureFORM & JaPBe TailBite Powered by phpBB © 2008 phpBB Group subSilver+ theme by Canver Software, sponsor Sanal Modifiye