Unix/Linux Go Back    


Security Discuss UNIX and Linux computer and network security, cyber security, cyber attacks, IT security, and more.

Openssl s_client Adding Headers Manually

Security


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-19-2014
metallica1973 metallica1973 is offline
Registered User
 
Join Date: Dec 2007
Last Activity: 18 January 2017, 4:25 PM EST
Location: Washington D.C
Posts: 215
Thanks: 29
Thanked 2 Times in 2 Posts
Openssl s_client Adding Headers Manually

Daily stupid question:

How can I successfully add/pass HTTP options to openssl? I am trying to get a response from our test web server /vpn/index.html for testing an application. I can successfully get it doing it the manually way like:

Code:
openssl s_client -connect 192.168.3.20:443
 blah blah blah
 PSK identity: None
 PSK identity hint: None
 Start Time: 1416438768
 Timeout   : 300 (sec)
 Verify return code: 0 (ok)
---
GET /vpn/index.html HTTP/1.0\r\nHost: 192.168.3.20\r\nUser-Agent: Mozilla/5.0\r\n\r\n\n
blah blah blah
                </div>
            </div>
            <div id="logonbelt-bottomshadow">
            </div>
        </div>
<DIV id=scriptArea></DIV>
<script type="text/javascript" language="javascript">
Resources.Load();
</script>
</BODY>
</HTML>
closed

I need the output via

Code:
echo -ne "GET /vpn/index.html HTTP/1.0\r\nHost: 192.168.3.20\r\nUser-Agent: Mozilla/5.0\r\n\r\n\n" | openssl s_client -connect 192.168.3.20:443

so I dont have to do it the manual way like above but for some odd reason my one liner displays nothing. ????

Last edited by metallica1973; 11-20-2014 at 03:06 PM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue w/manually installing OpenSSL 1.0.1j caspersgrin Red Hat 0 10-17-2014 07:05 PM
Adding Broastcaste i.p manually kkarthik_kaja Solaris 2 02-28-2011 02:12 AM
Transpose multipe columns to rows and adding headers Gery Shell Programming and Scripting 8 03-23-2010 04:37 PM
Merging of files with different headers to make combined headers file marut_ashu Shell Programming and Scripting 1 08-07-2009 05:10 AM
cron-apt - adding X-headers karuna UNIX for Dummies Questions & Answers 1 04-03-2009 06:25 AM



All times are GMT -4. The time now is 04:03 AM.