Skip to content

Instantly share code, notes, and snippets.

View SeyedMostafaAhmadi's full-sized avatar

SeyedMostafaAhmadi

View GitHub Profile
@SeyedMostafaAhmadi
SeyedMostafaAhmadi / port-scan.sh
Last active November 5, 2017 15:54
Port scan for specific domain or ip
nmap -Pn example.com # or ip address
@SeyedMostafaAhmadi
SeyedMostafaAhmadi / cwp-login-log.sh
Last active November 12, 2017 14:01
Login log in centos web panel
nano /var/log/cwp_login.log
@SeyedMostafaAhmadi
SeyedMostafaAhmadi / cwp-apache-error-log.sh
Last active November 12, 2017 14:02
Apache error log in centos web panel server
nano /usr/local/apache/logs/error_log
@SeyedMostafaAhmadi
SeyedMostafaAhmadi / php.ini.sh
Created November 12, 2017 14:09
Location php.ini file in centos7 server
nano /usr/local/php/php.ini
nano /usr/local/apache/conf.d/vhosts-ssl.conf
# This follow text add to file:
# AllowOverride All
# Options Indexes FollowSymLinks Includes ExecCGI
nano /etc/dovecot/dovecot.conf
nano /etc/postfix/main.cf
ps aux | grep postfix
## and kill >> root 26253 0.0 0.0 89640 2224 ? Ss Dec07 0:11 /usr/libexec/postfix/master -w
kill -9 IDNUMBER
systemctl start postfix.service
nano /var/log/dovecot.log