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 3602016
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:41:35+00:00 2026-05-18T20:41:35+00:00

Some programs like ProcessExplorer are able to read strings in memory (for example, my

  • 0

Some programs like ProcessExplorer are able to read strings in memory (for example, my error message written in the code could be displayed easily, even though it is compiled already).

  1. Imagine if I have a password string “123456” allocated sequentially in memory. What if hackers are able to get hold of the password typed by the user? Is there anyway to prevent strings from being seen so clearly?

  2. Oh yes, also, if I hash the password and sent it from client to server to compare the stored database hash value, won’t the hacker be able to store the same hash and replay it to gain access to the user account? Is there anyway to prevent replaying?

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-05-18T20:41:36+00:00Added an answer on May 18, 2026 at 8:41 pm

    I believe you are confusing two things. The strings ProcessExplorer is finding are also able to be found by the “strings” command in Unix. It just dumps all the stored strings in an executable not the current memory.

    Unless you compiled a User password into your program, the memory allocated to store the data shouldn’t be read by ProcessExplorer.

    There are numerous issues that can occur. Your best bet is to ensure that no other code can run within your process space. Since the days of virtual memory, each process gets its own virtual memory space, ideally preventing any other program from accessing and messing with the memory of other programs. There are ways to detect if your program is being debugged.

    You also need to ensure that the memory you are using to store the password is never written to disk or paged out. This web site can point you in the right direction. https://www.securecoding.cert.org/confluence/display/seccode/MEM06-C.+Ensure+that+sensitive+data+is+not+written+out+to+disk

    [edit]

    I wanted to expand upon my previous post by talking about replay prevention.

    If you are truly serious about a complete solution you will need to implement two-way authentication using a PKI system. Your client will have a certificate and so will your server. The client’s private key will only be able to unlocked with a password the user will enter. This will allow the server to verify the the client is who he says he is. The client will then verify the server is who he says he is the same way as the client.

    By using this system you prevent someone from possing as a server and attempting to get you to send it your password.

    This is a topic I can’t cover too well on this web site. You will need to research Certificate Authorities and PKI.

    Your vulnerabilities are then:
    1. Peaking into current memory to extract the password
    2. Social engineering

    Reference: http://en.wikipedia.org/wiki/Public_key_infrastructure

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

Sidebar

Related Questions

Some programs like ProcessExplorer are able to read strings in memory (for example, my
I have noticed some programs explicitly zero sensitive memory allocations after use. For example,
For some small programs in Python, I would like to set, store and retrieve
I would like to compile and distribute (on .net) some python programs that work
How do some programs edit whats being displayed on the terminal (to pick a
guys I want to start programing with C++. I have written some programs in
I would like to automate the response for some question prompted by some programs,
I'm working on a tool that will perform some simple transformations on programs (like
I want to write some programs using Java comm api. I am not able
I'm writting some programs in Haskell, dealing with a lot of basic types like

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.