|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  MQPortScan v1.0.0 - Free | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Tue May 27, 2008 8:31 pm    Post subject: MQPortScan v1.0.0 - Free | 
				     | 
			   
			 
		   | 
		 
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
			  
				All,
 
 
To help people determine if their MQ environment is secure, I have created a new program called: MQPortScan.  MQPortScan is being released as open source under the Apache License 2.  Hence, MQPortScan is FREE for all to use.  
 
 
MQPortScan is written in Java and the source code is included. I have tried to make MQPortScan very easy to use.  When a user inputs a hostname or an IP Address, MQPortScan will scan a range of ports looking for a queue manager's MCA,  using the standard (system default) channel names, in order to make a successful connection.
 
 
Example:
 
   
	| Code: | 
   
  
	java MQPortScan -h 10.10.10.10
 
java MQPortScan -h server01 | 
   
 
 
MQPortScan has the ability to search across a range of IP addresses and scan the port range for each IP address.
 
 
Example:
 
   
	| Code: | 
   
  
	| java MQPortScan -h 10.10.*.* | 
   
 
 
Note: This example may take hours and hours (or days) to complete its run.     
 
 
Anytime MQPortScan successfully connects to a queue manager, the information is written to a CSV (Comma-Separated-Value) file.  The output will include the queue manager name, MQ version, channel name, hostname or an IP Address and port number.
 
 
You can download MQPortScan from the following web page:
 
http://www.capitalware.biz/open_source.html
 
 
Please let me know if you have any questions or comments.
 
 
Regards,
 
Roger Lacroix
 
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
 
Connected to MQ!
 
Twitter | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | LouML | 
		  
		    
			  
				 Posted: Thu May 29, 2008 9:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Partisan
 
 Joined: 10 Nov 2005 Posts: 305 Location: Jersey City, NJ / Bethpage, NY 
  | 
		  
		    
			  
				I'm sure I'm doing something wrong, but I can't seem to get it to work. I copied the .jar files to the /opt/mqm/java/lib directory.
 
 
   
	| Code: | 
   
  
	bash-3.00$ ls -la /opt/mqm/java/lib/
 
total 12270
 
drwxr-xr-x   5 mqm      mqm         1024 May 29 13:23 .
 
drwxr-xr-x   6 mqm      mqm          512 Oct 22  2007 ..
 
-r--r--r--   1 mqm      mqm        13143 Aug  1  2007 CL3Export.jar
 
-r--r--r--   1 mqm      mqm        33166 Aug  1  2007 CL3Nonexport.jar
 
-rw-r--r--   1 mqm      mqm         4167 May 29 13:23 MQPortScan.jar
 
drwxr-xr-x   2 mqm      mqm          512 May  5 09:50 OSGI
 
-r--r--r--   1 mqm      mqm       445656 Feb  4 06:02 com.ibm.mq.jar
 
-r--r--r--   1 mqm      mqm        18939 Feb  4 06:00 com.ibm.mq.jms.Nojndi.jar
 
-r--r--r--   1 mqm      mqm       135014 Feb  4 06:00 com.ibm.mq.soap.jar
 
-r--r--r--   1 mqm      mqm      1263310 Feb  4 06:02 com.ibm.mqjms.jar
 
-r-xr-xr-x   1 mqm      mqm       333879 Feb  4 05:59 commonservices.jar
 
-r--r--r--   1 mqm      mqm        17978 Aug  1  2007 connector.jar
 
-r--r--r--   1 mqm      mqm      1997216 Feb  4 06:02 dhbcore.jar
 
-r--r--r--   1 mqm      mqm        22769 Aug  1  2007 fscontext.jar
 
drwxr-xr-x   2 root     root         512 May  5 09:50 jca
 
-r--r--r--   1 mqm      mqm        25998 Aug  1  2007 jms.jar
 
-r--r--r--   1 mqm      mqm        98496 Aug  1  2007 jndi.jar
 
-r--r--r--   1 mqm      mqm         8809 Aug  1  2007 jta.jar
 
-r--r--r--   1 mqm      mqm       123717 Aug  1  2007 ldap.jar
 
-r-xr-xr-x   1 mqm      mqm        12184 Feb  4 06:02 libMQXAi02.so
 
-r-xr-xr-x   1 mqm      mqm         9856 Feb  4 06:02 libmqjbdf02.so
 
-r-xr-xr-x   1 mqm      mqm       138848 Feb  4 06:02 libmqjbnd05.so
 
-r-xr-xr-x   1 mqm      mqm        30492 Feb  4 06:02 libmqjexitstub01.so
 
-r--r--r--   1 mqm      mqm       445589 Feb  4 06:02 postcard.jar
 
-r--r--r--   1 mqm      mqm        77116 Aug  1  2007 providerutil.jar
 
-r--r--r--   1 mqm      mqm       889895 Feb  4 06:02 rmm.jar
 
dr-xr-xr-x   2 mqm      mqm          512 Oct 22  2007 soap
 
bash-3.00$ pwd
 
/apps/mqm/etc
 
bash-3.00$ cat MQPortScan.sh
 
#!/bin/sh
 
#
 
# Starting MQPortScan
 
#
 
if [ -n "${CLASSPATH}" ]; then
 
  CLASSPATH="libs/MQPortScan.jar:libs/com.ibm.mq.jar:libs/connector.jar:libs:.:$CLASSPATH"
 
else
 
  CLASSPATH="libs/MQPortScan.jar:libs/com.ibm.mq.jar:libs/connector.jar:libs:."
 
fi
 
 
export CLASSPATH
 
#
 
#
 
# Now start MQPortScan
 
#
 
java -Xms64m -Xmx256m  MQPortScan  "$@"
 
bash-3.00$ ./MQPortScan.sh -h hostname.com -s 1414
 
Exception in thread "main" java.lang.NoClassDefFoundError: MQPortScan
 
bash-3.00$ export CLASSPATH=/opt/mqm/java/lib/
 
bash-3.00$ echo $CLASSPATH
 
/opt/mqm/java/lib/
 
bash-3.00$
 
 | 
   
 
 _________________ Yeah, well, you know, that's just, like, your opinion, man. - The Dude
  Last edited by LouML on Thu May 29, 2008 10:33 am; edited 1 time in total | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | LouML | 
		  
		    
			  
				 Posted: Thu May 29, 2008 9:55 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Partisan
 
 Joined: 10 Nov 2005 Posts: 305 Location: Jersey City, NJ / Bethpage, NY 
  | 
		  
		    
			  
				Nevermind    _________________ Yeah, well, you know, that's just, like, your opinion, man. - The Dude | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Thu May 29, 2008 7:14 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
			  
				Hi,
 
 
If you separate the install package then you need to update the MQPortScan.sh shell script.  It is best, as per the instructions, to unzip the archive into a user directory and run it from there.
 
 
Regards,
 
Roger Lacroix
 
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
 
Connected to MQ!
 
Twitter | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |