Click here to Skip to main content
11,813,557 members (47,154 online)
Rate this: bad
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 3-Aug-12 23:20pm
Mohibur Rashid at 4-Aug-12 6:13am
confused. what do you mean?
Bathooman at 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 at 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
0 Abhinav S 275
1 Palash Mondal_ 190
2 KrunalRohit 150
4 Manas_Kumar 115
0 OriginalGriff 3,877
1 KrunalRohit 2,526
2 Maciej Los 2,245
3 CPallini 2,240
4 ppolymorphe 1,750

Advertise | Privacy | Mobile
Web04 | 2.8.151002.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