How I build my spam list using Linkedin

Luan Fagundes
2 min readAug 31, 2018

--

Linkedin is a great tool that helps many professionals from different areas, offering features that connect users and companies. In a nutshell, LinkedIn is a social network for professionals.

So, users can comment and publish sorts of content, such as links, posts written by themselves, even images and videos.

Another thing is that you can have thousands of connections as long as they accept you on your personal network and of course professionals like HR, Head or Chief has more influence which can lead to many connections and followers.

Frequently, I have seen some users offering content to their connections like spreadsheets of clients, HR lists or courses to do and help them miraculously. Thus, users start to write their email in the comments box to receive these documents that were promised. Then, I realized that I could get these emails by simply writing a javascript code that would retrieve this data for me.

The code was composed by:

  1. Create a setInterval() function that execute in every 4 seconds.
  2. Find the selector that show more comments and fire an event click()
  3. Scroll to the bottom page, wait 2 seconds, only to see the new data.
  4. Select the collection that was returned after finishing the whole process to show all comments.
  5. Finally, use a map() function on the returned collection and get all links filtered by e-mails.

The result was an amazing mail list containing 765 e-mails which are a great opportunity to build a spam list.

demo:

di***.jo*@hotmail.com
gra**leia**@gmail.com
sidne****@gmail.com
***lten@yahoo.com.br
lud***r@gmail.com
gfbarreto@*****.com
alex*cer*****@yahoo.com.br
thia***na@gmail.com
luc***marcondes****@gmail.com
nubia****200*@hotmail.com
****77**@gmail.com

Certainly, I did this only to show how users can give their information even if you not asking for. In my view, It is clearly a herd behaviour where one user put his e-mail and then more connections started to do so.

All things considered, I hope LinkedIn users are aware of the information that they share :)

Cheers

--

--