From 859a254d81fd15bf32efba39724b31b5416eb5b3 Mon Sep 17 00:00:00 2001 From: Prajwol Lamichhane Date: Mon, 5 Aug 2019 01:01:13 +0545 Subject: [PATCH 1/3] KeyMapping --- After Installation Keymapping/README.md | 21 ++++ After Installation Keymapping/filename.log | 32 +++++++ After Installation Keymapping/my_keymap | 106 +++++++++++++++++++++ After Installation Keymapping/parser.py | 32 +++++++ 4 files changed, 191 insertions(+) create mode 100644 After Installation Keymapping/README.md create mode 100644 After Installation Keymapping/filename.log create mode 100644 After Installation Keymapping/my_keymap create mode 100644 After Installation Keymapping/parser.py diff --git a/After Installation Keymapping/README.md b/After Installation Keymapping/README.md new file mode 100644 index 0000000..c81e7af --- /dev/null +++ b/After Installation Keymapping/README.md @@ -0,0 +1,21 @@ + + + +

+How To run on the Terminal: +Starting Key Logger +sudo logkeys --start --output filename.log -m my_keymap + +

After this write anything through keyboard.

+ +Stopping Keylogger: +sudo logkeys --kill + +Run the parser.py file on the same directory. +What is does ? +
  • Checks the filename.log file on the same directory +
  • Then parse the file and replaces the letters according to our personal keyboard on capitalized format. + +

    + + diff --git a/After Installation Keymapping/filename.log b/After Installation Keymapping/filename.log new file mode 100644 index 0000000..9fb0eb9 --- /dev/null +++ b/After Installation Keymapping/filename.log @@ -0,0 +1,32 @@ +Logging started ... + +2019-08-04 19:34:49+0545 > fwjji u ȁv xwucd hwtjiddwa +2019-08-04 19:35:00+0545 > +2019-08-04 19:35:06+0545 > + +Logging stopped at 2019-08-04 19:35:06+0545 + +Logging started ... + +2019-08-04 19:37:58+0545 > ȁv u xwucd hwtjiddwa +2019-08-04 19:38:05+0545 > +2019-08-04 19:38:10+0545 > + +Logging stopped at 2019-08-04 19:38:10+0545 + +Logging started ... + +2019-08-04 19:41:37+0545 > fwjji u ȁv ȁcyhyj oȁeȁguyju +2019-08-04 19:41:45+0545 > +2019-08-04 19:41:50+0545 > + +Logging stopped at 2019-08-04 19:41:50+0545 + +Logging started ... + +2019-08-04 19:55:11+0545 > fiq aiw܂ ewauew\ruic qieh ic ȁ JȁȁC eiyrwe +2019-08-04 19:55:41+0545 > +2019-08-04 19:55:48+0545 > + +Logging stopped at 2019-08-04 19:55:48+0545 + diff --git a/After Installation Keymapping/my_keymap b/After Installation Keymapping/my_keymap new file mode 100644 index 0000000..6f5ef78 --- /dev/null +++ b/After Installation Keymapping/my_keymap @@ -0,0 +1,106 @@ + +1 ! +2 @ +3 # +4 $ +5 % +6 ^ +7 & +8 * +9 ( +0 ) +- _ += + + + +q Q +w W +e E +r R +t T +y Y +u U +i I +o O +p P +[ + + +ȁ +܂ +a A +s S +d D +f F +g G +h H +j J +k K +l L +; + +' " +` ~ +܀ +\ | +z Z +x X +c C +v V +b B +n N +m + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +ć + + + + + + + + + + + + + + + + + + + + + + diff --git a/After Installation Keymapping/parser.py b/After Installation Keymapping/parser.py new file mode 100644 index 0000000..717cba8 --- /dev/null +++ b/After Installation Keymapping/parser.py @@ -0,0 +1,32 @@ +import string + +clues = {'ȁ': 'A', 'x': 'B', '-': 'C', 'a': 'D', 'w': 'E' +, 's': 'F', 'd': 'G','f': 'H', 'u': 'I', 'g': 'J', 'h': 'K', + 'j': 'L', 'v': 'M', 'c': 'N','i': 'O', 'o': 'P', ' ': 'Q', + 'e': 'R', '.': 'S', 'r': 'T', 'y': 'U','z': 'V', 'q': 'W', + '܀': 'X', 't': 'Y', '`': 'Z','/.':'S'} + + +def decrypter(words, clues): + + for i, word in enumerate(words): + for key in clues: + words[i] = words[i].replace(key, clues.get(key)) + + return words + + +s = open("filename.log","r+") +phrase = [] +for line in s.readlines(): + n = len(line) + for i in range(len(line)): + if line[i] == " " and line[i+1] == ">" and line[i+2] == " ": + phrase.append(line[i+3:n]) + +Encrypted = phrase +print (Encrypted) +Decrypted = decrypter(phrase,clues) +for i in range (len(phrase)): + print(Encrypted[i]) + print(Decrypted[i]) \ No newline at end of file From 79895bedd6dddd81beeaa95a4f3b00c6762e61f9 Mon Sep 17 00:00:00 2001 From: Prajwol Lamichhane Date: Mon, 5 Aug 2019 01:03:30 +0545 Subject: [PATCH 2/3] KeyMapping --- After Installation Keymapping/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/After Installation Keymapping/README.md b/After Installation Keymapping/README.md index c81e7af..c15c5a6 100644 --- a/After Installation Keymapping/README.md +++ b/After Installation Keymapping/README.md @@ -2,17 +2,17 @@

    -How To run on the Terminal: -Starting Key Logger +

    How To run on the Terminal:

    +

    Starting Key Logger

    sudo logkeys --start --output filename.log -m my_keymap -

    After this write anything through keyboard.

    +

    After this write anything through keyboard.

    -Stopping Keylogger: +

    Stopping Keylogger:

    sudo logkeys --kill -Run the parser.py file on the same directory. -What is does ? +

    Run the parser.py file on the same directory.

    +

    What is does ?

  • Checks the filename.log file on the same directory
  • Then parse the file and replaces the letters according to our personal keyboard on capitalized format. From d1c9b981519f58eb03f9993c975121c286981ed5 Mon Sep 17 00:00:00 2001 From: Prajwol Lamichhane Date: Mon, 5 Aug 2019 01:06:16 +0545 Subject: [PATCH 3/3] Update README.md --- After Installation Keymapping/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/After Installation Keymapping/README.md b/After Installation Keymapping/README.md index c15c5a6..c4d4896 100644 --- a/After Installation Keymapping/README.md +++ b/After Installation Keymapping/README.md @@ -11,7 +11,8 @@ sudo logkeys --start --output filename.log -m my_keymap

    Stopping Keylogger:

    sudo logkeys --kill -

    Run the parser.py file on the same directory.

    +

    Run the parser.py file on the same directory as:

    +python parser.py

    What is does ?

  • Checks the filename.log file on the same directory
  • Then parse the file and replaces the letters according to our personal keyboard on capitalized format.