Click to See Complete Forum and Search --> : File extension problem


chrisrock79
09-11-2005, 02:31 PM
I am working with(rather, trying to work with) web pages with ".rcc" file extension. I can't figure out what these are or find a valid editor so that I can atleast see them. Please help if you know where any information is.

Thanks
Chris

felgall
09-11-2005, 03:16 PM
Have you tried opening it in notepad to see if the content gives any idea as to what sort of program it expects.

chrisrock79
09-11-2005, 03:43 PM
Yes I have but I am only familiar with PHP, so if there is a clue, I don't think I would be able to see it. It looks like this in notepad

ELF    4 T{# 4  ( % "  4 44      4 44            `  `      x xd xd     H HH   Ptd6     Qtd   /lib/ld-linux.so.2    GNU    . l z  ? \  + { J p e ] N 1 7 w - W  E ! I  F _  * n  ^ G R i h  C o 8 c   |  x  K  t v Y 0 u       )   $
< ( # 4 9 ' % 5 = : > H A * " B 2 U L `
X Q  Z S & ; , O  j M 6 r g  3 k @ D /   [  V T  P s q a m b ~ y } f d < Աe   
  I    J,     R
$O 

4[   h  !   ~ D
 t 0h  !  T7  ? d  & xd   Y tB  u A  /    Ph    v $ " ?      $ IJj  t Բ  = E   h  !  V      x h @    K  D $
 Q dj "  4  & D   @! " O Tk  T d  % t  M &   d  & t " b   o `  ! 
  e ij  @ Գe   5   I  $    Z $  | 4<  I
0i  !  ? D*  Tm 
dI  tl  D  
d       w  N   Ĵc   ԴX 
N  3 +  \ e   8i @ !  { &  c xi    G j    / $   j D !   4V   Dv   ,  $ T  B ! " % "  d   t  J    r   j ( !  V 
 T e   ĵN  l Ե   \  j ?   1 " < k  !  l  
$M 
4H 
 D  e T  d d   t  -   f    4   ? 
Ķ   ԶI       [ 5   s  4
  j @ 
 h  
$   o "  4  q DF  Z
T  | d   t5     ,   `` @ !  ' k ( !    x 
F '     ķ  F Է     1   |  5   $   4^  = D  q T  > dX   t  b 8k  !      S  | Pk  !     [   ĸ?   Ը   Z   h      e    n      7   { $.  4  j
D+  C Te   1 !   d   t.  \ j "  z     d O   o   Dx    Ĺ1 " 5
Xk    r Թ9   L  ] m  
   Y  S $&   4x  q DX  ] hk  !  !
T   pk @ !   d  * t7  b e         ~   ĺ   Ժ\   libmysqlclient.so.10 mysql_fetch_row _DYNAMIC mysql_insert_id mysql_init mysql_close mysql_num_rows mysql_errno mysql_ping mysql_error mysql_num_fields _fini mysql_free_result mysql_use_result mysql_query _GLOBAL_OFFSET_TABLE_ mysql_real_connect _Jv_RegisterClasses mysql_fetch_lengths __gmon_start__ libstdc++.so.5 _ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj _Znaj _ZNSt24__default_alloc_templateILb1ELi0EE12_S_free_listE _ZNSs6assignEPKcj _

That is just the first few lines, there are many many more. Near the bottom I see MySql commands, but that isn't helping me much. Within this huge document I am able to find the text which I am trying to change, but can't actually upload it back and it actually display. I already went through the entire database to try and find the text I was attempting to change, but it isn't in there, so it seems it was placed(static) in the actual code.

Thanks for the reply, and if there is any information that may help you help me, please let me know.

Thanks
Chris

ray326
09-11-2005, 05:55 PM
That's a Linux executable, not a script.

LiLcRaZyFuZzY
09-11-2005, 06:12 PM
well, its is not the case for that extension, but if i can give you a useful link -> http://filext.com and enter your extension,e.g. txt for *.txt and it gives you either a description and/or a list of programs that can read/write these files

bathurst_guy
09-11-2005, 06:43 PM
windows only care about what the extention means, you can name it .stupid and it wont make a difference to the file.

LiLcRaZyFuZzY
09-11-2005, 06:52 PM
well, it does depend with what program you create this file

bathurst_guy
09-11-2005, 07:20 PM
well you cant make a linux executable with photoshop

chrisrock79
09-11-2005, 11:34 PM
well, its is not the case for that extension, but if i can give you a useful link -> http://filext.com and enter your extension,e.g. txt for *.txt and it gives you either a description and/or a list of programs that can read/write these files
Yes, thankyou. I tried that first but as you know, I couldn't find it there.

ray326, could you elaborate please? I need to make some changes within a site and am having a tough time. Most of the changes I was able to make by adjusting the style sheet and just re-naming some of the images. The problem for me lies in changing some of the text. Is there a program which allows me to view these Linux executables as human readable code?

Thanks all for your help.

Chris

ray326
09-12-2005, 11:23 PM
Not really. That file is the output of something like a C compiler. All I can figure is that it's actually meant to be used via CGI. It makes no other sense to me.

chrisrock79
09-12-2005, 11:38 PM
Actually ray326, you helped more than you think just by saying it was a linux executable. I put those first 3 letters 'ELF' with 'linux executable' in google and am beginning to make some progress(I think). I am still unable to change anything, but you pointed me in the right direction. Rather be making some small progress than at a dead end :)

Next stop: find a 'C compiler' and hope it can present all that in a readable format.

Thanks again, and if anyone else cares to jump in, I'm all ears.

Chris

bathurst_guy
09-13-2005, 12:46 AM
wouldnt you need a 'C decompilier', if there is such a thing... from what I know once its compiled, its compiled. You need the original script to change then compile that once your done.

chrisrock79
09-13-2005, 10:45 AM
wouldnt you need a 'C decompilier', if there is such a thing... from what I know once its compiled, its compiled. You need the original script to change then compile that once your done.
Yes.

I found http://www.backerstreet.com/rec/rec.htm , which as far as I can tell is the best decompiler. However, even the best decompiler can't re-create the source, which is ultimately what I need to be able to make that text change. Without understanding how a compiler puts together code, a decompiler will only give you a lot of things to look at that you wish you knew how to work with(or me, atleast):) I think I will use PHP and re-do this. Because the old webmaster took the source code, it causes too much difficulty for people who help him after me anyway, better to start over I think.

Thanks all.

Chris

felgall
09-13-2005, 03:37 PM
What you need to make your change is the source file that was compiled to create that executable. If you can't get the source file then the only other possibility is to patch the executable but that is only possible for very small changes and requires a thorough knowledge of what all of the machine code means.

chrisrock79
09-13-2005, 03:57 PM
Thanks for the reply Stephen. That is the conclusion I came to early this morning after using a decompiler and learning more about Linux in 2 days than I had so far in my life. So, I'm writing a new program for him in PHP and will just connect to the same database.
If anything, I learned I should learn more about Linux so from now on it will be included in my studies. :)

Thanks again.

Chris