How to deal with phishing sites

Posted by Cristian Livadaru on Wednesday, August 1, 2018

Instead of just deleting the mail, I thought to strike back and flood the site with some fake data. First, you need some proxy or a new server, you could use DigitalOcean for example. Then you need to get the form fields that need to be filled:


Put everything in this python script (source:


import random
import urllib2
import urllib


def randstr(leng):
    res = ""
    for i in xrange(0,leng):
        res = res + str(chr(random.randint(65,125)))
    return res
def sendSpamReq(url):
    data = urllib.urlencode({'username':randstr(8)+"@"+randstr(3)+".de",
count = 0
while True:
        print "["+str(count)+"] Success"
        print "["+str(count)+"] Failed"

change the SPAMURL and the form fields accordingly (username and password in my case) Run the script and leave it running, this will flood the phisher with a lot of fake data which will hopefully make the rest of the data they might have useless.


Apparently, after 4k Mails, the phisher blocked my IP. Looks like someone want’s to play. Ok, let’s go, my friend.


On your machine create a file called flood-hosts and add each IP of your server in this file, one line per IP.

Then copy the file to each server

for dest in $(<flood-hosts); do
  scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@${dest}:/root/

and start it

for dest in $(<flood-hosts); do
  ssh root@${dest} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "nohup python > /dev/null 2>&1 &"

and you can start it several times of course.