Results 1 to 11 of 11

Thread: SendData and GetData SECURITY

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    SendData and GetData SECURITY

    Hi guys how's life?

    Well, I am creating a client-server connection, sending and receiving data.

    Code:
    Private Sub RequestAuth_DataArrival(ByVal bytesTotal As Long)
    
        Dim Authorization As String
       
        ' get data from client
        RequestAuth.GetData Authorization, vbString
        If Authorization = "allowed" Then
        Call GameList
        End If
    
    End Sub
    as you can see, the code send a word to the server. I want a function to make it harder to hack, because this way I know it's very easy.

    Any ideas? Thank you

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,601

    Re: SendData and GetData SECURITY

    You could encrypt the data itself before sending it and decrypt it when you receive it. Both client and server would have to use the same encryption key and algorithm and there is no way for anyone sniffing your network to know either.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Re: SendData and GetData SECURITY

    Yeah good option. But I was scared that someone could read the packets that my server need to execute the action. And just send that packets with another application and get authorization to login.

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Re: SendData and GetData SECURITY

    is there anyway to prevent packet reading or packet sendind if not from my server?

  5. #5
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,601

    Re: SendData and GetData SECURITY

    Quote Originally Posted by TheMarKs View Post
    is there anyway to prevent packet reading or packet sendind if not from my server?
    Not really no. But you shouldn't have a server unsecured by default anyway. This way ordinary users would be unable to install packet sniffers on your server.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  6. #6

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Re: SendData and GetData SECURITY

    what should I do to make my server secure? it's a verification server: connect, send information, get information back, close connection.

  7. #7
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,601

    Re: SendData and GetData SECURITY

    What OS is your server running ? Windows I assume ?
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  8. #8

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Re: SendData and GetData SECURITY

    on Windows server 2008..

  9. #9
    Banned
    Join Date
    Nov 2012
    Posts
    1,171

    Exclamation Re: SendData and GetData SECURITY

    look for vb6 debuggers ad the many memory hack debug modules out there ,,,,,,,,,,, packet sniffers are debuggers they read executables from pc memory so what u need to do is deny if debuggers are detected crash the executables.

    to keep hackers or annoyers away finish of the game they start , add some codes in your client such as restart pc , hange , or reformat pc or add blue screen of death i dont have to tell u these lines pick it up , once they se any of these they will run away u win
    Last edited by ladoo; Feb 1st, 2013 at 07:28 PM.

  10. #10
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,601

    Re: SendData and GetData SECURITY

    Quote Originally Posted by TheMarKs View Post
    on Windows server 2008..
    Well the simplest solution is to secure Windows itself meaning that you only allow administrator access to yourself and people you trust. If people can't access Windows, they certainly cannot install a packet sniffer.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  11. #11

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    54

    Re: SendData and GetData SECURITY

    Quote Originally Posted by ladoo View Post
    look for vb6 debuggers ad the many memory hack debug modules out there ,,,,,,,,,,, packet sniffers are debuggers they read executables from pc memory so what u need to do is deny if debuggers are detected crash the executables.

    to keep hackers or annoyers away finish of the game they start , add some codes in your client such as restart pc , hange , or reformat pc or add blue screen of death i dont have to tell u these lines pick it up , once they se any of these they will run away u win
    so right! an antidebugger may be a good idea. will try it soon. Thank you guys! you helped me so much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width