[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
[/highlight]
Im trying to make a program that grabs the TRUE or FALSE fom a site and then tells my program which it is and the program will either have a text box or like a different picture.
heres what i have so far.
https://i.imgur.com/qYwW5.png
its just the webbrowser loading the PHP page and showing the text, but i want the program to know which it says (true or false) and then show a certain text box or show a certain picture
thanks
[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
[/highlight]
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
What's confusing? You put the php link in where i put "http:/rwebsite", the webclient downloads the pagesource from there, checks whether it contains "true". the "useable" variable now tells you whether the page said true or false
[highlight=vb.net]
Dim useable As Boolean = False
Using wClient As New Net.WebClient()
useable = wClient.DownloadString("http:/rwebsite").ToLower().Contains("true")
End Using
If Not useable Then 'the pagesource didn't contain "true"
MessageBox.Show("This is unuseable")
Else
MessageBox.Show("This is useable!")
End if
[/highlight]
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Yeah I am doing Uni.
Thread marked solved.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Nice, grats on it
ok when i do it, i want to mkae the images visiable and invisable
whic i did like this:
dosnt seem to work thoCode:If Not useable Then 'the pagesource didn't contain "true" PictureBox1.Visible = True & PictureBox2.Visible = False & PictureBox3.Visible = False Else PictureBox2.Visible = True & PictureBox1.Visible = False & PictureBox3.Visible = False End If
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
dosnt work.Code:Dim useable As Boolean = False Using wClient As New Net.WebClient() useable = wClient.DownloadString("************").ToLower().Contains("FALSE") End Using If Not useable Then 'the pagesource didn't contain "true" PictureBox1.Visible = True PictureBox2.Visible = False Else PictureBox1.Visible = False PictureBox2.Visible = True End If
wont change images on change of the text on the site
Last edited by Jason; 09-19-2011 at 04:38 AM.
Outside link removed. Next time you post one I have to report it.
And the reason it's not working is because that page is broken:
[highlight=php]
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in ***********.php on line 4
[/highlight]
AND BECAUSE you converted the string "ToLower()", then checked if it contained "FALSE" which is in uppercase lol, of course that's going to fail.
Last edited by Jason; 09-19-2011 at 04:41 AM.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
the only words there are true or false
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
i screwed up but the only text there is either true or false