• We've upgraded our forums. Please post any issues/requests in this thread.

Need C++ programing help

Fox34

New Member
Joined
May 9, 2006
Messages
2,048 (0.48/day)
Likes
96
Location
Venice
System Name Amber
Processor AMD Athlon 64 x2 3800+ Toledo 3.0GHz/2.0GHz 1.5V
Motherboard DFI Lanparty UT NF4 SLI Expert
Cooling Air: 1 80mm-Intake-top | 4-120mm 3-intake-1-exhaust | Proc 120mm blue orbII | N.B-T.T Key 3|
Memory 2GIG, 4x512 Kingston Hyper-X DDR333 PC 2700@167Mhz |2-2-2-5|-7-1T-8(CPU-Z) Dual channel
Video Card(s) 2 PNY Verto 8600GT'S in SLI, 670MHz/540MHz(Core)800MHz/700MHz
Storage 320 Gig Western digital SATA
Display(s) Sony 17" LCD 1280x1024 @ 75Htz
Case Sunbeam clear acrylic
Audio Device(s) Native Instuments Guitar Rig 3
Power Supply 520 Watt Aspire Dual rail +12#1 16 amps +12#2 18 amps(I think)
Software Fedora Core 8, Windows Vista
#1
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?
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
17,074 (3.44/day)
Likes
17,991
Processor Core i7-4790K
Memory 16 GB
Video Card(s) GTX 1080
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 7
#2
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
 

Fox34

New Member
Joined
May 9, 2006
Messages
2,048 (0.48/day)
Likes
96
Location
Venice
System Name Amber
Processor AMD Athlon 64 x2 3800+ Toledo 3.0GHz/2.0GHz 1.5V
Motherboard DFI Lanparty UT NF4 SLI Expert
Cooling Air: 1 80mm-Intake-top | 4-120mm 3-intake-1-exhaust | Proc 120mm blue orbII | N.B-T.T Key 3|
Memory 2GIG, 4x512 Kingston Hyper-X DDR333 PC 2700@167Mhz |2-2-2-5|-7-1T-8(CPU-Z) Dual channel
Video Card(s) 2 PNY Verto 8600GT'S in SLI, 670MHz/540MHz(Core)800MHz/700MHz
Storage 320 Gig Western digital SATA
Display(s) Sony 17" LCD 1280x1024 @ 75Htz
Case Sunbeam clear acrylic
Audio Device(s) Native Instuments Guitar Rig 3
Power Supply 520 Watt Aspire Dual rail +12#1 16 amps +12#2 18 amps(I think)
Software Fedora Core 8, Windows Vista
#3
damnit
 
Joined
May 15, 2006
Messages
4,677 (1.10/day)
Likes
86
Location
Someone who's going to find NewTekie1 and teach hi
Processor DualCore AMD Athlon 64x2 4800+ (o/c 2801mhz STABLE (Ketxxx, POGE, Tatty One, ME))
Motherboard ASUS A8N-SLI Premium (PCIe x16, x4, x1)
Cooling PhaseChange Coolermaster CM754/939 (fan/heatsink), Thermalright heatspreaders + fan built on (RAM)
Memory 512mb PC-3200 DDR400 (set DDR-33 for o/c) by Corsair (matched pair, 2x256mb) 200.1/200mhz
Video Card(s) BFG GeForce 7900 GTX OC 512mb GDDR3 ram (o/c manually to 686 core/865 memory) - PhaseChange cooled
Storage Dual "Raptor X" 16mb 10krpm/RAID 0 Promise EX8350 x4 PCIe 128mb & Intel IO chip/CENATEK RocketDrive
Display(s) SONY 19" Trinitron MultiScan 400ps 1600x1200 75hz refresh 32-bit color
Case Antec Super-LanBoy (aluminum baby-tower w/ lower front & upper rear cooling exhaust fans)
Audio Device(s) RealTek AC97 onboard mobo stereo sound (Altec Lansing ACS-45 speakers - 10 yrs. still running!)
Power Supply Antec 500w ATX 2.0 "SmartPower" powersupply
Software Windows Server 2003 SP #1 fully patched, & massively tuned/tweaked to-the-max (plus latest drivers)
#4
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:

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
17,074 (3.44/day)
Likes
17,991
Processor Core i7-4790K
Memory 16 GB
Video Card(s) GTX 1080
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 7
#5
IsDebuggerPresent doesnt trigger on disassembler
 
Joined
May 15, 2006
Messages
4,677 (1.10/day)
Likes
86
Location
Someone who's going to find NewTekie1 and teach hi
Processor DualCore AMD Athlon 64x2 4800+ (o/c 2801mhz STABLE (Ketxxx, POGE, Tatty One, ME))
Motherboard ASUS A8N-SLI Premium (PCIe x16, x4, x1)
Cooling PhaseChange Coolermaster CM754/939 (fan/heatsink), Thermalright heatspreaders + fan built on (RAM)
Memory 512mb PC-3200 DDR400 (set DDR-33 for o/c) by Corsair (matched pair, 2x256mb) 200.1/200mhz
Video Card(s) BFG GeForce 7900 GTX OC 512mb GDDR3 ram (o/c manually to 686 core/865 memory) - PhaseChange cooled
Storage Dual "Raptor X" 16mb 10krpm/RAID 0 Promise EX8350 x4 PCIe 128mb & Intel IO chip/CENATEK RocketDrive
Display(s) SONY 19" Trinitron MultiScan 400ps 1600x1200 75hz refresh 32-bit color
Case Antec Super-LanBoy (aluminum baby-tower w/ lower front & upper rear cooling exhaust fans)
Audio Device(s) RealTek AC97 onboard mobo stereo sound (Altec Lansing ACS-45 speakers - 10 yrs. still running!)
Power Supply Antec 500w ATX 2.0 "SmartPower" powersupply
Software Windows Server 2003 SP #1 fully patched, & massively tuned/tweaked to-the-max (plus latest drivers)
#6
IsDebuggerPresent doesnt trigger on disassembler
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:
Joined
May 15, 2006
Messages
4,677 (1.10/day)
Likes
86
Location
Someone who's going to find NewTekie1 and teach hi
Processor DualCore AMD Athlon 64x2 4800+ (o/c 2801mhz STABLE (Ketxxx, POGE, Tatty One, ME))
Motherboard ASUS A8N-SLI Premium (PCIe x16, x4, x1)
Cooling PhaseChange Coolermaster CM754/939 (fan/heatsink), Thermalright heatspreaders + fan built on (RAM)
Memory 512mb PC-3200 DDR400 (set DDR-33 for o/c) by Corsair (matched pair, 2x256mb) 200.1/200mhz
Video Card(s) BFG GeForce 7900 GTX OC 512mb GDDR3 ram (o/c manually to 686 core/865 memory) - PhaseChange cooled
Storage Dual "Raptor X" 16mb 10krpm/RAID 0 Promise EX8350 x4 PCIe 128mb & Intel IO chip/CENATEK RocketDrive
Display(s) SONY 19" Trinitron MultiScan 400ps 1600x1200 75hz refresh 32-bit color
Case Antec Super-LanBoy (aluminum baby-tower w/ lower front & upper rear cooling exhaust fans)
Audio Device(s) RealTek AC97 onboard mobo stereo sound (Altec Lansing ACS-45 speakers - 10 yrs. still running!)
Power Supply Antec 500w ATX 2.0 "SmartPower" powersupply
Software Windows Server 2003 SP #1 fully patched, & massively tuned/tweaked to-the-max (plus latest drivers)
#7
^
|

"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: