Giter Site home page Giter Site logo

sleeyax / aternos-api Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 5.0 75 KB

Unofficial aternos.org API/library to start & stop servers programmatically

License: GNU General Public License v3.0

Go 100.00%
aternos aternos-server aternos-org minecraft-server minecraft bot api library package

aternos-api's Introduction

Note

Don't fall victim to impersonation attempts. Verify my identity here.

โ“ About Me

I'm a Full Stack Software Engineer who loves to both break and build the web. Ever since I started programming I've had a particular interest in web scraping, automation, bots and security for which I've grown an expertise. Some may recognize me from my contributions in a time where sneaker bots were still cool (see projects below). The other side of me loves to develop web applications, always contemplating the most optimal solution.

Besides my main occupation, I'm interested in other fields such as (but not limited to) cross-platform mobile app development, reverse engineering, GNU/Linux, Containers, DevOps and cloud.

If you'd like to hire me or if you're looking for a partner for your next project, check out my socials and shoot me a DM.

I'm also active on GitLab.

๐Ÿ’ป Projects and Companies

Present

  • 2024 -> ... : Open source development. See my latest projects below. Stay tuned and consider becoming a sponsor! ๐Ÿ‘€
  • July 2023 -> ... : All in one dating app automation suite for OFM (feat. snkr friends). ๐Ÿ˜

Past

  • 2023: Stremio media player & content aggregator
    • Bootstrapped a fresh mobile app for Android and iOS using Kotlin & Compose
  • 2022: Pixl NFT marketplace (formerly known as flow.so and infinity.xyz) to trade digital assets on the ETH blockchain
  • 2019 -> 2021: Cybersole AIO (All In One) web automation software to automatically purchase online items (shoes, clothing, collectibles)
    • Wrote and maintained site modules
    • Reverse engineered all kinds of antibot and WAFs - including mobile versions
  • 2019: Ignite another AIO bot company
    • Rewrote most of the codebase from JavaScript spaghetti code to a modular TypeScript codebase and migrated from plain CSS to SCSS modules
  • 2018 -> ... : Stremio Community media player & content aggregator
  • 2017-2018: Fiverr where it all began...

๐Ÿ‘‹ Socials

You can reach out to me via one of the following channels:

Please email me if your inquiry is urgent.

Do NOT contact me for personal support, feature requests, issues, suggestions etc. regarding any of my public GitHub repositories. Create an issue or start a discussion on the relevant repository instead.

๐Ÿ“ˆ Stats

Overview

github stats

Trophies

trophies

aternos-api's People

Contributors

ganiskowicz avatar isaacismaelx14 avatar sleeyax avatar

Stargazers

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

Watchers

 avatar

aternos-api's Issues

Concurrency issues when using websockets + proxies

For some reason connections start to fail when using a (rotating) proxy over websockets. Mostly weird EOF errors.

There's some progress being made on this issue in this branch, including a mechanism to reconnect on failure, though it's far from perfect:

2022/05/15 17:44:37 main 1: server is starting
2022/05/15 17:44:39 main 0: server is starting
2022/05/15 17:44:41 main 2: server is starting
2022/05/15 17:44:42 reader: server closed the connection unexpectedly [websocket: close 1006 (abnormal closure): unexpected EOF], reconnecting...
2022/05/15 17:44:44 reader: server closed the connection unexpectedly [websocket: close 1006 (abnormal closure): unexpected EOF], reconnecting...
2022/05/15 17:44:46 reader: server closed the connection unexpectedly [websocket: close 1006 (abnormal closure): unexpected EOF], reconnecting...
2022/05/15 17:44:49 reader: server closed the connection unexpectedly [websocket: close 1006 (abnormal closure): unexpected EOF], reconnecting...
2022/05/15 17:44:51 reader: server closed the connection unexpectedly [websocket: close 1006 (abnormal closure): unexpected EOF], reconnecting...
2022/05/15 17:44:53 reader: server closed the connection unexpectedly [websocket: close 1006 (abnormal closure): unexpected EOF], reconnecting...

The issue is likely any of the following:

  • deadlock in a goroutine somewhere (although go's race detector can't find anything in particular)
  • the underlying connection getting abruptly closed due to some bug/issue in gorilla websockets, gotcha, fhttp, utls or even the Go language itself (yes, there's lots of possible points of failure!).
  • the remote server actually refusing the connection due to some detection mechanism

I've already wasted a ton of time working on this issue and unfortunately it's not worth my time anymore at this point. Up for grabs if anyone wants to work on this.

Update dependencies

Both UTLS and gorilla websocket dependencies can be updated to their latest (non-forked) versions.

[question] No examples of using the CLI tool

There are example illustrating the programmatic approach, but for CLI, there are no clear instruction. When I tried to run CLI, it displayed me a help message with bunch of options I can provide to it for example proxy, server and session, etc. But I don't know how to use them or what they are. I mean am I supposed to enter the server address, I don't know what proxy and session are etc. I would be great if provided me a detailed explanation with some examples.

Goroutine tweaks

Planned changes regarding WebsocketConnection:

  • SendHeartBeats is kinda broken rn, it can't be interrupted properly.
  • Remove InterruptSignal. This is something that should be implemented by the user if he wants that functionality.
  • The sender routine can be removed / simplified.
  • close() should send the close msg to the server and then close the actual conn.

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.