How to extract email addresses from a text file using notepad++ with no coding at all

How to extract email addresses from a text file using notepad+ Given the following text file as input there are 3 easy steps to follow so that you can extract all email addresses contained inside the text. Text containing email addresses Text containing email addresses 1st Step – Find email addresses using regex match Use the find & replace feature of notepad++ Find: (\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}\b) Replace: \r\n$&\r\n find&replace this adds and new line before and after each email address. Email address in new line Email address in new line Step 2 – Mark email addresses and bookmark lines Mark: (\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}\b) have …

Continue Reading

VMDK to VHDX

Follow steps: Download: http://www.microsoft.com/en-us/download/details.aspx?id=42497 Open Powershell as administrator and run Import-Module ‘C:\Program Files\Microsoft Virtual Machine Converter\MvmcCmdlet.psd1’ And after ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath d:\scratch\vmx\VM-disk1.vmdk -VhdType DynamicHardDisk -VhdFormat vhdx -destination c:\vm-disk1 If you counter following error: ConvertTo-MvmcVirtualHardDisk : The entry 1 is not a supported disk database entry for the descriptor. In my case it was entry 4 Follow these steps: download and extract dsfok tools use dsfo.exe “c:\temp\disk2.vmdk” 512 1024 descriptor1.txt to extract the descriptor edit the descriptor file in Notepad++: comment the above mentioned line (as I added the extra single character (#) I also deleted one NULL character from the end …

Continue Reading

How to prevent internal email spoofing in an Exchange organization

Ensuring email security might be one of the most important and most difficult tasks an administrator must face. Every day, servers process thousands of emails and controlling such a big mail flow is not easy. No wonder hackers focus on this channel when they plan attacks. They use various tricks to make users think that opening a suspicious attachment is a good idea. One of the tricks they use is email spoofing. What is email spoofing? Email spoofing is a very popular attack method. The sender modifies message headers so that emails appear as sent from someone else. Hackers use …

Continue Reading

Nmap Cheat Sheet

Nmap has a multitude of options and when you first start playing with this excellent tool it can be a bit daunting. In this cheat sheet you will find a series of practical example commands for running Nmap and getting the most of this powerful tool. Keep in mind that this cheat sheet merely touches the surface of the available options. The Nmap Documentation portal is your reference for digging deeper into the options available.

Continue Reading

Find duplicates and delete all in notepad++

example:epshetsky@test.com, rek4@test.com, rajesh1239@test.com, mohanraj@test.com, sam@test.com, nithin@test.com, midhunvintech@test.com, karthickgm27@test.com, rajesh1239@test.com, mohanraj@test.com, nithin@test.com, I need results back like epshetsky@test.com, rek4@test.com, sam@test.com, nithin@test.com, midhunvintech@test.com, karthickgm27@test.com,   sort line with Edit -> Line Operations -> Sort Lines Lexicographically ascending do a Find / Replace: Find What: ^(.*\r?\n)\1+ Replace with: (Nothing, leave empty) Check Regular Expression in the lower left Click Replace All How it works: The sorting puts the duplicates behind each other. The find matches a line ^(.*\r?\n) and captures the line in \1 then it continues and tries to find \1 one or more times (+) behind the first match. Such a …

Continue Reading