1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Check windows10 Players

Discussion in 'Development' started by Kyd, Apr 19, 2017.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Is it possible on pmmp?People said it is possible on N*kkit I think it may be possible on pmmp too?
     
    Last edited: May 7, 2017
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Yep, it's possible. #488
     
    Primus likes this.
  3. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Ok thanks, but my code kick players on all devices everyone help please
    PHP:
    public function onPacketReceived(\pocketmine\event\server\DataPacketReceiveEvent $e){
        if(
    $e->getPacket() instanceof \pocketmine\network\mcpe\protocol\LoginPacket){
          if(
    $e->getPacket()->clientData["DeviceOS"] = 1){
           
    $e->getPlayer()->close();
     
  4. Zuruki

    Zuruki Baby Zombie

    Messages:
    118
    GitHub:
    zuruki
    win10's deviceOS is 7.
     
    Primus likes this.
  5. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I know but i join on windows 10 and it close im checking android(1)
     
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    You should be warned that DO NOT TRUST THESE VALUE AND USE THEM FOR SECURITY MEASURES
    you are highly advised to only use these as a statistic
    here's a visualization of someone using that as means like blocking XYZ versions because they like to discriminate against clients
    -----
    *at somewhere*
    bouncer: hello sir, please kindly tell me what mobile device you use
    guest: umm i uses XYZ(whitelisted) mobile phone(because they know the bouncer are told not to allow XXX brand phones)
    bouncer: you may pass
    (without even asking user to show their phone or any effort to confirm user's claims)
    -----
    Now swap the location with airport boarding and bouncer with police and question with "do you have any deadly weapon"
    which IMO this is the worst it can get,
    if you are ever using that kind of information make sure no consequences can happen if users choose to fake it, like example if i said i have no deadly weapon while hiding one, it could cause a disaster,
    but you are fine if your plans are just to poll your user base which if one or a few faked users wont spell anything as bad as examples listed above


    TLDR: Moral of the story, make sure no consequences can happen if users choose to fake it and DO NOT USE IT if it would spell disaster, you should use something better like a body scanner for the example above
     
  7. Zuruki

    Zuruki Baby Zombie

    Messages:
    118
    GitHub:
    zuruki
    oh ,, sorry man . I think
    Code:
    $e->getPlayer()->kick();
     
  8. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Not useful
     
  9. Zuruki

    Zuruki Baby Zombie

    Messages:
    118
    GitHub:
    zuruki
    sorry I shall not try to help in which things I not known of
     
  10. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Thanks for reply. How can they hide/whitelist their computer?
     
  11. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Everyone help with this pls
     
  12. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Because you have to use === (or ==) and not =. If you go with = it will definetly always return a valid value which causes a true condition in the if clause.

    Your code:
    PHP:
    if($e->getPacket()->clientData["DeviceOS"] = 1){
    Besides that, I agree with @Thunder33345. I just want to emphasize that.
     
  13. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    How can players dont show their device ? Some app? Please tell It help a lot in bypass for this
     
  14. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    as for now they are no conventional means to hide such, but a capturing man in the proxy should be able to decode MCPE protocol and edit it then send it back to the server, it's not hard it just take time to get software and stuff set up but if there a critical vulnerability or something they want, they wont hesitate to put some effort into it
    actually they can do things even if there's nothing they want, maybe just as a way to laugh at plugin developers on twitter or to proof that method is fundamentally flawed or just have too much time on hands
    Side note: this is a theory i am not a network engineer
    if you want a more common mistake is client side verification using javascript
     
    HimbeersaftLP and SalmonDE like this.
  15. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    LMAO :D
     
  16. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    yes it happens, and blocking client using client reported info is basically like that
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.