Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Lab-bill-sys-update_openssl-davidey

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

#! / bin/bash

# for security of os

For ip in `cat ip.txt`

Do

Echo-e "\ 033 [31m#$ip #\ 033 [0m"

Scpopenssl-0.9.8za.tar.gz $ip:/tmp/

Ssh$ip-C "tar-xzvf / tmp/openssl-0.9.8za.tar.gz-C / tmp/ & & cd/tmp/openssl-0.9.8za &. / config shared no-zlib & & make&& make install" > / dev/null

Ssh$ip-C "mv / usr/bin/openssl / usr/bin/openssl.OFF; mv / usr/include/openssl/usr/include/openssl.OFF; ln-s / usr/local/ssl/bin/openssl / usr/bin/openssl; ln-s / usr/local/ssl/include/openssl / usr/include/openssl; echo\" / usr/local/ssl/lib\ "> / etc/ld.so.conf; ldconfig-v" > > / dev/null

OpensslVersion= `ssh $ip-C "openssl version-a" | awk NR==1' {print $2}'`

If [${OpensslVersion} = '0.9.8za']

Then

Echo-e "\ 033 [31m [success stories!] $ip the version of openssl is $OpensslVersion\ 033 [0m"

Echo "[success stories!] $ip the version of openssl is $OpensslVersion" > > openssl.log

Else

Echo-e "\ 033 [31m [fail!] $ip the version of openssl is$OpensslVersion\ 033 [0m"

Echo "[FAILE!!] $ip the version of openssl is also $OpensslVersion" > > openssl.log

Fi

Done

Finish this document very late, although the work is very intense every day, I am willing to make progress with you. Hehe, make progress every day.

Follow-up introduction of other modules, if there are any problems, please do not stingy point out, improve together. Welcome everyone and your technology enthusiasts to join our qq Group 262407268 to build our "Yunluo Wisdom City".

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report