Changing A File Extension
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33

Thread: Changing A File Extension

  1. #1

    Changing A File Extension

    If you change a file like a .mp3 one, let's say, to a .123 one, so that it can't be opened, is there any way to recover the orginal file?
    Neon Security

    It\'s time to put an end to malicious code & black hat hackers - Use a firewall and anti virus!

  2. #2
    Join Date
    Aug 2001
    Renaming it back to the original extension?

  3. #3
    Join Date
    Aug 2004
    Erm.. perhaps I've misunderstood the question but if you've simply renamed a file extension from, say, .aaa to .bbb, changing it back to .aaa will return it to its original file association group.
    # Now if I ever needed inspiration,
    Right about now where I lose my patience,

  4. #4
    Senior Member
    Join Date
    Apr 2004
    the association is with extension, not with the file. You can change how many time you want, just returning to correct one before use it
    Meu sítio

    FORMAT C: Yes ...Yes??? ...Nooooo!!! ^C ^C ^C ^C ^C
    If I die before I sleep, I pray the Lord my soul to encrypt.
    If I die before I wake, I pray the Lord my soul to brake.

  5. #5
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    It is possible to corrupt a file like that though. So, make sure you have a backup...

    Say you have a .exe and then rename it .123
    Since .123 is actually a lotus spreadsheet... someone can open it with a spreadsheet ap.
    Lotus won't be able to understand it and will ask the user to convert it.
    If they save after the conversion... and then you rename it back .exe, it will be corrupt.

    I've played around a bit just seeing what would happen if I did this, or that...
    I get bored sometimes...

    So, if you rename a file extention, then don't do anything to it again before renaming it back... it will be fine.

    I know I have to do that sometimes when sending emails.

    Since everyone started stripping .zip files (thanks to recent viruses) I can rename the file to a .zif and just tell whoever I'm mailing to rename it back to .zip.
    Quitmzilla is a firefox extension that gives you stats on how long you have quit smoking, how much money you\'ve saved, how much you haven\'t smoked and recent milestones. Very helpful for people who quit smoking and used to smoke at their computers... Helps out with the urges.

  6. #6
    Junior Member
    Join Date
    Feb 2004
    Washington DC
    I do that too, since our mail servers(or firewall) strip the *.mpg, *.avi, *.zip, etc. It was the most obvious thing to do, in my mind. Even had to make a little text file explaing to my jughead friends how to get the file back to the original extension to play it or what not. I usually rename to .aaa or just no extension at all. It's kind of annoying to do that all the time, but at least the files get through this way.
    The Fueley
    54 68 65 20 46 75 65 6C 65 79

  7. #7
    AO Ancient: Team Leader
    Join Date
    Oct 2002

    Since everyone started stripping .zip files (thanks to recent viruses) I can rename the file to a .zif and just tell whoever I'm mailing to rename it back to .zip.
    Thanks for telling the virus authors in public how to socially engineer my (L)users and bypass my firewall mail protection..... They didn't get the "don't put the password into password protected zips" bit of advice so I had to block them, (I could tell by the number of dumb questions).
    Don\'t SYN us.... We\'ll SYN you.....
    \"A nation that draws too broad a difference between its scholars and its warriors will have its thinking done by cowards, and its fighting done by fools.\" - Thucydides

  8. #8
    Senior Member
    Join Date
    Jul 2003
    What you don't want to be doing is rename an .exe file to something like .txt. I mean, you could want to - but it would obviously be a large frigging text file. Point is, MS decided it's not a big issue that CMD.EXE executes any file that is an executable, even if it doesn't have the executable extension. Unfortunately this poses a greater security risk then most care to admit...

    As for your question... do you mean can somebody realize what file it is, originally? They could probably break it down using a hex editor and try to do a look-up on the header of the file, in order to detect what it could be. MP3s usually have the title in the first few bytes, .avi containst the line '.avi' close to the top, and .mpg might require a bit more to find - but nothing difficult. Of course for different files there are different situations...

    If you only meant the file extension change, I guess you should also read up on file systems and their allocation tables, in order to get maybe a better understanding of what exactly filenames are and everything related.

  9. #9
    Senior Member
    Join Date
    Nov 2001
    TS you cant tell me you allow .zif files threw your firewall. i know better than that.

    TheFueley you could always uu encode it and send it as a txt attachment then tell the recipiant to change the extention of the attachment to uue. the icon will instantly change to that of a zip file and winzip will be able to open it and what you've sent will be inside the zip.
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

  10. #10
    Keeping The Balance CybertecOne's Avatar
    Join Date
    Aug 2004
    i think what he is asking, is if you change the filename extention to .123 for example, is there a way to tell WHAT the original extention was?? in otherwords, if i change to matrix.mpg -
    obviously windows media player wont open it, but is there a way to discover what it was originally??? is that what you were asking??
    "Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction."
    - Albert Einstein

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts