Nov 22, 2016 02:08 PM
(This post was last modified: Nov 22, 2016 03:06 PM by Malicious Intent.)
Hey Folks.
I'm trying to write a simple mail spoof tool but I'm stuck in one place.
The code works and can send mail but due to some sort of filter every time i try to pass anything that contains "@" as a 'from' google and yahoo are changing the header to the original email or nothing.
Below is the snippet from my code.
This is the format of the email. Variable spoof is the spoofed email. If i use a name or anything else that doesn't include @ it works. Also if i pass something like [[email protected]] it will work but then email will show up in this form in the mailbox.
Can anyone point me in the right direction? How to escape these characters or how to trick email provider into displaying it correctly. Maybe some encoding? Any and all help appreciated.
Edit: I'v tried yagmail module already. It is very simple to implement but suffers from the same issue.
I'm trying to write a simple mail spoof tool but I'm stuck in one place.
The code works and can send mail but due to some sort of filter every time i try to pass anything that contains "@" as a 'from' google and yahoo are changing the header to the original email or nothing.
Below is the snippet from my code.
Code
spoof= '[email protected]'
msg = 'From:'+spoof + '\nSubject: ' + subject + '\n' + body
server.sendmail(user,to,msg)This is the format of the email. Variable spoof is the spoofed email. If i use a name or anything else that doesn't include @ it works. Also if i pass something like [[email protected]] it will work but then email will show up in this form in the mailbox.
Can anyone point me in the right direction? How to escape these characters or how to trick email provider into displaying it correctly. Maybe some encoding? Any and all help appreciated.
Edit: I'v tried yagmail module already. It is very simple to implement but suffers from the same issue.
![[Image: V9Gredc.png]](https://i.imgur.com/V9Gredc.png)

