Sunday, May 14, 2017

Tips To Protect You From The Wannacry Virus Effectively Lastest

Upload By   at   Comment



A. Check port 445
Open CMD Admin Admin and type
Netstat -an | Findstr 445
If the type does not show what is OK and if the letter LISTENNING, then block the port immediately
B. Turn off SMB (Open Powershell on and off the following commands)
Open Start-> Windows PowerShell-> Right-click Windows Powershell and select Run as administrator
Copy each line Paste into. If it fails, ignore it
Remove-WindowsFeature FS-SMB1
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
Sc.exe config lanmanworkstation depend = bowser / mrxsmb20 / nsi
Sc.exe config mrxsmb10 start = disabled
Sc.exe config lanmanworkstation depend = bowser / mrxsmb10 / nsi
Sc.exe config mrxsmb20 start = disabled
Set-SmbServerConfiguration -EnableSMB2Protocol $ false
Set-ItemProperty -Path "HKLM: \ SYSTEM \ CurrentControlSet \ Services \ LanmanServer \ Parameters" SMB2 -Type DWORD -Value 0 -Force

B. Block port 445/137/138/139 on the firewall
Any machine that has Antivirus installed on its own firewall must be configured on the firewall
Of the Anivirus
And do not use any Antivirus or Windows Defener do the following
Step 1: Open the Firewall search startup list and select Windows Firewall with Advanced security
Step 2: Inbound Rules-> New Rule-> Port
Step 3: Select UDP-> Specific local ports enter this line in 445, 137, 138, 139
Step 4: Block the connection
Step 5: Tick all 3
Step 6: Naming option-> finish
Step 7: Check if the firewall is enabled or not

C. Turn off Sever service
B1: Run-> Services.msc
B2: Look to Services Server. Right click on Stop
B3: Double click on it. Startup type changes to Disabled. Apply-> OK
After finishing all RESTART AGAIN. DON'T SHUTDOWN

Or install antivirus software here