Kind of reverse engineering

Thread Tools Search this Thread
Operating Systems Linux Kind of reverse engineering
# 1  
Old 02-28-2013
Code Kind of reverse engineering

Hi everyone,
I'm a linux novice , in a training purpose i have to reconstruct under windows an application running under fedora 14, the application communicates with an STB device through RS232 in a first time and then through ethernet for firmware loading purpose.
All what i know is how to run the application then it shows some informations as "plug the RS232 connecter, restart the STB... " then if done it proceed to send files through RS232 then it reboot the device then it loads other files through ethernet
What i need is to interpret how it communicates with the device, what commands it sends to the device and what it recieves so i can develop my own application in windows, a sort of reverse engineering.

Can you guys help me please?
# 2  
Old 03-01-2013
I'd say that you would want to trace the program. On linux, the strace and ptrace commands would be the tools of choice I'd say. I typically use strace with the '-f' flag to instruct it to follow any child processes it starts.

You'll be able to see any raw writes and reads to the serial device.

To get deeper and actually capture the exact data flow, you'd likely need to create a named pipe, connect that to a script that just dumps all data it seems and then passes it on to the serial port, then point the code you are reverse engineering at your new dummy "serial port" device.

You might also be able to do something crafty with a windows PC and two serial ports. Connect one to the linux host, the other to the STB. Then write a short program to capture all serial traffic on either port, and send it to the other - ie a packet sniffer for serial traffic.
(I say windows just because it sounds like you are more comfortable coding on that)
# 3  
Old 03-05-2013
Thanks for your reply Dragon, yes i was already working on a hardware solution spying the serial connexion, and yes i'm more confortable with windows coz im not a linux expert and i found many difficulties using commands as a novice, and same that i have to work on windows coz the project concerns windows users,
but at the same time i wanted to do the spying stuff with a linux intern software solution coz i like it but... im not able to do so far...
Now i already acheaved some good results using hard solution and i'm moving on.

thanks for your attention Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Legacy Ultra60 with Solaris 5.7 SCSI device reverse engineering

I'm looking for help with a legacy system. I have some obsolete equipment connected to an Ultra 60 running Solaris 5.7 with the binary for a 32 bit driver. The driver is rejected by newer versions of solaris, which run 64 bit kernels. I hope to reverse engineer the driver so that I can... (0 Replies)
Discussion started by: obsoleteStuff
0 Replies

2. Shell Programming and Scripting

awk, shell script reverse engineering app generator - project

Hi, this is fantastic forum for shell programming and scripting, so please let me to introduce you with my very old concept to have web form/s with radio, select, input fields and have an application generating valid, syntax error free scripting code. The same or alike questions are asked... (2 Replies)
Discussion started by: darius2
2 Replies

3. Shell Programming and Scripting

Sampling and Binning- Engineering problem

Hi everyone! Can you please help me with some shell scripting? I have an input file input.txt It has 3 columns (Time, Event, Value) Time event Value 03:38:22 A 57 03:38:23 A 56 03:38:24 B 24 03:38:25 C 51 03:38:26 B 7 03:38:26 ... (7 Replies)
Discussion started by: Needhelp2
7 Replies

4. Programming

Performance engineering concepts

Hello, I would like get idea about performance enginering from basic to advanced level. Do anyone know a place where i can find some videos related to performance engineering ? (5 Replies)
Discussion started by: shafi2all
5 Replies
Login or Register to Ask a Question

Featured Tech Videos