Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8147229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:16:50+00:00 2026-06-06T14:16:50+00:00

I want to record the handshake messages between server and client into the file

  • 0

I want to record the handshake messages between server and client into the file and replay them later.

For example, when I run s_server command with -debug option, I get some output like follows:

read from 0x9482088 [0x948d518] (2064 bytes => 2064 (0x810))
0000 - 0b 00 08 0c 00 08 09 00-04 1a 30 82 04 16 30 82   ..........0...0.
0010 - 02 fe a0 03 02 01 02 02-01 02 30 0d 06 09 2a 86   ..........0...*.
0020 - 48 86 f7 0d 01 01 05 05-00 30 81 88 31 0b 30 09   H........0..1.0.
0030 - 06 03 55 04 06 13 02 4e-4c 31 0b 30 09 06 03 55   ..U....NL1.0...U
0040 - 04 08 0c 02 4e 42 31 12-30 10 06 03 55 04 07 0c   ....NB1.0...U...
0050 - 09 41 4d 53 54 45 52 44-41 4d 31 10 30 0e 06 03   .AMSTERDAM1.0...
0060 - 55 04 0a 0c 07 4d 41 49-4e 20 43 41 31 0c 30 0a   U....MAIN CA1.0.
0070 - 06 03 55 04 0b 0c 03 49-43 54 31 17 30 15 06 03   ..U....ICT1.0...
0080 - 55 04 03 0c 0e 77 77 77-2e 6d 61 69 6e 63 61 2e   U....www.mainca.

I can record this data into files. But How can I extract this data (bytes) into the buffer? Is there any utility in Openssl to do it? or anything can be done in C program?

Thank You!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:16:52+00:00Added an answer on June 6, 2026 at 2:16 pm

    Yes. Assuming you are saving your log as a pcap file, tcpreplay will do exactly what you want. If you’re not saving as a pcap, you can do so either with libpcap or by writing the file yourself (the format is not terribly complicated).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to record audio stream as mp3 file on server. I know flash
For a game server, I want to record details when a player makes a
I want to record that last update of user that log in into my
We want to record all db query into log table, is it possible?
I want to Record audio but with some background images in out put file.
I want to record own voice or any through mic(In any way) into a
I want to record all the user that browse into my web site, in
I want to record a .caf file then send it as a mail attachment
I want to record voice and after that get .flac format file, can I
I'm on Ubuntu and I want to record PulseAudio output to a file, to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.