1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Need C++ programing help

Discussion in 'General Software' started by Fox34, Dec 11, 2006.

  1. Fox34

    Fox34 New Member

    Joined:
    May 9, 2006
    Messages:
    2,049 (0.66/day)
    Thanks Received:
    98
    Location:
    Venice
    Uh I need the source for the compiler, but alll i have is the EXE which is fully working, but can i get the source from the EXE?
     
  2. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    14,975 (3.92/day)
    Thanks Received:
    11,799
    no you can't get the source .. what you can get is a disassembly of the program which is very complex .. unless you are a fluent assembly speaker this might not be a good idea ..

    best (commercial) disassembler is ida pro
     
  3. Fox34

    Fox34 New Member

    Joined:
    May 9, 2006
    Messages:
    2,049 (0.66/day)
    Thanks Received:
    98
    Location:
    Venice
    damnit
     
  4. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.51/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    IsDebuggerPresent should be in ALL apps @ least, lol, due to the abundance of a hideous monstrosity known only as, "Dissassembly"... a terrible thing imo.

    :)

    * "Necessary Evil" in only 1 respect - for antivirus/antispyware creation... show me another!

    (Even code-recreation?)

    Hey, lol - If you wrote it once, you can again, (FASTER & BETTER most likely, so using that as an excuse to practice it? Not valid @ all...) & I know, I've done it...

    Taken a bunch I wrote in VB 5-6 & ported to Borland Delphi 3 - 7 later, & did a better job, by using a better compiler for starters. Much more inside, but the point is, it's doable, even if you go so far as port apps, language-to-language (my fav. personal experiment in fact, programming).

    You guys host 1 of them here in fact...

    APK

    P.S.=> If you think ANY code is TOO COMPLEX to do yourself, it's not that bad nowadays for GUI apps @ all using RAD tools, & drivers have an ENTIRE NETWORK of DDK examples as well + documentation that's decent, once you understand the base command function languages in them, especially to a particular type of programming & its constructs in data? Heck, & then it's just principles that apply in any language, same ideas... rest? Know thy API... where the true power, fast power, is... apk
     
    Last edited: Dec 12, 2006
  5. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    14,975 (3.92/day)
    Thanks Received:
    11,799
    IsDebuggerPresent doesnt trigger on disassembler
     
  6. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.51/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    It does in RAM when starting... or can be made to!

    E.G.-> w/ a little bit of code ontop, couple lines @ most really for basic function. Test its return errlevel from said API call, & wrap it in an if-then statement, w/ whatever terminating result on that 1/0 or True/False return variable errlevel turns out to be, you add 1 more line of API code, (or more even) to do what you wish as a final resulting action/activity...

    :)

    There is also calls & functions to catch tools like SoftIce & other dissassembly tools, specifically which can be adapted for similar purposes, & in combination with the ONLY valid use of a hardcode I can think of?

    It works, even against disassemblers, while it is running...

    APK

    P.S.=> I use a method also that messes up debuggers & yes, resource editors! IF you try to mess it up, while running, lol, or even on disk (you had best do a perfect job, real "rembrandt level" work hacking it, or jumping lines in it & here is why)? It will check its size on disk, lol, & always does + thruout its running duration (some apps use timers, others do it as a function call from EVERY procedure & some do both that I have written)!

    First, here is what they thought about it @ SLASHDOT & coders like John Carmack hang there:

    Code Auditing the Defcon Way

    http://it.slashdot.org/comments.pl?sid=158231&cid=13257227

    Nuff said, on that account, well... MORE fine-grained detail, because it's not just sizechecks alone & it actually DOES ESTABLISH A VALID REASON FOR A HARDCODE, if you read those details, you will understand & most likely agree.

    Heh, if you try to get @ my apps' resources, internally, other than its Application strings for version, about, etc (this I leave open, for information's sake, like my email contact info as well, for tech support & don't have to, but do for those reasons)... but stuff like its bitmaps/jpgs image resources, instead... ?

    It'll say a virus may be infecting it, which IS true (most exe virii create a larger sized file once they add their code to a program, even a Win32 PE type)... & it's true if someone gets around my method of debugger screwup, lol, for sure, if THEIR version is run @ startup & periodically on function call events in most of them, or a timer??

    Then, I am VERY kind imo, because I could do much worse? THEN, the program(s) will shutdown gracefully... fast! IIRC, I even built that into the screensaver you host here, it also has it.

    Its rudimentary antivirus protection, built in via that method, checking its "weight" so to speak, lol? Is also its defense against hacked versions, in fact... it helps! Std. equipment in apps I build... apk
     
    Last edited: Dec 13, 2006
  7. Alec§taar New Member

    Joined:
    May 15, 2006
    Messages:
    4,677 (1.51/day)
    Thanks Received:
    94
    Location:
    Someone who's going to find NewTekie1 and teach hi
    ^
    |

    "up, Up, UP!!!"

    :)

    * For the eyes of the one, the ONLY, W1zzard... a fellow coder!

    Just thought about this again, & have before: Perhaps a CRC-32 check would be better, & one of the apps uses it w/ 5 other known & respected algorithms to check for duplicated files...

    I ought to PINCH that, ALL 5 methods of check, via copy of course, outta the duplicate filefinder & iirc, I did 1 large function for it? I could make THAT an even better way to really do it, totally sure, bit slower (fast enough), but ABSOLUTELY sure...

    Ah, maybe the next person I hand the code too will take it there instead... who knows... apk

    APK

    P.S.=> Good idea to build that in, only takes a bit more time, don't you think? Just like errtrapping for abends off API calls even, as well as homebuilt functions... a better immunity system against malfunction... your thoughts are appreciated on this note W1zz...

    Either that, or I gave him enough to try hack it... ugh, disassembly!!! Shame on you if so, lol... apk
     
    Last edited: Dec 13, 2006

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page