Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Release] CoC Always Online Script
#1
Checkmark 
Hello everyone,

As a new member of this forum, I decided I should start off on the right foot and release something that some of you may find useful. So, today, I decided to write a little Clash of Clans botting script that keeps a player online indefinitely. It's nothing fancy, but it works well and it bypasses the 5 hour limit.

The basic process of the script:
1. The user selects the device to bot on.
2. The script confirms that device is available.
3. The script pushes the Clash of Clans app to the device screen.
4. The script calculates a 5% chance as to whether or not it should kill and restart the game. (Prevents the 5 hour online issue.)
5. The script executes an arbitrary click somewhere between -15% and 15% from the center of the screen.
6. The script waits for a randomly chosen amount of time between 30 seconds and 3 minutes and then repeats steps 4 & 5 again. (This goes on infinitely until the script is killed.)

Key Notes:
- Does not require any Android emulators (e.g., Bluestacks)
- Should work without rooting the device
- Requires a physical Android device
- Currently requires the device to be connected via USB to the computer
- Multiple instances of this script can be ran simultaneously to keep multiple accounts online (a new instance of the script must be opened for each account you want to keep online)

Future Possible Features:
- Botting over the internet (without a physical connection via USB)
- Advanced botting using Optical Character Recognition, Object Detection, Template Matching, and Computer Vision (for auto-attacking, auto-collecting resources, auto-troop training, auto-donating, etc.)

This script requires Python 3.0.0 or higher (not included in my archive) and the Android Debug Bridge (ADB) with all its dependencies (all of which I have included in my archive). The script is designed for windows, but it could easily run on another platform if you replace the dependencies folder with the relevant ADB dependencies for your platform. The script can also be converted to Python 2.x by anyone who has decent knowledge of the different Python versions. All of the primary code can run in Python 2.x except things like printing output and receiving input.

If you want to view the source code, just open coc_always_online.py in any text editor and you will be able to see all of the source code. I have also included a legal disclaimer in that file which users should read before running. I attempted to document the script thoroughly so readers will know what is going on throughout it.

Screenshot of the script running in IDLE:
[Image: yymM3ma.png]

I assume nobody here wants to get a virus, so I have included some virus scans:
VirusTotal (0/57)
Jotti (0/22)

Download Link:
Dropbox: Clash of Clans - Always Online - Android

I hope it's alright that I posted an offsite link. I didn't see a way to upload files/attachments to my post, so I decided to put it up on dropbox.

All the best,
Spencer

PS: If you use this and like it, let me know. If enough people find this bot useful, I'll probably continue its development and see if I can add some cool, extra features!
Reply
 


Messages In This Thread
[Release] CoC Always Online Script - by S.Doak - 04-19-2015, 11:09 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website