How to Develop a Minecraft Anti cheat for Payback against Hackers (Lag Compensation + Phase Checks)

Поділитися
Вставка
  • Опубліковано 24 жов 2024

КОМЕНТАРІ • 54

  • @nopfp416
    @nopfp416 2 роки тому +18

    If the fly check uses the "onGround" data in a packet it can be edited by a client cheat.

    • @Menschensindlecker
      @Menschensindlecker Рік тому

      but what if he does m a t h ?

    • @nopfp416
      @nopfp416 Рік тому

      ​@@Menschensindleckerdoesn't matter cause it would look like walking to the anti-cheat if that's the only thing used as an onGround check

    • @Menschensindlecker
      @Menschensindlecker Рік тому

      @@nopfp416 true

    • @improve1427
      @improve1427 10 місяців тому

      @@nopfp416 did you hear that from oreozi?

    • @thenzd
      @thenzd 5 місяців тому

      yea its called groundspoof

  • @justskillnoban2433
    @justskillnoban2433 2 роки тому +1

    just saying if you ping spoof like 100k then your anticheat just wouldnt flag. gotta add a different type of lag compensation

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      What do you mean by ping spoof 100k? I have checks that detect ping spoofing and blinking (does not false on normal lag spikes). But if you are not transacting while sending other packets you will get detected.

    • @valor6711
      @valor6711 2 роки тому

      @@CloneLTaps if I remember correctly my friend throttled her internet and got banned on your test server for timer, she also got “detected” for building in a no build zone legitimately.

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      @@valor6711 My anti cheat is not set to ban at the moment so maybe she got kicked but this does not necessarily mean it was a false. If it happened on the first day you might of gotten kicked while I was fixing config settings but any time after that I doubt it would false. Whats the Minecraft name so I can look it up? Also it does detect block glitching in no build zones but it wont kick you for that it will just correct your movement and notify staff that you are block glitching.

  • @retrooper
    @retrooper Рік тому +8

    I enjoyed this video. I just discovered it!

  • @Wan2bstevenew
    @Wan2bstevenew 19 днів тому +1

    Is it possible to get the antcheat

  • @niklasholl2548
    @niklasholl2548 9 місяців тому

    Hey ist there any way to contact you?
    Im currently planing to create also an anti cheat & could really need the help of somebody with a bit of experience (i dont need help in coding, more like where to start, how can i figure out the usefull stuff -> find other communites etc)

  • @hamzahadam9633
    @hamzahadam9633 7 місяців тому

    1:27 is wrong

  • @TawnyE
    @TawnyE 2 роки тому +1

    I had to revisit this video ask you if I can test your anticheat? + I kind of wanna learn how to make one I know a little bit but I would like to help tested or heck even code it

    • @valor6711
      @valor6711 2 роки тому

      Try test.Karhu.ac first

    • @CloneLTaps
      @CloneLTaps  2 роки тому +1

      You could test it but testing wont help you learn how to make an ac. If you want to learn how to make an anti cheat and assuming you are competent with Java and decent at Math you will need to understand how packets work in Minecraft for this google Minecraft Protocol. Then use MCP to look at source code of clients and start to reverse it by reading it and trying to figure out what it all does (this is very important for prediction based anti cheats). Then load up a test server and start cheating and then use print statements to figure out what the client is actually doing then think about how to detect that. While you do this you will need to learn a good packet api like packet events. You could also try to join packet / anti cheat discords to get more exposure to this sort of thing.
      Honestly the most important skill you need to have is problem solving and being able to see a problem and have your brain start thinking and running through many different possible solutions. If you can do this you will be a great ac developer after you put in the time it took me 6 months to actually get a good foundation. If you have questions dont be afraid to ask me.

    • @valor6711
      @valor6711 2 роки тому

      @@CloneLTaps Minecraft operates via TCP protocol, meaning packets are delivered more slowly but in order. You don’t need to look at MCP for the majority of checks, for instance I’m sure figuring out aim checks, autoclicker checks, timer checks, packets checks, inventory checks, edge sneak checks et cetera.
      You really only need to look at MCP if you want to write full predictions, semi predictions don’t require an intensive knowledge of Minecraft’s code. You need to understand anticheating concepts too, such as transaction pairing. A pre transaction is more important than a post transaction. A transaction pair is innumerably more valuable than both individually.
      It’s more important nowadays to know how to ask for help, and to know how to look at things yourself. You need to look at other anticheats as much as MCP. MCP won’t help you figure out latency compensation. It won’t help you figure out statistics. It won’t help you reinvent the wheel. Concepts already exist, learn about them and implement them yourself.

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      @@valor6711 I am aware of the TCP protocol but that protocol should be something that new anti cheat developers learn. I agree that learning from others is the best way to learn about the fine details and general concepts which was why I stated that joining discord pertaining to anti cheat development and discords pertaining to Minecraft's packet protocol is a good idea.
      However, I think its best to start learning on your own by using all available resources and then join the discords and ask question to fill in your knowledge gaps. These discords are not always the most friendly places so going in there with 0 experience and expecting people to teach you everything is a recipe for disaster. I suggest people first stick to 1 version to make an anti cheat in then read the protocol then get accustomed to a packet protocol. For this you could use packet events then join their discord since they are always eager to help new people learn their api. Then after you mess around with it and understand it I would suggest looking up other open sources anti cheats on google and seeing how they solve common issues. Then you should add a commonly used anti cheat frame work and download a hack client. Then based on your research on those open sourced anti cheats try to make your own check. What helped me to detect things like movement cheats was to add print statements and look for a pattern that devatas from vanilla.
      This print statement strategy allowed me to create movement checks that detects all speed and fly hacks inside of every hack client I have tested. It took many many hours of testing and configuring to prevent false positives but after running it on my own server all season long I only saw maybe 5 false flags (none of which was enough to false kick or ban anyone). If you want to make packet checks I suggest just looking at other anti cheats and compiling and testing those since that's easier than reading all of MCP but be carful because lots of these are buggy and may not work with your set up. Again for this I suggest printing packets so you can check the order (when you are making packet order checks). Timer / blink checks are fairly easy if you understand that post 1.8 the client wont send flying packets every game tick (so you need to use transactions since those are synced which means they send once per tick). Since my ac is 1.8 it was fairly easy to figure out how to make blink and timer cheats just by understanding the basics like TCP and Minecrafts 20 TPS (reduces speed timer checks are much harder though).
      Now back on topic to your comment I agree MCP is mostly useful for predictions which I have been having fun with (screw 0.03 lmao) but transaction sandwiches are not really needed unless what you are doing is extremely critical like when doing predictions or if you dont have a buffer. Pre transactions work for 90% of cases and no one has ever been able to come up with an exact percentage on how often transactions split but from my experience its very very rare. Really the main point above was that you need to be able to do stuff on your own otherwise you will just be skidding your entire anti-cheat career so I think its extremely important to be able to learn and think on your own while also not being so stubborn that you wont ask for help after spending a lot of time thinking about a specific problem.

  • @combatdude2514
    @combatdude2514 6 місяців тому

    wdym packet based are good the real good stuff is prediction based ac

    • @nopfp416
      @nopfp416 4 місяці тому +1

      Prediction anticheat's use packets they're also packet based lol but yh his anticheat isn't prediction so it's never gunna be as good as grim or polar

    • @TheTigerPython
      @TheTigerPython 2 місяці тому

      @@nopfp416 love how people always forget about intave

    • @Frinedlyperson-i8l
      @Frinedlyperson-i8l Місяць тому

      prediction anticheats have a preformance issue, packetbased is the best for preformance using nety threats lbalblalblalblalAHAHHa

  • @wouf_
    @wouf_ Рік тому

    Im gonna test with my own client just to see

  • @IceecreamLover
    @IceecreamLover Рік тому

    dont bother with start and stop sprinting and sneaking

  • @atalfed
    @atalfed Рік тому

    This was a really interesting video, thanks!

  • @kittenpixl
    @kittenpixl Рік тому

    Your messages are off and I want to test your ac so I sent a friend request

  • @Bl0xxy
    @Bl0xxy 2 роки тому

    I'll test your anticheat. I have a REALLY good config

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      What client do you have and what would you like to test?

    • @Bl0xxy
      @Bl0xxy 2 роки тому

      @@CloneLTaps I have FDP client and LB+
      I'd like to test just main pvp stuff.
      What version is your anticheat for? My clients are only for 1.8, but I think one of them can be any version.

  • @brendanford3415
    @brendanford3415 2 роки тому +2

    Very good keep it up

  • @TawnyE
    @TawnyE 2 роки тому

    Yeah I wanna see more videos of this I like it

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      I will defiantly create more of these in the future. I am a bit busy working on my sever rn but I still plan to make a lot more anti cheat videos!

  • @mycraftlegit2403
    @mycraftlegit2403 2 роки тому

    If you need a Java developer for any plugins shout me

  • @Kyrok
    @Kyrok 2 роки тому

    hackerman

  • @Anisou360
    @Anisou360 2 роки тому

    Hey dude , I have subscribed to you in 2015 , You don't have the same voice

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      Yea my voice for sure changed a lot since then lmao. Glad your still here though!

  • @liamjakecrystal6621
    @liamjakecrystal6621 2 роки тому

    Way to complicated for a mineman 🤣

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      It’s just the right amount of complicated :)

  • @banda2121
    @banda2121 2 роки тому +2

    Jk nice video

    • @CloneLTaps
      @CloneLTaps  2 роки тому

      Glad to hear you enjoyed it!

  • @turbulence223s
    @turbulence223s 2 роки тому

    nice

  • @banda2121
    @banda2121 2 роки тому

    Cringe