如何阅读这段php代码?
如何在 php 中解码该字符串?
$x = "h\164tp\163\072\057\057\x70r\157\x64\x75\x63t-\x73\x65a\x72\143\150\056\x61\160i\x2e\x63\x6a\x2ec\x6f\x6d\057v\062/\160\x72\157\x64\165\x63t\x2ds\x65\141\162\143\x68\x3f";
它看起来像一个正则表达式 URL,但如何读取它是什么?
谢谢。
How to decode this string in php?
$x = "h\164tp\163\072\057\057\x70r\157\x64\x75\x63t-\x73\x65a\x72\143\150\056\x61\160i\x2e\x63\x6a\x2ec\x6f\x6d\057v\062/\160\x72\157\x64\165\x63t\x2ds\x65\141\162\143\x68\x3f";
It looks like a regex URL, but how to read what it is?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
只是回应它。
它输出:
just echo it out.
It outputs:
打印出来!
Print it!
它实际上是一个字符串,其中包含一些以十六进制和八进制表示法指定的字符。只是回应它。
It is actually a string with some characters specified in hexadecimal and octal notation. Just echo it.
只需打印它,它的网址
https://product-search.api.cj。 com/v2/产品搜索?
just print it, its a url
https://product-search.api.cj.com/v2/product-search?
好吧,我创建了一个 PHP 页面,如下所示:
并运行它。
我得到了以下信息:
这对我来说毫无意义,除了 cj.com 是 Commission Junction 的一部分,这是一个在线广告网络。
它被故意混淆了,很明显,编写它的人故意让你没有注意到它或理解它,并且不会管它。我不知道问题的背景,也不知道你为什么要问这个问题,但我的猜测是你已被黑客攻击,并且有人已将此代码(以及更多代码)插入到你的网站中。
如果是这样的话,他们的目标显然是通过在您的网站上免费下载来获得一些广告收入。黑客行为并不是特别恶意,但不是您希望发生的事情(特别是如果您不知道会显示哪种广告)。
Well, I created a PHP page as follows:
and ran it.
And I got the following:
Which means nothing to me, except that cj.com is part of Commission Junction, which is an online advertising network.
It's been deliberately obfuscated, so clearly the person who wrote it intended that you didn't notice it or understand it, and would leave it alone. I don't know the context of the question, why you're asking about it, but my guess would be that you've been hacked and someone has inserted this code (and more) into your site.
If that's the case, their aim would clearly be to gain some advertising revenue by freeloading on your site. Not particularly malicious as hacks go, but not something you'd want to be happening (especially if you don't know what kind of ads would be shown).
简单:
http://www.php.net/manual/en/function .utf8-decode.php
Simple:
http://www.php.net/manual/en/function.utf8-decode.php