Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import smtpd
  4. import logging
  5. import asyncore
  6. import requests
  7.  
  8.  
  9. class SMTPServer(smtpd.SMTPServer):
  10.     def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
  11.         try:
  12.             requests.post('http://fuck', data={'email': data})
  13.         except:
  14.             pass
  15.  
  16.  
  17. port = 2525
  18. d = SMTPServer(("0.0.0.0", port), None)
  19. logging.info('server is running on port %d', port)
  20. asyncore.loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement