Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import smtpd
- import logging
- import asyncore
- import requests
- class SMTPServer(smtpd.SMTPServer):
- def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
- try:
- requests.post('http://fuck', data={'email': data})
- except:
- pass
- port = 2525
- d = SMTPServer(("0.0.0.0", port), None)
- logging.info('server is running on port %d', port)
- asyncore.loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement