diff --git a/After Installation Keymapping/README.md b/After Installation Keymapping/README.md new file mode 100644 index 0000000..c4d4896 --- /dev/null +++ b/After Installation Keymapping/README.md @@ -0,0 +1,22 @@ + + + +

+

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 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. + +

    + + 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