spleblem Posted June 22, 2007 Share Posted June 22, 2007 hey guys is there a keylogger sort of script that i can put on my website and see everything typed in and searched for. i would like more for security reasons. and to find out what is most commonly searched for. if these is such a php or other type of script which can do this would you be able to tell me. thanks in advance. Quote Link to comment Share on other sites More sharing options...
snowman15 Posted June 22, 2007 Share Posted June 22, 2007 I'm accually kind of new at php but form what I understand: You can probably use $_GET in whatever php script your search form is taking to open up a .txt file using fopen() and fwrite(). You can "append" the file so that every time somoene uses your search form, it can add whatever they typed in to the .txt file. Then you could easily check it whenever you wanted. (basic idea: create .txt file, write script using the search form to "edit/write" on a .txt every time "search" is clicked) Anyoen else that knows more about what they're doing have any input? Anything I missed or was wrong about? also, Check out this page for a php tutorial on file manipulation. http://www.tizag.com/phpT/filewrite.php Quote Link to comment Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 thanks thats a great idea but theres other places on my site where stuff get's typed like chat rooms and forums. going into more detail i would like it to save what they type in one big txt file and have there ip address so everytime they come on to my site theres is a new section added to the txt file with there ip and everything they type Alright well i know there might not be something like this but anything close would be cool like what snowman said but for more of the site. maybe i need a session or something anyideas thanks Quote Link to comment Share on other sites More sharing options...
snowman15 Posted June 22, 2007 Share Posted June 22, 2007 There are many factors you must think about here and how they could possibly not interact with eachother at all. 1. for all of the chat rooms/ many different things people type in: are they compatible with php? Or is it some flash or javascript chatroom that isnt very easily used in php scripts? any chance you could share the website? Quote Link to comment Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 yes the chat is javascript. that's why i wanted a keylogger. the site isn't online it still be developed. even if only some thing get recorded. anyone got any ideas. Quote Link to comment Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 anyone got any ideas Quote Link to comment Share on other sites More sharing options...
MemphiS Posted June 22, 2007 Share Posted June 22, 2007 Insert the search terms into a mysql table. Quote Link to comment Share on other sites More sharing options...
spleblem Posted June 22, 2007 Author Share Posted June 22, 2007 and what does a search terms do can someone please explain thanks in advance Quote Link to comment Share on other sites More sharing options...
php_joe Posted June 22, 2007 Share Posted June 22, 2007 1. make a PHP page like this: <? $info = "$text\n"; $handle = fopen("./record.txt", "a+"); fwrite($handle, $info); fclose($handle); ?> I'm calling it record_text.php. Now you can use javascript's onsubmit function to refresh a frame or iframe every time a user submits a text in the chat room. Quote Link to comment Share on other sites More sharing options...
spleblem Posted July 2, 2007 Author Share Posted July 2, 2007 alright thanks php_joe ive been away for a week or so. would you be able to explain how i would set that up. and can i use it to record anything typed in to a .php page. Quote Link to comment Share on other sites More sharing options...
spleblem Posted July 2, 2007 Author Share Posted July 2, 2007 alright i don't know if this keylogger will be posaible so ill limit what i want to it do. i want to to be a heylogger on my web proxy(php script used to get passed blocked websites). i would like to see what people are using my proxy for. like if they use it to google i would like to know what there searching and if they use it for forums i would like to see what there posting. if anyone has any ideas i would be greatfull thanks in advanced Quote Link to comment Share on other sites More sharing options...
spleblem Posted July 2, 2007 Author Share Posted July 2, 2007 anyone got any ideas thanks if ya do Quote Link to comment Share on other sites More sharing options...
Hypnos Posted July 2, 2007 Share Posted July 2, 2007 The Apache log (assuming you are using apache) will tell you what IP loaded what URL, as well as GET request information. You can't see what they posted on forums, but you can see what threads they are visiting and such. To collect POST information, you would have to modify the software. Like if($_POST) then dump the post array and IP to a text file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.