Well, I just wrote a very small LabView program for SMTP relay, and you can also find examples on your LabView. I was inspired since there are several SMTP servers in my campus which are not protected (I don’t know if they log every activities, but I don’t care =P), and also because these several months I got emails -spam- from valueconsult, though I think their emails -they have many emails- are also fake? Well I don’t know exactly. So I want a revenge, just kidding, I am just curious.
This is for educational only, I am not responsible for any damages happen!
What you need:
- Open SMTP server relay
- Labview (I am using V8.2)
- Target Email
Here we go:
First, you need to scan your network whether you have open SMTP relays near you or in your network. I use nmap under Kubuntu on VMware.
root@OptimusPrime:/MASTER# nmap -sS -O 1.2.3.4/16
Starting Nmap 4.20 ( http://insecure.org ) at 2007-08-07 16:06 KST
The command line above means that nmap will scan the network from IP address 1.2.0.0 until 1.2.255.255, and guess the OS by sending TCP SYN packet. For more information you can check the manual: root@OptimusPrime:/MASTER# man nmap. This is one of the result:
Interesting ports on smtp_name (smtp_ip_address):
Not shown: 1687 closed ports
PORT STATE SERVICE
21/tcp open ftp
25/tcp open smtp
80/tcp open http
135/tcp open msrpc
139/tcp open netbios-ssn
445/tcp open microsoft-ds
3306/tcp open mysql
3389/tcp open ms-term-serv
27000/tcp open flexlm0
27001/tcp open flexlm1
MAC Address: XX:XX:XX:XX:XX:XX (3COM)
Device type: general purpose
Running: Microsoft Windows XP
OS details: Microsoft Windows XP SP2 (firewall disabled)
Network Distance: 1 hop
To make sure that it is working you can check by using telnet: root@OptimusPrime:/MASTER# telnet smtp_server_ip 25
After you get the SMTP server address, you can start writing you LabView program. Well, LabView IMHO is not difficult, rather than writing the program from small pieces of code in Java (once I wrote in Java), C++ or any other programming language. It’s a graphical programming, drag and drop.
This program will send email to the recipient list, where the source of the email is coming rom reply-to. It will send for N loops, where N is inputted as we desired (Loops). The executable can be downloaded here (I think you need to install LabView 1st, I only tried on my computer)
Ups, FYI, the email server will be easily recognized! Then you should hide your ass as clean as possible =P:
Delivered-To: your_email@xxx.com
Received: by 10.78.120.15 with SMTP id s15cs740679huc;
Mon, 6 Aug 2007 23:35:30 -0700 (PDT)
Received: by 10.141.122.20 with SMTP id z20mr2421912rvm.1186468529345;
Mon, 06 Aug 2007 23:35:29 -0700 (PDT)
Return-Path: <your_email@xxx.com>
Received: from smtp_server_name (smtp_server_name [smtp_server_ip_address])
by mx.google.com with ESMTP id b39si12358537rvf.2007.08.06.23.35.26;
Mon, 06 Aug 2007 23:35:29 -0700 (PDT)
Received-SPF: neutral (google.com: smtp_server_ip_address is neither permitted nor denied by domain of your_email@xxx.com)
Message-Id: <46b812b1.27b38c0a.3109.fffff06eSMTPIN_ADDED@mx.google.com>
Received: from your_computer_ip_address ([your_computer_ip_address]:1623)
by the_domain with [XMail 1.22 PassKorea061024 ESMTP Server]
id <S1BE6BE> for <your_email@xxx.com> from <your_email@xxx.com>;
Tue, 7 Aug 2007 15:34:28 +0900
MIME-Version: 1.0
Content-Type: text/plain; charset=”utf-8″
Content-Transfer-Encoding: quoted-printable
To: your_email@xxx.com
From: your_email@xxx.com
Subject: test
Date: Tue, 07 Aug 2007 15:35:26 +0900test



