Showing posts with label Tools. Show all posts
Showing posts with label Tools. Show all posts
Monday, July 8, 2013
Thursday, June 6, 2013
SMTP MTA Performance Tool
JMeter
Telnet
---
Telnet
date '+%a, %d %b %Y %H:%M:%S %z'
Thu, 06 Jun 2013 12:21:18 -0700
[user@host]# telnet smtp.domain.com 25 Trying 192.168.0.1... Connected to smtp.domain.com (192.168.0.1). Escape character is '^]'. 220 myrelay.domain.com ESMTP HELO smtp.domain.com 250 myrelay.domain.com MAIL FROM:<alice@hacker.com> 250 sender <alice@hacker.com> ok RCPT TO:<bob@secure.net> 250 recipient <bob@secure.net> ok DATA 354 go ahead From: [Alice Hacker] <alice@hacker.com> To: [Bob Smith] <bob@secure.net> Date: Mon, 12 Apr 2010 14:21:26 -0400 Subject: Test Message Hi there! This is supposed to be a real email... Have a good day! Alice . 250 ok: Message 222220902 accepted QUIT 221 myrelay.domain.com Connection closed by foreign host. [user@host]#
[admin@sec-emps62 ~]# cat m1.sh
{
sleep 2;
echo 'helo test.com';
sleep 2;
echo 'MAIL FROM:<Test@test.com>';
sleep 2;
echo 'RCPT TO: <kyle@test_dest.com>';
sleep 2;
echo 'DATA';
sleep 2;
echo -e 'To:kyle@testdest.com\nMIME-Version: 1.0 (mime-construct 1.9)\nContent-Type: application/zip\nContent-Transfer-Encoding: base64\n\n';
dd if=/dev/urandom bs=4 count=10 2>/dev/null | openssl base64;
echo '.';
} | telnet 172.16.233.51 25
Netcat
/usr/bin/nc smtp.domain.com 25 < /tmp/message
EHLO tyo270.gate.nec.co.jp MAIL From:<m-ozawa@cnt.nic.nec.co.jp> SIZE=300981 RCPT To:<m-ozawa@wx.cnt.nesic.jp.nec.com> DATA
...
. QUIT
Test Network Performance
iperf
Start Server
-s (start the “server” which will receive the data)
-w 32768 (change the TCP window size to 32 KB, default is a bit low 8 KB)
The tool will listen on TCP port 5001 at default.
iperf -s -w 32768
Start Client
-c IP-ADDRESS (the IP address to the other computer)
-w 32768 (to raise the TCP window size)
-t SECONDS (the number of seconds to send data)
-P 8 (the number of alternate streams to increase throughput, must be uppercase P)
iperf -c IP -P 8 -t 30 -w 32768 {-d}
If you want to test the full duplex network performance, that is, transmitting and receiving at the same time, just add the -d option at the client.
pathtest
Start Server
-s (start the “server” which will receive the data)
-w 32768 (change the TCP window size to 32 KB, default is a bit low 8 KB)
The tool will listen on TCP port 5001 at default.
iperf -s -w 32768
Start Client
-c IP-ADDRESS (the IP address to the other computer)
-w 32768 (to raise the TCP window size)
-t SECONDS (the number of seconds to send data)
-P 8 (the number of alternate streams to increase throughput, must be uppercase P)
iperf -c IP -P 8 -t 30 -w 32768 {-d}
If you want to test the full duplex network performance, that is, transmitting and receiving at the same time, just add the -d option at the client.
pathtest
Tuesday, May 28, 2013
Build Snort
All Binaries will be installed to /data
export INCLUDE_PATH=/data/include
export LD_LIBRARY_PATH=/data/lib
libpcap:
./configure --prefix=/data/
make
DAQ:
./configure --prefix=/data/ --with-libpcap-includes=/data/include --with-libpcap-libraries=/data/lib
make
Snort:
./configure --prefix=/data/ --with-daq-includes=/data/include --with-daq-libraries=/data/lib --with-libpcre-includes=/data/include --with-libpcre-libraries=/data/lib --with-libpcap-includes=/data/include --with-libpcap-libraries=/data/lib --disable-static-daq
make
export INCLUDE_PATH=/data/include
export LD_LIBRARY_PATH=/data/lib
libpcap:
./configure --prefix=/data/
make
DAQ:
./configure --prefix=/data/ --with-libpcap-includes=/data/include --with-libpcap-libraries=/data/lib
make
Snort:
./configure --prefix=/data/ --with-daq-includes=/data/include --with-daq-libraries=/data/lib --with-libpcre-includes=/data/include --with-libpcre-libraries=/data/lib --with-libpcap-includes=/data/include --with-libpcap-libraries=/data/lib --disable-static-daq
make
Friday, May 24, 2013
Online Tools
| http://hilite.me | Online Source Code Formatting |
| http://pixlr.com/editor | Online Picture Editor |
| http://www.iconspedia.com | ICON |
| RegexPalRegexPal | A JavaScript RegEx Tester |
Subscribe to:
Posts (Atom)
