Auth

Discussion in 'Plugin Development' started by ewrs, Sep 20, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    ewrs

    Hello. One of these days I wanted to write a plug-in for authorization. There was a question, how I can hide the password by hashing, and then receive from MySQL? I did not find where, I hope, you will tell me.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @ewrs And why do you need an authorization plugin?
    And you can't truly hide it, if a plugin is intercepting packets then it can catch the password.
     
  3. Offline

    ewrs

    Why can not I hide it? I mean password hashing. For example, SHA-256
     
  4. Offline

    timtower Administrator Administrator Moderator

    Because then the client has to send it hashed, and you can't tell it to do that with plugins.
     
  5. Offline

    ewrs

    I asked you to talk a little about how other plugins, like AuthMe in MySQL, hashes passwords. I found one plugin, it hides the passwords with the help of SHA-256.

    Type
    $ SHA $ 09b677e686b48285 $ ccf71d885d9f28f3f15782a820cd ...
    (This is a test name, you should not guess)

    http://i.piccy.info/i9/e9a50a1f31dce782e0471205b5c832a1/1537449884/15107/1265090/mi785.jpg
     
  6. Offline

    timtower Administrator Administrator Moderator

    @ewrs That is the server side.
    That is not problem if you find the right method (don't use md5 though)

    I am talking about the part where the client types the password and sends it to the server where other plugins can intercept it.
    And please also answer this question.
     
  7. Offline

    ewrs

  8. Offline

    timtower Administrator Administrator Moderator

    @ewrs I know what hashing is.
    But I also know that we can intercept packets. Packets which contain the unhashed password received from the client. That is the part I am talking about.

    And please also answer this question. (attempt 3 already)
     
  9. Offline

    ewrs

    Are you hinting that if the password is incorrect the error will occur?

    I have a mountain of my ideas, but I really do not want to work with someone else's code. (attempt 2 already :D )
     
  10. Offline

    timtower Administrator Administrator Moderator

    @ewrs I am hinting that I can intercept the password before your plugin gets it.
    And why an auth plugin? Why do you need one?
     
  11. Offline

    ewrs

    I do not understand why I can intercept ...

    For your project.
     
  12. Offline

    timtower Administrator Administrator Moderator

    It is a security issue, I can see the passwords if I want before they are hashed.
     
  13. Offline

    ewrs

    So what should I do?..
     
  14. Offline

    timtower Administrator Administrator Moderator

    Explain why you need an authentication plugin.
    If it is just for practice then it is fine, if it is for actual security then it is flawed.
     
  15. Offline

    ewrs

    Practice ...
     
  16. Offline

    timtower Administrator Administrator Moderator

  17. Offline

    ewrs

  18. Offline

    timtower Administrator Administrator Moderator

    But why do you need to use an authentication plugin then?
     
  19. Offline

    ewrs

    I want to write my plug-in with my ideas ... I say 5 times already
     
  20. Offline

    timtower Administrator Administrator Moderator

    @ewrs But why do you want to use it then? As it is unsafe to use. (and useless due to minecrafts own authentication)
     
  21. Offline

    ewrs

    I'm doing this for pirate servers.
     
  22. Offline

    timtower Administrator Administrator Moderator

    Locked
    Offline mode is not supported by Bukkit
     
Thread Status:
Not open for further replies.

Share This Page