Forum     

Go Back   Digit Technology Discussion Forum > Bandwidth Wastage > Chit-Chat
Register FAQ Calendar Mark Forums Read

Chit-Chat General discussions about anything that doesn't fit into the other sections to be had here

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 03-01-2008, 10:26 PM   #1 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Question Cant we hack closed source files?

I am just having this doubt for years...we all know that .exe files in windows are right in front of us...even though why cant we just modify them just like open source files?what is open source then..they give yöü the code..am i right?
Why cant we just get the code from windows files and modify to our need?
May be its a stupid question but has been lingering in my mind for years.
Explain in understandable english..
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 03-01-2008, 10:28 PM   #2 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: Cant we hack closed source files?

Reverse engineering is not always possible. Meaning, its not easy to get the source code from a binary.

However, wid stuff like Resource Hacker you can do small changes here and there in hex.
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 03-01-2008, 10:34 PM   #3 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Cant we hack closed source files?

Why cant we?
We have the total file ! Then whats the problem?
What are executable files?
Wont they have codes?
I dont get it.
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 03-01-2008, 10:43 PM   #4 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,340
Default Re: Cant we hack closed source files?

^^source code is what you write to make programs.Some languages don't need compiling but most do.Compiler turns your source code in machine understandable hex code\instructions.You cannot recover full source code from executibles.Though you can make small changes to it via some hex editor(this is how games\softwares are cracked).got it?
__________________
Stealing your women and horses since 1843.
The_Devil_Himself is offline  
Old 03-01-2008, 10:51 PM   #5 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Cant we hack closed source files?

So what comes out cant be recovered??
It sounds like some encryption thing...
Cant we just program a software to re encode them to source code?
Is it that impossible..
.exe or other files has been here for so long time and there is no software to do the job?weird
Anyway thanks for the replies
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 03-01-2008, 10:59 PM   #6 (permalink)
die blizzard die! D3?
 
The_Devil_Himself's Avatar
 
Join Date: Aug 2007
Location: Event horizon
Posts: 2,340
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by naveen_reloaded View Post
So what comes out cant be recovered??
It sounds like some encryption thing...
Cant we just program a software to re encode them to source code?
Is it that impossible..
.exe or other files has been here for so long time and there is no software to do the job?weird
Anyway thanks for the replies
thats called reverse engineering.It is nearly impossible to recover the source code.But wth you can go ahead and try coding some program to do it.

ANd yea its not encryption its source code(human readable form) to hex instructions(machine readable form) conversion.
__________________
Stealing your women and horses since 1843.
The_Devil_Himself is offline  
Old 03-01-2008, 11:13 PM   #7 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Cant we hack closed source files?

We know how it converts then cant we write a program to reverse it.sorry i am not a programmer.
Just curious thats all.
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 03-01-2008, 11:20 PM   #8 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,109
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by naveen_reloaded View Post
We know how it converts then cant we write a program to reverse it.sorry i am not a programmer.
Just curious thats all.
ok here is one example, u got the exe and now u reached a location where branching occurs so u gotta choose a branching construct to write the corresponding source code line

There are two ways to choose a branching construct
1) Use if elseif construct
2) Use switch case
3) Tertiary construct

Now u reached at one segment where there are some chars stored.

U can either use:
1) a char pointer
2) a char array
3) a char pointer array
4) String class

Anything chosen wrong will limit everything

So its pretty hard to get the right construct that the programmer used.
__________________
Steam/Flickr: psygeist
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X+Corsair Vengeance|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 03-01-2008, 11:32 PM   #9 (permalink)
Wise Old Owl
 
dOm1naTOr's Avatar
 
Join Date: Mar 2005
Location: shhhh!!!!! on a sniper point
Posts: 4,151
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by T159 View Post
ok here is one example, u got the exe and now u reached a location where branching occurs so u gotta choose a branching construct to write the corresponding source code line

There are two ways to choose a branching construct
1) Use if elseif construct
2) Use switch case
3) Tertiary construct

Now u reached at one segment where there are some chars stored.

U can either use:
1) a char pointer
2) a char array
3) a char pointer array
4) String class

Anything chosen wrong will limit everything

So its pretty hard to get the right construct that the programmer used.
Then how windows is able to work with such diversely coded exe's?
If windows can execute correctly, then it might have choosen the right construct or somethin that the pgmr intend to while coding. Then why can't a reverse engg s/w do the same?

And how windows is able to choose such right constructs fron a pgm?
__________________
G1: PII X4 B50 4.0 | TRUE 120*2 | TA790GXB A2+ | 4GB DDR2 GSkill 1200 | Audigy 2 | HD4870 | HEC 550 | MX 518.
G2: AII 240 | M2N 68AM+ | 3GB| 8800GT | Zebby Plat 500
G3: XPS M1530 |
FZ 16.
dOm1naTOr is offline  
Old 03-01-2008, 11:37 PM   #10 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,109
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by aravind_n20 View Post
Then how windows is able to work with such diversely coded exe's?
If windows can execute correctly, then it might have choosen the right construct or somethin that the pgmr intend to while coding. Then why can't a reverse engg s/w do the same?

And how windows is able to choose such right constructs fron a pgm?
exes are a compilation of machine code and other linked libraries reference.

machine code is always a one way to destination type code, u ca only code in one way to do things.

But source code have many alternate way to do same things (a program can be made using pointers or without pointers)
__________________
Steam/Flickr: psygeist
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X+Corsair Vengeance|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 03-01-2008, 11:39 PM   #11 (permalink)
The No.1 Stupid
 
~Phenom~'s Avatar
 
Join Date: May 2005
Location: CYBERYARD
Posts: 1,705
Smile Re: Cant we hack closed source files?

Quote:
Originally Posted by naveen_reloaded View Post
We know how it converts then cant we write a program to reverse it.sorry i am not a programmer.
Just curious thats all.
Its really hard to explain all this to a non-programmer.
__________________
n00b forever...
~Phenom~ is offline  
Old 04-01-2008, 12:40 AM   #12 (permalink)
!! RecuZant By Birth !!
 
naveen_reloaded's Avatar
 
Join Date: May 2005
Location: In Everyone`s Heart
Posts: 2,985
Default Re: Cant we hack closed source files?

So why cant we create a programme to track the path back.. Try different paths and branching and arrive at source code?i think thats enough for me.from here i wont able to understand.thanks guys for posting your replies.
__________________
Know My Thoughts..
Visit my Blog @ www.Urssiva.com
Visit My Tech Blog @ www.CloudTechnica.com
naveen_reloaded is offline  
Old 04-01-2008, 12:57 AM   #13 (permalink)
in search of myself
 
CadCrazy's Avatar
 
Join Date: Sep 2006
Location: Gurgaon
Posts: 1,719
Default Re: Cant we hack closed source files?

You need to program an artifically intelligent(AI) software for this
__________________
::::::::::::::::::::
Unban Praka123
::::::::::::::::::::
Vista is my Secretary | Mac is my Girlfriend | Linux is my Wife
"Ek Se Mera Kya Hoga"
CadCrazy is offline  
Old 04-01-2008, 09:58 AM   #14 (permalink)
Pat
Member of Apple Family
 
Pat's Avatar
 
Join Date: Nov 2007
Location: Mumbai
Posts: 1,383
Default Re: Cant we hack closed source files?

^^How will AI help in this ? Its just not possible to get high-level source code from the executables! At the max,you can convert exes into assembly instructions like kenshin mentioned!
Pat is offline  
Old 04-01-2008, 10:52 AM   #15 (permalink)
Wise Old Owl
 
dOm1naTOr's Avatar
 
Join Date: Mar 2005
Location: shhhh!!!!! on a sniper point
Posts: 4,151
Default Re: Cant we hack closed source files?

@Kenshin
How from the hex code can we know
1. If it stands for a 1byte,2byte or 3byte instruction? We might just cont a theree byte instruction as a two byte and the next a 1byte....
how can it be done?
__________________
G1: PII X4 B50 4.0 | TRUE 120*2 | TA790GXB A2+ | 4GB DDR2 GSkill 1200 | Audigy 2 | HD4870 | HEC 550 | MX 518.
G2: AII 240 | M2N 68AM+ | 3GB| 8800GT | Zebby Plat 500
G3: XPS M1530 |
FZ 16.
dOm1naTOr is offline  
Old 04-01-2008, 12:42 PM   #16 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by aravind_n20 View Post
@Kenshin
How from the hex code can we know
1. If it stands for a 1byte,2byte or 3byte instruction? We might just cont a theree byte instruction as a two byte and the next a 1byte....
how can it be done?
Actually you will get a list of hex codes and the instructions for 8085 on a sheet. Each instr. has a discrete hex code. The machine knows the starting hex code for a 3 byte instr. and then takes the next two bytes as arguments.
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 04-01-2008, 01:54 PM   #17 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,109
Default Re: Cant we hack closed source files?

Dynamic programming and heuristic algos can help in finding optimal solutions but yet not the perfect ones, that means the source code will not pass boundary value analysis.

But it itself includes : Inductive logic programming, Genetic algos, Neural networks, Decision trees, Hidden Markov models and Bayes probability theorem.

That will surely makes it uber difficult if not impossible, u can make something but with assumptions.

8085 was still simpler, we were given a single page to lookup machine code.

But 8086 was entirely on opcode.
__________________
Steam/Flickr: psygeist
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X+Corsair Vengeance|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 04-01-2008, 01:54 PM   #18 (permalink)
Pee into the Wind...
 
shady_inc's Avatar
 
Join Date: May 2007
Location: Mumbai
Posts: 782
Default Re: Cant we hack closed source files?

Let's take a simplistic example:
You [end user] are at point B.A guy X [the program] from point A many miles away from you comes to point B.In his journey, he takes hundreds of turns and twists to reach B [the complex programming code].Now, he asks you to go to point A FOLLOWING THE EXACT ROUTE HE HAD FOLLOWED TO REACH B.!! [reverse engineering]It would be extremely difficult, if not impossible for you to take the same turns that X had taken on his journey

--What if the road ahead you splits in two both going towards A.??How would you know which route X had come from.?? [if else loop]
--What if the road splits in more than two branches.It would be even more tough to guess X's route now .... [switch case]

How easy it would have been if you had the map that X followed [source code].!!
__________________
Life is as complicated as you say it is.
shady_inc is offline  
Old 04-01-2008, 03:10 PM   #19 (permalink)
Be CoOl rAp RuLeZ !!!
 
krates's Avatar
 
Join Date: Feb 2007
Posts: 1,968
Default Re: Cant we hack closed source files?

Ask linux fans they always says that windows .exe can be easily exploited ,edited etc
__________________
iPhone 3G 16GB + Samsung I450 + Sennheiser CXL 400 + PSP Phat + Samsung NC10

Previous phones: N73ME , W810I , Asus P320
krates is offline  
Old 04-01-2008, 03:24 PM   #20 (permalink)
Pee into the Wind...
 
shady_inc's Avatar
 
Join Date: May 2007
Location: Mumbai
Posts: 782
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by kushagra_krates@yahoo.com
Ask linux fans they always says that windows .exe can be easily exploited ,edited etc
In case you didn't know, 5 outta 12 who replied here are "linux fans" ..
__________________
Life is as complicated as you say it is.
shady_inc is offline  
Old 04-01-2008, 04:49 PM   #21 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,109
Default Re: Cant we hack closed source files?

Quote:
Originally Posted by kushagra_krates@yahoo.com View Post
Ask linux fans they always says that windows .exe can be easily exploited ,edited etc
cant u see the difference ?? lol

Exploitation is different and reverse engineering is different

Quote:
Originally Posted by shady_inc View Post
In case you didn't know, 5 outta 12 who replied here are "linux fans" ..
ur avatar is driving me nuts
__________________
Steam/Flickr: psygeist
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X+Corsair Vengeance|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono

Last edited by Faun; 04-01-2008 at 04:49 PM. Reason: Automerged Doublepost
Faun is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DesiTorrents is closed :( soumya Chit-Chat 29 30-04-2008 11:32 AM
demonoid closed soumya Chit-Chat 13 28-06-2007 10:53 AM
Microsoft Goes Open Source?with part of silverlight source code expected to release praka123 Technology News 1 30-04-2007 11:00 AM
Closed Nilesh.Ravindran Mobiles and Tablets 3 25-04-2007 04:55 PM
can i convert installed files to source? chitvan QnA (read only) 3 16-10-2006 04:19 PM


All times are GMT +5.5. The time now is 04:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2