LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2009, 12:22 PM   #16
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908

If the name of the file which your falcon application reads is a string hardcoded into the object code, you may be able to simply edit the binary using a hex editor. The string containing the name of the file to open can be modified, with some limitations. I have just tried this on an X-86 binary created from C source with gcc. When editing the embedded string, you should not make the new string longer than the original, and you may have to add a terminating '\0' null. I used an unknown binary/hex editor I found on my Fedora 9 installation. I know there are numerous others of these, or you could write code to do it quite easily.

--- rod.
 
Old 07-02-2009, 06:07 AM   #17
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
^
I had a look inside using strings and couldn't see anything that looked promising.
I have attached the output for anyone that wants to have a look.
Attached Files
File Type: txt falcon.strings.txt (9.7 KB, 13 views)

Last edited by nowonmai; 07-02-2009 at 06:09 AM. Reason: file attacher wanted a 'valid' extension... what is this? Windows?
 
Old 10-18-2010, 04:14 PM   #18
superstring
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
You can use ghex2 to modify the file. Just find /proc/board_info within the file with ghex2 and make a new directory that has the same amount of characters as 'proc'. Example: dock

Do this:

mkdir /dock
mkdir /dock/board_info
cd /dock/board_info
cp /proc/board_info/* .


Then change your 'serial_number' file to a new DID
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
programming a service ilhbutshm Programming 7 03-12-2004 12:42 AM
programming service in linux herambshembekar Programming 2 04-07-2002 07:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration