Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C Linux socket Network
hi
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 server.so i should modify server program!!
Posted 4-Aug-12 0:20am
Comments
Mohibur Rashid at 4-Aug-12 6:13am
   
confused. what do you mean?
Bathooman at 4-Aug-12 6:27am
   
hi
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
good
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.
  Permalink  

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



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 4 Aug 2012
Copyright © CodeProject, 1999-2014
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