Learn more. How to display ioncube decoded php-file through PHP code? Ask Question. Asked 8 years, 1 month ago. Active 7 years, 11 months ago. Viewed 4k times. Improve this question. Nick 1, 10 10 silver badges 14 14 bronze badges. Molod Molod 6 6 silver badges 21 21 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Nick Nick 1, 10 10 silver badges 14 14 bronze badges.
Yep, that's what I thought at first - find open source file. Didn't found one. The next step is a bit more tedious. We now have to figure out what each of these lines of code does. As you do this, you'll start to see recognizable string values, function names and so on, being printed out. Here's an example of what I mean by going line by line.
In this case, I take note of what the variable contains by placing its value in a comment above it. Here we have our first function call. In PHP you can store function names in a variable and then call that variable like a regular function:. After all is said and done our program should now look like this:. Okay we've evaluated all the code and we can see now there's some familiar PHP in the comments. Our second to last step is going to be interpreting what the program does, based on what we have written in the comments above each variable.
This part is a little less straightforward and requires some creativity. Also take note that, while some variables were assigned values they may never have been actually used. A second pass will have to be done to remove unused variables.
When we've finished piecing the code together we do one final clean-up to really make the code readable. Our final result looks something like below:. Our program has come a long way from its original obfuscated state.
Add a comment. Active Oldest Votes. Improve this answer. Leigh Leigh Leigh I tried one, and it even kept the function-name case. Ejaz please share how you decoded it : — jameshwart lopez. ViktorJoras - Which page? I have not posted any page urls on this question?
Show 4 more comments. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back
0コメント