Register for your free account! | Forgot your password?

Go Back   elitepvpers > New Arrivals > Black Desert
You last visited: Today at 20:13

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Tool] BDO Watchdog (Source included)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2006
Posts: 1,485
Received Thanks: 285
Thumbs up [Tool] BDO Watchdog (Source included)

Reference: https://www.reddit.com/r/blackdesert...ool_for_black/

From the author:
Quote:
I present to you a little program I came with that monitors the BDO clients connection status and sends a Telegram message if it disconnects (and more). Before I get into the details, let's get some things out of the way: yes, this is my very first post on Reddit, but was a silent reader of this site for quite some time now. This subreddit has been a good resource and hence I felt like contributing something back would be the right thing. As for the program itself, it is written in Go. Note that I do not have a professional IT background and do all of my programming in R. As R is not appropriate for this kind of program I tried to "learn" Go in a couple of evenings, which is why the code quality is not the greatest (to put it lightly). Anyway, let's get to the important part!
Features:
  • Monitors the BlackDesert64.exe and checks its connection status
  • Detects if the client disconnected, even if BDO is running minimized in the system tray
  • Sends a Telegram message to inform you about the disconnect
  • (optionally) kills the BDO client (currently disabled, need to find a more reliable method)
  • (optionally) shuts down the computer

Getting Started:
  • Download the compiled executable file from GitHub ()
  • Run BDO-Watchdog.exe once, which will create a config file in the same directory (config.yml) (NOTE: before launching the program right-click on the .exe -> Properties -> Allow Access. Otherwise, Windows will prevent its execution.)
  • Edit the config file with any text editor and fill in the credentials for the Telegram service (see below for instructions how to set up a Telegram bot)
  • Login to BDO and then start BDO-Watchdog.exe
  • Enjoy the re-assuring feeling of no longer missing a disconnect
  • ???
  • Profit

You must register and activate your account in order to view images.

HOW IT WORKS:
  • For the curious, some technical details on the implementation:
  • Check if the designated process is currently running
  • Obtain the process ID (PID)
  • Run cmd.exe netstat -aon and find the PID its output
If the process is running, but its PID is no longer found in the output of netstat it then does the following:
  • Send a Telegram message using a URL query string
  • (optionally) tries to kill the process (currently disabled because unreliable)
  • (optionally) shuts down the computer (cmd /C shutdown /s)

CONFIGURATION

On first startup the program creates the config.yml file, where you can provide the details of your Telegram bot. It also contains some program specific options.
Option Description
token The token is a string along the lines of AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw that is required to authorize the bot
botid A unique ID of your bot along the lines of 123456789
chatid Unique identifier for the target chat or username of the target supergroup or channel
message The message your bot sends in case of a disconnect
stayalive By default, the program closes if it has detected a disconnect
process The process to be monitored, defaults to BlackDesert64.exe
timebetweenchecksins Time in seconds to wait between each polling interval
shutdownondc Shut down the computer after the client disconnected
killondc Kill the process after it disconnected CURRENTLY DISABLED

SETTING UP THE TELEGRAM BOT
  1. for your favorite platform
  2. Initiate chat with the
  3. Enter /newbot and follow instructions. If successful, you will receive the bot id and token (in the form of <botid:token>).
  4. Initiate a conversation with your bot by entering telegram.me/<bot_username> in your browser
  5. Retrieve your personal user/chat id by entering https://api.telegram.org/bot<BOT_ID>:<TOKEN>/getUpdates. You will see a JSON object that contains "from":{"id":12345678,[...]". The id is the chat id you will need.
  6. Finally, open config.yml and copy the bot id, token and chat id in the corresponding fields. Done!

COMPILING BDO WATCHDOG FROM SOURCE
If you want to compile this program yourself you will need the following programs/tools:
  • (optional)
  • (optional)
If everything is set up correctly and all executables are in PATH clone this repository, open a command shell in the root directory and enter make. Alternatively, you can also just run go build, but then the command shell window will not be hidden and the executable will not have a fancy icon.

Source Below, no need for VirusScan Results.
Attached Files
File Type: zip BDO-Watchdog-master.zip (25.0 KB, 6 views)



killzone is offline  
Thanks
2 Users
Old   #2
 
elite*gold: 24335
The Black Market: 165/0/0
Join Date: Jul 2009
Posts: 3,206
Received Thanks: 761
Great Idea, wondering why i not came up with it


Beni is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
NFSW_AFdll [source included]
with that module u can AutoFinish: Sprint: MultiPlayer/SinglePlayer/Private Circuit: MultiPlayer/SinglePlayer/Private Drag:...
10 Replies - NFSW Hacks, Bots, Cheats & Exploits
Twitch Bot [Multithreading] [Source Included]
#closerequest Ich wollte den Bot Open Source machen damit jeder frei den Bot benutzen kann. Das jeder eine gute Quali + Virenfreies Programm hat....
12 Replies - Coding Releases
[Release][C#] SRProxyNET (Source Code Included)
Releasing some old source code for Silkroad. Also usable in VB.NET with the compiled You can implement it into your application like a Proxy or...
9 Replies - SRO Coding Corner
Auto Enter v1 [Source included]
Silkroad Auto Enter + Source - Updated 6/6/09 - v1.5.2 by SpInKsTaR :] http://img199.imageshack.us/img199/3496/autoenter.jpg Hai guys, I...
90 Replies - SRO Hacks, Bots, Cheats & Exploits
Injects Updater (source included)
What does it do? This program replaces old injects in AgBot scripts with the most recent ones Why did I make it? We had to update the injects in...
7 Replies - SRO Hacks, Bots, Cheats & Exploits



All times are GMT +2. The time now is 20:13.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.