Register all dll’s in a folder.
If you need to register a lof of dll’s all at once this command will help you out. for %x in (c:\windows\system32\*.dll) do regsvr32 -s %x
Reset Xerox Spooler
Unplug the machine from power for five minutes. Plug it back in, but dont turn it on. Press and hold down the [6] button on the numeric keypad, the [Energy Saver] and the [Stop] buttons Then, only once you are holding those buttons, power on the machine. Continue to hold down the three buttons until […]
Firewalld Add allowed Port or Block IP
To allow ports like webmin firewall-cmd –permanent –zone=public –add-port=10000/tcp firewall-cmd –reload Also to block firewall-cmd –permanent –add-rich-rule=”rule family=’ipv4′ source address=’89.163.210.0/24′ reject” firewall-cmd –reload
TCP Offload
IF your having slow network on your Centos box best you check for TCP offloading issues. tcpdump -i eth1 -v -nn| grep -i incorrect If you get a lot of 103.4.122.47.22 > 103.4.123.36.53996: Flags [P.], cksum 0xc3d6 (incorrect -> 0xd4eb), seq 7496:7592, ack 9003, win 559, length 96 then try ethtool -K eth0 […]
Centos password sniffer
Some time you need to see what customers are typing in as their password on the server to find typos. tcpdump -i eth0 port smtp or port imap or port pop3 -l -A | egrep -i ‘pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|userna me:|password:|login:|pass |user ‘ This little command will show you unencrypted passwords on the fly.
Round cube missing date.
If your “Date” column is blank, or if it’s showing incorrect values, then check your php.ini file, and set the correct timezone for your server. A sample timezone setting would be: date.timezone = “Australia/Melbourne” but can be set to other values, if you know it (google for the proper values) See this page for a […]
Telstra Call Forward codes
These codes are used for land lines or mobiles that use Telstra as a provider. Turn on Call Forward: **code*(phone number to forward calls to, including area code)*10# Turn off call Forward: ##code**10# Check if forwarding is on: *#code# Where: “code” is: 21 for “All calls” 61 for “No answer” 62 for “Unreachable”, ie “out […]
Block WordPress Attack with CSF
Edit /etc/csf/regex.custom.pm and add: Code: Select all # wordpress if (($globlogs{CUSTOM4_LOG}{$lgfile}) and ($line =~ /(\S+).*] “POST \/wp-login\.php.*” 200/)) { return (“Failed WordPress login from”,$1,”wordpress”,”20″,”80,443″,”3600″); } Then update /etc/csf/csf.conf and change CUSTOM4_LOG to scan your web server access logs. (If they aren’t doing so already). Eg. for Plesk: /var/www/vhosts/system/*/logs/access_log That rule will block brute force attacks […]
WhatsApp Firewall Ports
If you need WhatsApp Voice Calling to work behind a firewall you will need to open the following ports. TCP: 4244,5222,5223,5228,5242 TCP/UDP: 59234, 50318 UDP: 3478,45395
Reset AP in 887VAW
If you need to get access to the AP in a 887VAW but don’t know the password you can always service-module wlan-ap 0 reset default-config It will reset it back to factory defaults.