Advertisement
RusNuker

smtp through telnet

Jun 26th, 2023 (edited)
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. let's say you have an email address of someshid@eimatro.com
  2. you can send email to it using telnet
  3.  
  4. to get an actual smtp server you need to perform an MX lookup on "eimatro.com"
  5. this is how you do it in windows. open cmd and start typing:
  6.  
  7. nslookup
  8. set type=MX
  9. eimatro.com
  10.  
  11. you will get something like
  12. "eimatro.com MX preference = 10, mail exchanger = mail.eimatro.com"
  13.  
  14. where "mail.eimatro.com" is the smtp server. type in "quit" to quit.
  15.  
  16. now open your putty and run telnet on mail.eimatro.com with port 25
  17. port 25 is smtp mail
  18.  
  19. if you didn't kcuf up, you should see a message of the server welcoming you
  20.  
  21. type in following stuff:
  22.  
  23. HELO example.com
  24. MAIL FROM:<admin@example.com>
  25. RCPT TO:<someshid@eimatro.com>
  26. DATA
  27.  
  28. you will see a bunch of text after each line.
  29.  
  30. Now the actual message:
  31.  
  32. From: Admin <admin@example.com>
  33. To: Someshid <someshid@eimatro.com>
  34. Subject: You won $1000!
  35. Content-Type: text/plain
  36.  
  37. Congrats! You won $1000 by doing nothing! Please follow a link to claim it:
  38. https://natribu.org/en/
  39.  
  40. .
  41.  
  42. [this is the end]
  43.  
  44. Now if you did everything correctly, someshid at eimatro should see a new email.
  45. (That PERIOD at the end of the message is important. It indicates the end of the message.)
  46.  
  47. Some SMTP servers can block your mail because you have a dynamic IP. In that way
  48. you can try sending an actual email bro
  49.  
  50. (by the way, someshid@eimatro.com doesn't exist and you should never email people as an admin of example.com. this is bad for your health and can lead to several severe diseases such as ligma)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement