Skip to content

Just hover your mouse over the hamster and start writing text, and watch how your letters turn into Morse code. Or enter the code into the program and wait until the program itself writes the text translated into Morse code

Notifications You must be signed in to change notification settings

codeFlane/hamster_autocipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HamsterKombat auto cipher

This program has 2 mods. In first mode you can write text in realtime and program convert it into morse code. In second mode you write cipher in terminal and program after 3sec starting write cipher in morse code

Docs

First mode (real-time)

python3 main.py
Press letters in your keyboard and program will write this letter in morse code, clicking where you keep your mouse on screen
Example: You press to "a" button, and program click 1 short tap and 1 long tap (.-) in real time

Second mode (auto)

python3 main.py -c "code"
Write today's cipher in terminal, keep your mouse over hamster and program write cipher in auto-mode. But dont leave your computer - hamster kombat often lags and cipher could be clear or some letters may disappear. If you see this, clear code (if some letters disappeared) and restart program. in the future there may be a function that will look for the "Get a prize" button, and if it is not there, it will repeat the script (this will can be configured using a flag)
Example: You write in terminal after "-c" flag following: "cat". After start program will click - long, short, long, short; short, long; long; (-.-. .- -)

Second mode without writing cipher

You can get cipher from website using "-g" flag (Beta)
python3 main.py -g -c
When program starts it try to get cipher from website that you indicated in config. After that program show cipher in terminal and ask if should continue. If you enter "y", "yes", "д", "1", or "true" (text written in capital letters is also taken into account), program start write cipher in default auto mode with found cipher. If you enter any others texts, program will be ended.

Config

This program has configuration file (config.py), and here you can tune settings
DELAY_PER_LETTER - delay after every writed letters (default - 0.7sec)
DELAY_PER_CLICK - delay per taps (write -, delay, write .) (default - 0.2sec)
DELAY_IN_LONG_TAP - duration of long tap (press mouse, delay, release mouse) (default - 0.5sec)
UNNECESSARY_DELAYS - enable or disable micro-delays that occur when modes are enabled or disabled (default - True)
CONTINUE_IF_ERROR - continue program if program see incorrect letter in your text (only in auto mode, maybe to be in real time mode soon) (default - True)
GETCODE_WEBSITE - number of website where program get code (1 - www.cybersport.ru, 2 - moneymail.ru) (default - 2)
GETCODE_SHOW_WARNINGS - show warnings in getcode related to websites (code maybe old, program maybe get incorrect code, etc) (default - True)

Where it can using in computer

I tried it do in phones, but for now modules created in python cant clicking in phone (this is very difficult to do even in other languages)
You can install LDPlayer or other andorid simulators on your computer, download on it telegram and play hamster kombat

Updates

1.6.5 (Latest)

Selecting a website to take the code from in the config
Warnings in getcode that you can enable or disable in config
__pycache__ directory removed
"Soon" chapter in readme

1.6

Flag "-g" in auto mode. This starting find cipher in website. Not working if you writed any text after -c or use real-time mode (Beta)
Added .gitignore

1.5.1

"0" in real-time mode (Bug)

1.5

More logs (disabling/enabling mods, writed letters, etc.)
"UNNECESSARY_DELAYS" and "CONTINUE IF ERROR" variables in config
Micro-delays that occur when modes are enabled or disabled. You can enable or disable in config file
Alerts appear if you writed an incorrect letter in auto mode. you can enable or disable exiting the program upon such a notification
Numbers (0, 1, 2, 3..., 9) in all modes.
"Updates" chapter in readme

1.0

Appearance on GitHub

Soon

restart writing code using hotkey;
hacking mode - tries to sort through all possible code options (from "a" to "zzzzzzzzz"), will search until it finds the button "Get the prize"

About

Just hover your mouse over the hamster and start writing text, and watch how your letters turn into Morse code. Or enter the code into the program and wait until the program itself writes the text translated into Morse code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages