Code Monkey home page Code Monkey logo

hackthebot's Introduction

HackTheBot

⚠️ You shouldn't use this bot anymore. The code is old and dirty, HTB changed their interface (even the old with small details) so the scraping don't work anymore, and they released a working API, which you should rely on. So I'll archive this repo. ⚠️

You can see the progress here : https://trello.com/b/Y8Ah3ZPY/hackthebot

The bot is almost ready to be used! In the meantime, here are some features it can already do:

Commands :

  • Synchronize your Hack The Box account with the Discord server
  • Retrieve information about a box (with the matrix)
  • Retrieve information about a Hack The Box member
  • Search for items among Ippsec videos
  • Retrieve information on the last box released
  • View the leaderboard of Discord server members
  • List active boxes
  • Display the usage of each command
  • Download official writeups, or search writeups submitted by users
  • Create channels for boxs you're working on

In the shoutbox, display :

  • The pwn user / root of the boxes and challenges.
  • If a member gets a VIP pass
  • How long before the new box arrives
  • When the box arrived
  • When a new server member synchronizes his HTB account

Other :

  • Unlike Hack The Box's Discord server bot, this bot automatically updates your rank.
  • It automatically moves the channel from a removed box to the "box-retired" category.

Here are some screens (in french) to tease the bot :

>help :

>help

>verify :

>verify

>get_box :

>get_box

>last_box :

>last_box

>get_user :

>get_user

>me :

>me

>ippsec :

>ippsec

>leaderboard :

>leaderboard

>man :

>man

>writeup :

>writeup >writeup -links

>list_boxs :

>list_boxs

>work_on :

>work_on >work_on 2

And a few other details that happen automatically

When a box is retired :

When a new user sync his HTB account :

When a member pwn user / root of a box :

When a member succeeds a challenge :

When a new box comes and gets released :

When a member gets VIP :

Async update !

I redid the user scraping asynchronously, and for 10 users, it went from 47 to 5 seconds !

Performance tests in synchronous :

And in asynchronous :

If you have question or just want to contact me on Discord : mxrch#8507

hackthebot's People

Contributors

mxrch avatar psyray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hackthebot's Issues

Config.py

Great work, i had the same idea but no time ;(
Can you add to your project a sample of config.py

thx

Not really an issue but a request

Well....first i would like to say a big thanks for all your hard work. The bot works fine for now, tho it does give error which i will post later some time(if i come up with a solution). I was requesting if i could use your bot in my own bot project, i was basically making something like a captcha for ppl who come from disboard but since solving captcha's are easy and hence there were tons of skids in the server so i was requesting if i could merge your bot into mine, i have a moderation bot currently in which i plan on adding some other stuff for leisure i am trying to make something combined like mee6, server captcha n other bots combined.

Ps:- sorry for my bad english, its not my 1st language

Verify don't work

Hi,

Thanks for your bot, it's working really well.
I had to find the config structure from your code (a doc in the README could be really good)
My config structure is


HTB = {
    "email": "[email protected]",
    "password": "mysuperpassword",
    "api_token": "myHTBapitoken",
    "writeup_legit" : False,
}

discord = {
    "bot_token": "myDiscordbottoken",
    "guild_name": "my guild name",
}

options = {
    "writeup_legit": False,
}

emojis = {
    "linux": "",
    "windows": "️",
}

My problem is that when I launch the verify command with my HTB account id, nothing is returned.
I have debug the python script, and the line below never finish, so script is blocked and the only way to stop is to kill it.

req = await self.session.get("https://www.hackthebox.eu/api/users/identifier/" + htb_acc_id, headers=self.headers)

If I call this URL with the account identifier in a browser, a correct JSON is returned.

Do you have an idea ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.