10 Replies - 581 Views - Last Post: 04 November 2017 - 11:49 AM Rate Topic: -----

#1 zimajetu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 17

Recovered PHP file in unknown language

Posted 01 November 2017 - 06:28 AM

Hello, I have one question.

I have php files that have been restored (deleted files, lost files etc) with Recuva program (v. 1.53.1087 - last version).

The problem is because the files are restored in an unknown language.

Example of simple, shot php file. How can I convert to php or original file text. Please, help.

Unknown recovered text in file:

31E383553A34E08ABB6401725011F1970B1D4011CB9D98D821D794008749839DBA006A8000007038004D312B50DDF67343D14EE25234780CC0E1D3292131C8233308001E8811C404463C305B50805008C9902118E131830F1A299986949999F985948E84101F18A099A2E99A7819A1898395CD0010C2C30C70B0D0020C8C8CCDA4CDACCB3C96D124CD24051442C314101060A1CCD44CD35BC780D019DC4C4876007FA42F4B7F0244E9D805EBB9BD0ECA2FEE9DCD535546CB1551310BE4FAA97D7EFFFFFFFFFE5DFDD2D97960360021145045D29BA91059F43897DA076161518D8200201326952409A1E2D029412018C180705091082581DF558701025A3566514407C0FB7C5C881DB12C3CEBE13D023A34CDCE5F2F7FA5561F8913F1AC7F5847E5915645148450CAD8A418D4B5845DEC9249E4D51AD3617FDF2872D286985A20982AD618B26E9BA2C59CCE6B18C42B861700D078C8A4F8D04AC8A0CA31D040CA86561E551F8203260C084B4CDE0330215CD1B83311830047C32B010C007C245A1990086A3511911140AAB861F4E4C6733545CC3E163048A8301E322D0261808C013346841C2479CD8B2E9088688449B30A6063985751F2D881B77D1704800780F3040543068C531E4A832289F39308731943531D0DE319FFFBD264DA06F8C55D4D2B9BC9F080A3A8F0779A5A23417534CEEF2EC1DB0EA4C1DDE93009C318C503238BF2B0B8C401E8C41088C2013CC12320D2A1A8C291340A4C230F213338C0F3622D3785C062F0388446406405E61952658AA300861C12602FE0820574213F3031030F024200419BDA33149332036A0420AE6BA79162E34ACDB213EDCB67A48025A890530EEB88F1C371675A0377256C5A24B5A5C9B92C86191B7297B0248E6A16215877FFFFFFFFFFFF7762EC061A5960E251257E2C0BD4A8D5CB644ED2D53080C497422E814B2B18C42C5116164C2980426220099D30551F2F6B762D8B0E46E68729942D687A9A5DB8F48E99E2EDF94B297F60BF87DE76CF2BC394948ECB6099C1B1E2E1C0EDEC02FE46


PSPad editor:
[img]http://shrani.si/f/3T/9y/23HDuWu4/pspad.png[/img]

Notepad++
[img]http://shrani.si/f/1W/Gx/P3WZSj7/notepaddddddd.png[/img]

Is This A Good Question/Topic? 0
  • +

Replies To: Recovered PHP file in unknown language

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 4136
  • View blog
  • Posts: 13,051
  • Joined: 08-June 10

Re: Recovered PHP file in unknown language

Posted 01 November 2017 - 06:48 AM

that's not a different language, that's just encoded. but don't ask me which encoding (it uses the hexadecimal alphabet)
Was This Post Helpful? 0
  • +
  • -

#3 ArtificialSoldier  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1828
  • View blog
  • Posts: 5,755
  • Joined: 15-January 14

Re: Recovered PHP file in unknown language

Posted 02 November 2017 - 09:59 AM

That could just be the hex representation of ASCII or UTF text.
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 4136
  • View blog
  • Posts: 13,051
  • Joined: 08-June 10

Re: Recovered PHP file in unknown language

Posted 02 November 2017 - 10:01 AM

definitely not ASCII since that only goes as far as 7F.
Was This Post Helpful? 0
  • +
  • -

#5 zimajetu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 17

Re: Recovered PHP file in unknown language

Posted 03 November 2017 - 08:10 AM

Thank you very much for your help.

I do not know how to convert back to php. :( I have about 20 files. If anyone can help me, please suggest.

Thank you!
Was This Post Helpful? 0
  • +
  • -

#6 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3714
  • Posts: 13,468
  • Joined: 08-August 08

Re: Recovered PHP file in unknown language

Posted 03 November 2017 - 10:36 AM

Are you sure they're php?
Have you tried using http://php.net/manua...se64-decode.php
on them?
Was This Post Helpful? 0
  • +
  • -

#7 zimajetu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 17

Re: Recovered PHP file in unknown language

Posted 03 November 2017 - 11:09 AM

Yes, it is php. These are my files, but they have been deleted. Everything has already been overwritten (on disc, usb).

I tried with base64_decode, but unsuccessful.

I do not know, maybe the recovery failed. I do not know why this program encrypts my code. I have PHP code in files.

Thank you
Was This Post Helpful? 0
  • +
  • -

#8 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 4136
  • View blog
  • Posts: 13,051
  • Joined: 08-June 10

Re: Recovered PHP file in unknown language

Posted 03 November 2017 - 11:12 AM

Quote

Everything has already been overwritten (on disc, usb).

if it's overwritten then there's nothing you can do. from that it looks like you were affected by one of those ransom wares that encode your files.
Was This Post Helpful? 0
  • +
  • -

#9 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3714
  • Posts: 13,468
  • Joined: 08-August 08

Re: Recovered PHP file in unknown language

Posted 03 November 2017 - 02:18 PM

You do have backups, right?
Was This Post Helpful? 0
  • +
  • -

#10 zimajetu  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 01-November 17

Re: Recovered PHP file in unknown language

Posted 04 November 2017 - 07:48 AM

I tried several programs. One of them shows me the code, but that program did not support sql files (these files have thousands of records). I do not know what to do, it's probably all lost.

No, I do not have backup copies. :(
Was This Post Helpful? 0
  • +
  • -

#11 benanamen  Icon User is offline

  • D.I.C Head

Reputation: 17
  • View blog
  • Posts: 131
  • Joined: 28-March 15

Re: Recovered PHP file in unknown language

Posted 04 November 2017 - 11:49 AM

Quote

No, I do not have backup copies.


Here is your real problem. Now that you have experienced first hand the "pain" of losing files you deem important, now would be a great time to devise a suitable backup plan. Part of that plan should include remote offsite backups. There are numerous free options such as dropbox, etc. There are also numerous backup applications that would work automatically.

For code specifically, you would also want to set up a code repository such as Github or Bitbucket. While not intended as a "backup", it will very well serve as one along with many other reasons for having it.

Obviously, if you had a backup system in place this would be a complete non issue.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1