LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2015, 02:22 AM   #1
gaurav_s
Member
 
Registered: Jul 2014
Posts: 43

Rep: Reputation: Disabled
Hiding Http tomcat server information.


I need to test whether my tomcat server running on Redhat is hiding server info.
I have added server="testserver" in server.xml file.

But, i don't know how to test it on linux system (wget) as well as wireshark.
I want to see testserver instead of server version number.
 
Old 05-27-2015, 05:11 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use telnet on port 8080 (assuming tomcat listens on that port):
Code:
telnet localhost 8080
then write:
Code:
GET / HTTP/1.0
and watch the first few lines of the response

Or with nmap, like:
Code:
nmap -sV localhost -p 8080

If you want to suppress the version info from the error page, read this

Regards
 
Old 05-27-2015, 06:14 AM   #3
gaurav_s
Member
 
Registered: Jul 2014
Posts: 43

Original Poster
Rep: Reputation: Disabled
nmap and telnet both commands are not available in node i am working and i don't have installation rights .Please suggest any other command or Wireshark filtering mechanism.
 
Old 05-27-2015, 12:02 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by gaurav_s View Post
nmap and telnet both commands are not available in node i am working and i don't have installation rights .Please suggest any other command or Wireshark filtering mechanism.
I don't know how wireshark works, but I guess you can use it to capture http traffic and read the headers. You can do the same using tcpdump
Or run the following wget command to get the tomcat response header
Code:
wget -S tomcat.domain.com:8080
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encapsulation and information hiding with pure C language shifter Programming 5 06-21-2013 04:29 AM
[SOLVED] Apache HTTP Server and Tomcat rmknox Linux - Server 2 06-08-2011 12:09 PM
HTTP Server to proxy TomCat/AJP on multiple IP aliases and SSL martijnburger Linux - Server 10 12-09-2008 11:00 AM
LXer: Practical Steganography Part-1: Hiding information in Binary Executable File LXer Syndicated Linux News 0 02-14-2008 11:41 AM
Hiding machine information and root information geletine Linux - Security 6 07-14-2006 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration