All posts by amri

Sublime update nodejs

Редактора ми Sublime иска да се обнови Nodejs. Дистрото където трябва да се извърши това е Mint.

Ето го и съобщението:
Node.js version in the default path is too old! Please download the latest version and specify the updated location.

Това е решението:

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash --
sudo apt-get install -y nodejs

VN:F [1.9.22_1171]
Rating: 3.0/5 (2 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Сканиране за заразени файлове ( php троянски коне, php backdoors )

# ТЪрси php файлове със съдържание eval и GLOBALS
find $PWD -iname \*.php -print0 | xargs -0 grep -E "eval.*GLOBALS"|awk -F ": " '{print $1}' >> trojans.txt

#Търси eval +стрингове над 200 символа
find $PWD -iname \*.php -print0 | xargs -0 grep -e '[^\ ]\{200,\}'|grep "eval"
#Търси eval
find $PWD -iname \*.php -print0 | xargs -0 grep "eval"
cat impulsko_trojans.txt |grep ".php"|awk -F ".php:" '{print $1.".php"}';

VN:F [1.9.22_1171]
Rating: 3.0/5 (2 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 2 votes)

ssl letsencrypt nginx

Проверка на сертификат: https://www.sslshopper.com/ssl-checker.html

Подновяване на letsencrypt сертификатите: certbot-auto renew

VN:F [1.9.22_1171]
Rating: 1.0/5 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)