Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB Login Form With PHP and Mysql not working

I've fixed this issue :)
had to do If Result.Contains("Login.Success") rather than:
If Result = "Login.Success"


So the php script works on the web browser if i type url/login.php?username=user&password=password. I get the echo "Login.Success" Although when i run it in VB using System.Net.Client.DownloadString it doesn't echo Login.Success nor Login.Failed. Please help i confirmed this by adding an extra if statement if it got neither Login.Success or Login.Failed It will display a message box with "An error occured" I type correct login credentials and get that error in VB application.

Here's my code:
PHP
https://pastebin.com/0PjuHZZB

VB.NET
https://pastebin.com/emH2wYxw
I would not use the GET method for login credentials lad, use POST method.

something like this will do: https://stackoverflow.com/questions/7937...in-c-sharp
(Oct 10, 2017 11:37 AM)Barret Wrote:  I would not use the GET method for login credentials lad, use POST method.

something like this will do: https://stackoverflow.com/questions/7937...in-c-sharp

I got it to work instead of:
if result = "Login.Succes" Then
i done
if result.Contains("Login.Succes") Then
(Oct 10, 2017 12:21 PM)CacheIsAFag Wrote:  I got it to work instead of:
if result = "Login.Succes" Then
i done
if result.Contains("Login.Succes") Then

As he said, did you use POST instead of GET? It's important for security


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by optionalMay 21, 2021 08:42 AM 7 310 May 21, 2021 08:42 AM
Last Post: Charger
[Python] by SIM-4604643Mar 30, 2020 11:37 AM 4 161 Mar 30, 2020 11:37 AM
Last Post: Mohinder
[C] by MeterpreterJun 27, 2018 09:06 PM 17 532 Jun 27, 2018 09:06 PM
Last Post: Meterpreter