Click here to Skip to main content
11,935,031 members (51,886 online)
Rate this:
Please Sign up or sign in to vote.
See more: C Linux Network Sockets
i have just a listening server that listen on 3306 port!!
users can connect my server using mysql client and telnet.
i want to get password of database using getpass()?
how can i use this function in client side of my program?
i only have a i should modify server program!!
Posted 4-Aug-12 0:20am
Mohibur Rashid 4-Aug-12 6:13am
confused. what do you mean?
Bathooman 4-Aug-12 6:27am
as i said i'm working on a honeypot project!!
i wrote a listening server!
client connect to it using mysql client or telnet to excecute query!
at first user should enter a password!!
i can send a message to client by send but i want to get password like when you enter password in unix. i mean you cant see th password on screen! using getpass() but i dont know how to do it?
Joan Murt 4-Aug-12 8:04am
It is difficult to imagine what you need. Improve your question please.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can't make the server do something on the client, especially looking in to local databases. I have no idea what a honeypot is, but it sounds rude.... You will need to run code on the client, in order to run within the client's environment and access client data.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 4 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100