發表文章

目前顯示的是 2022的文章

常用詐騙或惡意網址確認網站

  Google  https://transparencyreport.google.com/safe-browsing/search?url=&hl=zh-tw ScamAdvisor https://www.scamadviser.com/ W3.org https://validator.w3.org/checklink Trendmicro https://global.sitesafety.trendmicro.com/index.php Dr. link check https://www.drlinkcheck.com/ Norton safe web https://safeweb.norton.com/ URL void https://www.urlvoid.com/ Symantec Bluecoat https://sitereview.bluecoat.com/#/ VirusTotal https://www.virustotal.com/gui/home/url abuseipdb https://www.abuseipdb.com/ down for everyone or just me https://downforeveryoneorjustme.com/

取消Excel與word網際網路與網路路徑超連結自動格式

圖片
 常常會遇到在Excel與Word整理惡意網址與ip卻出現Excel與Word自動格式化這些惡意網址與超連結,而變成可以點擊的超連結,卻不小心去點擊到惡意網址或釣魚網址.可以利用以下方式消除自動(如下圖) Excel =>檔案=>選項=>校訂=>自動校正選項=>輸入時自動套用格式=>網際網路與網路路徑超連結 Word=>檔案=>選項=>校訂=>自動校正選項=>自動格式設定=>以超連結取代網際網路和網路路徑 Word=>檔案=>選項=>校訂=>自動校正選項=>輸入時自動套用格式=>以超連結取代網際網路和網路路徑

Install Windows 11 on VMware Workstation 16

圖片
 1. enable encrypt   2. Add TPM Hardware 3. save hardware setting 4. download and boot with windows 11 iso https://www.microsoft.com/zh-tw/software-download/windows11  

samba enable FS share under SELinux on CentOS

圖片
list context of files or folders for selinux mandatory protection  $ ls -lZd / 1. external USB disk $ getsebool -a | grep fusefs $ setsebool -P samba_share_fusefs on 2. nfs disk $ s etsebool -P samba_share_nfs on 3. create and enable home dirs $  getsebool -a | grep samba $ setsebool -P samba_create_home_dirs on $ setsebool -P samba_enable_home_dirs on 4. global share ACL $ setsebool -P samba_export_all_ro on $ setsebool -P samba_export_all_rw on

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)

圖片
 1. Download workstation pro for vmware website https://www.vmware.com/tw/products/workstation-pro/workstation-pro-evaluation.html e.g.  VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle 2. Download modules patch from github https://github.com/mkubecek/vmware-host-modules/releases/tag/w16.2.3-k5.18 tarball https://github.com/mkubecek/vmware-host-modules/archive/refs/tags/w16.2.3-k5.18.tar.gz 3. Execute by sudo $ chmod 755 VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle $ sudo apt-get -y install build-essential $ sudo VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle 4.Execude by account $ vmware 5. patch vmmon and vmnet $ tar zxvf w16.2.3-k5.18.tar.gz  $ cd  vmware-host-modules-w16.2.3-k5.18 $ tar cvf vmnet.tar  vmnet-only && sudo cp vmnet.tar /usr/lib/vmware/modules/source/ $ tar cvf vmmon.tar vmmon-only && sudo cp vmmon.tar /usr/lib/vmware/modules/source/ $ sudo vmware-modconfig --console --install-all         ...

Bypassing network activation to initialize windows 11

圖片
1.  Shift + F10 keys or Fn + Shift + F10 keys to open administrator command line 2. type   oobe\BypassNRO.cmd Reboot or type taskmgr.exe  More Details -> End task " Network Connection Process " 3. choose additional options " No internet" reference https://hothardware.com/news/windows-11-setup-internet-connection-bypass

Install gnome-tweak to add minimize and maximize options of window

 refereces https://trendoceans.com/how-to-get-minimize-and-maximize-button-in-gnome/

Install phpMyAdmin rpm from rpm on CentOS

source https://rpmfind.net/linux/rpm2html/search.php?query=phpMyAdmin&submit=Search+...&system=&arch=  #keyword search: phpmyadmin http://rpm.pbone.net/index.php3   required php  php-common php-mysqlnd php-xml php-mbstring php-opcache php-pdo php-sodium php-process path /usr/share/phpMyAdmin /etc/phpMyAdmin  <------config.inc.php /etc/httpd/conf.d/   <---------phpMyAdmin.conf  for httpd

Upgrade php and httpd(apache) on CentOS 7

圖片
1. for latest php from https://rpms.remirepo.net/ $ wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm $ sudo  rpm -ivh remi-release-7.rpm $ sudo yum -y --enablerepo='remi-php74' --enablerepo='remi'  install php-7.4.29       2. for latest httpd from https://repo.codeit.guru/ $ wget https://repo.codeit.guru/codeit-repo-release.el7.rpm $ sudo rpm -ivh codeit-repo-release.el7.rpm $ sudo yum -y install httpd-2.4.53 3. If error message occurred on httpd-2.4.53 + php 5.4.X (Invalid command php...) modify /etc/httpd/conf.modules.d/00-mpm.conf disable mpm_event with #(sharp) and enable mpm_prefork with unsharp references https://rpms.remirepo.net/ https://repo.codeit.guru/ https://repo.codeit.guru/packages/centos/7/x86_64/  https://repo.ius.io/ https://tw.arip-photo.org/320126-error-start-apache-php-value-MDGNGZ https://www.datadoghq.com/blog/monitoring-apache-web-server-performance/#prefork-mpm #Cyber Security    

Convert MBR format system disk to GPT format

圖片
mbr2gpt.exe 1.  start -> settings -> update & security -> recovery -> advanced startup 2. choose an option -> troubleshoot -> advanced options -> command prompts 3. X:\Windows\system32\> mbr2gpt /validate 4. X:\Windows\system32\>mb2gpt /convert 5. Reboot and press Del or F10 (or F1,F2 for Laptop) to BIOS configuration to change BIOS to EFI boot mode  On VMware:   5. Have added 100MB EFI sector between C: and Recovery partition References https://www.windowscentral.com/how-convert-mbr-disk-gpt-move-bios-uefi-windows-10 https://docs.microsoft.com/zh-tw/windows/deployment/mbr-to-gpt

Exclude multiple files or folder in rsync command

 1.  rsync command for multi exclude files or folder $ rsync -arv --exclude={'course','download','tmpfile.txt'} /var/www/  /backup/www one folder $ rsync -arv --exclude 'download' /var/www/ /backup/www one file $ rsync -arv --exclude 'tmpfile.txt' /var/www/ /backup/www wildcard or patterns $ rsync -arv --exclude '*.iso' /var/www/ /backup/www -a: -rlptgoD -v: verbose -r: --recursive references https://linuxhint.com/exclude-directory-rsync/ https://phoenixnap.com/kb/rsync-exclude-files-and-directories        

Check file security, url/domain or email security

 VirusTotal https://www.virustotal.com/gui/home/upload Whatismyip https://whatismyipaddress.com/blacklist-check Barracuda https://www.barracudacentral.org/lookups mxtoolbox https://mxtoolbox.com/blacklists.aspx haveibeenpwned https://haveibeenpwned.com/ dnschecker https://dnschecker.org/ip-blacklist-checker.php shodan IoT https://www.shodan.io/ references https://www.spamhaus.org/drop/

Resolve ssh error from Mac OS to Cisco switch/router

圖片
Error message 1. ssh by option -o KexAlgorithms when you meet error message %   ssh -oKexAlgorithms=+diffie-hellman-group1-sha1,diffie-hellman-group14-sha1 account@domain-name or 2. edit /etc/ssh/ssh_config unsharp middle two options and add two options at latest 3 reboot or  configure encryption strength to 2048 bits when you generate keys   references https://www.petenetlive.com/kb/article/0001245 https://www.volico.com/wiki/pages/viewpage.action?pageId=15728687

Reset mysql 8 password on Ubuntu 20

 1.  $ sudo systemctl stop mysql $ sudo mkdir  /var/run/mysqld; sudo chown mysql /var/run/mysqld 2. $ mysqld_safe --skip-grant-tables & $ mysql --user=root mysql 3. -> update mysql.user set authentication_string=null where user='root';

Install vmware workstation pro after normal installation of Ubuntu 20.X

After minial installation or normal installation of Ubuntu  1. update repository and upgrade packages from apt command $ sudo apt update $ sudo apt upgrade $ sudo reboot 2.  install build-essential for library vmware needed to compile $ sudo apt install build-essential $ sudo apt install dkms 3 . download vmware workstation from website as https://www.vmware.com/go/getworkstation-linux 4. $  chmod 755 VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle   # latest version $ cd ~/Download; sudo ./VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle $ vmware &   # or search vmware from gnome and click app to execute

Deploy Letsencrypt with apache on CentOS 7.X

 1. change to root $ su - 2. install epel, mod_ssl, httpd, snapd $ yum -y install epel-* mod_ssl httpd $ yum -y install snapd $ systemctl enable snapd; systemctl start snapd 3. create a soft link for /snap $ ln -s /var/lib/snapd/snap /snap 4. test snapd for latest version and install classic certbot $ snap install core; snap refresh core $ snap install --classic certbot 5.  $ ln -s  /snap/bin/certbot /usr/bin/certbot $ certbot --apache 6. renew cert with certbot periodically or add in corn table   certbot renew --dry-run certbot renew   References https://snapcraft.io/docs/installing-snap-on-centos https://certbot.eff.org/instructions?ws=apache&os=centosrhel7 https://letsencrypt.org/zh-tw/donate/

Resolve write error message about cache_tmp folder on website

for CentOS  1.  enable selinux to permit httpd_unified $ setsebool -P httpd_unified 1   2. go to parent folder of cache_tmp if it could not be written   $ semanage fcontext -a -t httpd_sys_rw_content_t 'cache_tmp'  $ restorecon -v 'cache_tmp'   Reference  https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/selinux_users_and_administrators_guide/sect-managing_confined_services-the_apache_http_server-booleans SElinux Alert Browser GUI