最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Linux下安装渗透测试框架Metasploit

IT圈 admin 31浏览 0评论

2024年4月21日发(作者:青慧云)

WLTjph8NdAAXi8fLEUcU2n9QSARwqT6QwtcP/O7c6UVPEjY3uQINBFDAy/0BEAC5

Ayq56LCeXqzf6LdlomjPNioSN9Cevi2VC/bJ4rgNWtenH6EH8F05xaXHePDuNWk9

gTadI6Row6OPa0QvMgex4wndZTPsEUZv3dBLf+JQYMnGmut40LRvhivYDfrH+C5I

g4CWJF19sBDopb2cPc1NlS0xoTlAfnu70T9i6ZwOJ0pL1BjSr2lnBfpP43sj9qO3

aK17pn134xgQGIlgheoQ4svF0+Rtq7jAw5Vmn6JXhklXrgdKJ4o6s0VOQWjfiGzC

Mxli0T+sr4WJpjtdtdCBmQRd/4CS0dzmlJvNgFeRIOBbJcwVYr+ttIQ7lbBKHkZ3

trjf6ohLWI0iyVmJ+ba7QKUJJP9YvjiunP5arU/gskPyEuvROfnyWJAGJAoByQXX

CZg10hysnGqww4oT0j7jdd9ZIMrf8GSxPaFennh+Wsva7raPTWBCzY5hla2cmcgG

EaOnbjf2clAW3MyGmllQpBGIDtOK8GppE8DnVhhM49uIDTHF2AikMltjqwzd6HV9

39VA77Imal/PKNHyOWEAdmIRgYwHx+cEjzJAQSQkd0G3PSfJLBaf/0Vo1nBav8q9

VjgqhEFaNTzEj5Hqn6ldwKUul4Vb+AoSiz5Z1du32ul1CtcozUJTcWJL9ebZ8YbS

qy7Ol4slSW3ukNaG6tBTqQYb9liIdvdQUG6oJhmzbwARAQABiQIlBBgBCgAPAhsM

BQJXyXjnBQkMrEdiAAoJEM37X6UgB7lUJ9YP+gIFmDyjBdTD+pX+6z9FBb8p7SF8

hLEpP51m1CSAfquDfaMOVRQ6d4P3N0KjPQs7uz1uqjQliyaek4jtEqMfkPdYwcvj

8Zv17u41fAkS3BJFg3cR2+jtzF69sA/phHR+/a6MSnm/W+0YFOQHBKO6MIwC0an5

qHzG1MBic6rb8qjZlsJowwlF06ZrSmodhulB2q2JMAqUvQd923wJtMIlur4wavpn

iKdCYomlNcPF/UMVutUn0XuP7ca0yFXJgKJznLAFQ8g+b8aLyvodZYHjblaizkoj

EWDN3zPTQebnP7N8wTl0+rc2F3Bmnak6+m0P/F1kYXyz3obSvQXwe3rYAkxarcg9

5wXQRn6hN0PBb5lD05Ytx/peZrYpYFe4CYPtiL+y7sseExQhrRjpWr3FKGCKBpsr

QkGUk3MiZ4iHVvlyKv/Z9IMYNRmVzMXUM2QAbRgYD0x4kvdXso6YR2rn8sC89c/O

xIBK1HRwVgfRofUe9PmdeKhsBVYEQkNb8V18YP0GswrBc4cjoGqDwV64yPAotP2t

B9QhqjJFM9xDT/wJSxKi1uzzSwQBfpD/ylsTB6/v1K3dksvQ6cVZqaBt4g2hq78r

Eq+ZyncUD2z3eXXrlVheqJdXZXoayQFaTo4iIAc7wbraZZ6mDr6mxxFMlUqO2qxT

h3RIcafYvaF7yUDA

=hQKe

-----END PGP PUBLIC KEY BLOCK-----

EOF

}

install_deb() {

LIST_FILE=/etc/apt/.d/

PREF_FILE=/etc/apt/preferences.d/

if [ ! -f $LIST_FILE ]; then

echo -n "Adding metasploit-framework to your repository list.."

echo "deb $DOWNLOAD_URI/apt lucid main" > $LIST_FILE

print_pgp_key | apt-key add -

fi

if [ ! -f $PREF_FILE ]; then

mkdir -p /etc/apt/preferences.d/

cat > $PREF_FILE <

Package: metasploit*

Pin: origin

Pin-Priority: 1000

EOF

fi

echo -n "Updating package cache.."

apt-get update > /dev/null

echo "OK"

echo "Checking for and installing update.."

apt-get install -y --force-yes metasploit-framework

}

install_rpm() {

echo "Checking for and installing update.."

REPO_FILE=/etc/.d/

GPG_KEY_FILE=/etc/pki/rpm-gpg/RPM-GPG-KEY-Metasploit

if [ ! -f $REPO_FILE ]; then

echo -n "Adding metasploit-framework to your repository list.."

cat > /etc/.d/ <

[metasploit]

name=Metasploit

baseurl=$DOWNLOAD_URI/rpm

gpgcheck=1

gpgkey=file://$GPG_KEY_FILE

enabled=1

EOF

print_pgp_key > ${GPG_KEY_FILE}

fi

yum install -y metasploit-framework

}

install_pkg()

{

(

cd ~/Downloads

echo ""

curl -O "$DOWNLOAD_URI/osx/"

echo ""

if pkgutil --check-signature ; then

echo ""

installer -pkg -target /

fi

echo ""

rm -fv

2024年4月21日发(作者:青慧云)

WLTjph8NdAAXi8fLEUcU2n9QSARwqT6QwtcP/O7c6UVPEjY3uQINBFDAy/0BEAC5

Ayq56LCeXqzf6LdlomjPNioSN9Cevi2VC/bJ4rgNWtenH6EH8F05xaXHePDuNWk9

gTadI6Row6OPa0QvMgex4wndZTPsEUZv3dBLf+JQYMnGmut40LRvhivYDfrH+C5I

g4CWJF19sBDopb2cPc1NlS0xoTlAfnu70T9i6ZwOJ0pL1BjSr2lnBfpP43sj9qO3

aK17pn134xgQGIlgheoQ4svF0+Rtq7jAw5Vmn6JXhklXrgdKJ4o6s0VOQWjfiGzC

Mxli0T+sr4WJpjtdtdCBmQRd/4CS0dzmlJvNgFeRIOBbJcwVYr+ttIQ7lbBKHkZ3

trjf6ohLWI0iyVmJ+ba7QKUJJP9YvjiunP5arU/gskPyEuvROfnyWJAGJAoByQXX

CZg10hysnGqww4oT0j7jdd9ZIMrf8GSxPaFennh+Wsva7raPTWBCzY5hla2cmcgG

EaOnbjf2clAW3MyGmllQpBGIDtOK8GppE8DnVhhM49uIDTHF2AikMltjqwzd6HV9

39VA77Imal/PKNHyOWEAdmIRgYwHx+cEjzJAQSQkd0G3PSfJLBaf/0Vo1nBav8q9

VjgqhEFaNTzEj5Hqn6ldwKUul4Vb+AoSiz5Z1du32ul1CtcozUJTcWJL9ebZ8YbS

qy7Ol4slSW3ukNaG6tBTqQYb9liIdvdQUG6oJhmzbwARAQABiQIlBBgBCgAPAhsM

BQJXyXjnBQkMrEdiAAoJEM37X6UgB7lUJ9YP+gIFmDyjBdTD+pX+6z9FBb8p7SF8

hLEpP51m1CSAfquDfaMOVRQ6d4P3N0KjPQs7uz1uqjQliyaek4jtEqMfkPdYwcvj

8Zv17u41fAkS3BJFg3cR2+jtzF69sA/phHR+/a6MSnm/W+0YFOQHBKO6MIwC0an5

qHzG1MBic6rb8qjZlsJowwlF06ZrSmodhulB2q2JMAqUvQd923wJtMIlur4wavpn

iKdCYomlNcPF/UMVutUn0XuP7ca0yFXJgKJznLAFQ8g+b8aLyvodZYHjblaizkoj

EWDN3zPTQebnP7N8wTl0+rc2F3Bmnak6+m0P/F1kYXyz3obSvQXwe3rYAkxarcg9

5wXQRn6hN0PBb5lD05Ytx/peZrYpYFe4CYPtiL+y7sseExQhrRjpWr3FKGCKBpsr

QkGUk3MiZ4iHVvlyKv/Z9IMYNRmVzMXUM2QAbRgYD0x4kvdXso6YR2rn8sC89c/O

xIBK1HRwVgfRofUe9PmdeKhsBVYEQkNb8V18YP0GswrBc4cjoGqDwV64yPAotP2t

B9QhqjJFM9xDT/wJSxKi1uzzSwQBfpD/ylsTB6/v1K3dksvQ6cVZqaBt4g2hq78r

Eq+ZyncUD2z3eXXrlVheqJdXZXoayQFaTo4iIAc7wbraZZ6mDr6mxxFMlUqO2qxT

h3RIcafYvaF7yUDA

=hQKe

-----END PGP PUBLIC KEY BLOCK-----

EOF

}

install_deb() {

LIST_FILE=/etc/apt/.d/

PREF_FILE=/etc/apt/preferences.d/

if [ ! -f $LIST_FILE ]; then

echo -n "Adding metasploit-framework to your repository list.."

echo "deb $DOWNLOAD_URI/apt lucid main" > $LIST_FILE

print_pgp_key | apt-key add -

fi

if [ ! -f $PREF_FILE ]; then

mkdir -p /etc/apt/preferences.d/

cat > $PREF_FILE <

Package: metasploit*

Pin: origin

Pin-Priority: 1000

EOF

fi

echo -n "Updating package cache.."

apt-get update > /dev/null

echo "OK"

echo "Checking for and installing update.."

apt-get install -y --force-yes metasploit-framework

}

install_rpm() {

echo "Checking for and installing update.."

REPO_FILE=/etc/.d/

GPG_KEY_FILE=/etc/pki/rpm-gpg/RPM-GPG-KEY-Metasploit

if [ ! -f $REPO_FILE ]; then

echo -n "Adding metasploit-framework to your repository list.."

cat > /etc/.d/ <

[metasploit]

name=Metasploit

baseurl=$DOWNLOAD_URI/rpm

gpgcheck=1

gpgkey=file://$GPG_KEY_FILE

enabled=1

EOF

print_pgp_key > ${GPG_KEY_FILE}

fi

yum install -y metasploit-framework

}

install_pkg()

{

(

cd ~/Downloads

echo ""

curl -O "$DOWNLOAD_URI/osx/"

echo ""

if pkgutil --check-signature ; then

echo ""

installer -pkg -target /

fi

echo ""

rm -fv

发布评论

评论列表 (0)

  1. 暂无评论