How would you reverse engineer this?

后端 未结 7 748
我在风中等你
我在风中等你 2021-02-10 13:54

I\'ve got some code that was at the bottom of a php file that is in javascript. It goes through lots of weird contortions like converting hex to ascii then doing regex replacem

7条回答
  •  南笙
    南笙 (楼主)
    2021-02-10 14:07

    Easiest approach would be too simply use a simple c program to convert the escaped hex characters into readable text like so:

    #include 
    
    const char wtf[] = ""; // Really long string goes here
    
    int main(void) {
        ::printf("%s\n", wtf);
    }
    

    which yields this (I added formatting). I'll let you finish off the last part which appears to be more of the same.

提交回复
热议问题