find . -name "*php*" -type f ! -size 0 -exec grep -IL . "{}" \;
Related Posts
List all DNS records of a given domain with dig
dig is a network administration command-line tool for querying the Domain Name System.
Read Synology NAS disk with Ubuntu
recover data on your PC when Synology NAS malfunctions.
Deny dns requests type=ANY using iptables
iptables -A INPUT -p udp –dport 53 -m string –from 50 –algo bm –hex-string ‘|0000FF0001|’ -m recent –set –name dnsanyqueryiptables -A INPUT -p udp –dport 53 -m string –from 50 –algo bm –hex-string ‘|0000FF0001|’ -m recent –name dnsanyquery –rcheck –seconds 60 –hitcount 1 -j DROPiptables -A INPUT -p udp –dport 53 -m u32 –u32 $(python […]
find open ports in linux
List open ports Using Netstat Command The flag -l tells netstat to print all listening sockets, -t shows all TCP connections, -u displays all UDP connections and -p enables printing of application/program name listening on the port. To print numeric values rather than service names, add the -n flag. netstat -ltup Using ss Command ss -lntu Using Nmap Command Installation apt install nmap [On Debian/Ubuntu] […]