Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › HTML Information Loading Issue

HTML Information Loading Issue

Posts 1–12 of 12 · Page 1 of 1
Sydney
Sydney
HTML Information Loading Issue
Hi i want to create a App that finds some Informations from a HTML code as Label.


Example:

LoadEvent:

Webbrowser1.Navigate("www.website.com/User=" & Textbox1.Text)

This will Load the UserInformation Place where Posts etc is written.

Now i want that it Laods some Informations Like:

Button1:

Label1.Text = Webbrowser1.Document.GetElementById.("HTML-Code-Name").Inner Text

That should draw the informatio from a html id of the user as label1.

But it is not working. Anyone knows how to do that cuz i am not very good in HTML.

Thanks
#1 · 15y ago
Lolland
Lolland
I don't understand...

Do you wanna display the HTML code of a page?
#2 · 15y ago
Blubb1337
Blubb1337
Either use RegEx or a StringBetween function.

Save the sourcecode of the page in a variable and extract the data you want to extract.
#3 · 15y ago
Sydney
Sydney
So i want my application to fish the as example Posts of the User Informations Bar.

Like:

Load:
webbrowser1.navigate("www.website.com/user=kongamonga")

button1
Label1.Text = Post of the user from the html code of the site.

That what i want, that it gets the as example posts or like activity.
#4 · 15y ago
Blubb1337
Blubb1337
Quote Originally Posted by kongamonga View Post
So i want my application to fish the as example Posts of the User Informations Bar.

Like:

Load:
webbrowser1.navigate("www.website.com/user=kongamonga")

button1
Label1.Text = Post of the user from the html code of the site.

That what i want, that it gets the as example posts or like activity.
Quote Originally Posted by Blubb1337 View Post
Either use RegEx or a StringBetween function.

Save the sourcecode of the page in a variable and extract the data you want to extract.
..........................
#5 · 15y ago
Sydney
Sydney
Quote Originally Posted by Blubb1337 View Post
..........................
more informations plz
#6 · 15y ago
master131
[MPGH]master131
User regex to grab that information from the page's source like Blubb said!
#7 · 15y ago
Blubb1337
Blubb1337
[php]Public Function Sb(ByVal text As String, ByVal startstring As String, ByVal endstring As String) 'string between
Dim part1() As String = Split(text, startstring)

If UBound(part1) > 0 Then
Dim part2() As String = Split(part1(1), endstring)

If UBound(part2) > 0 Then
Return part2(0)
Else
Return -2
End If
Else
Return -1
End If
End Function
[/php]
#8 · 15y ago
Jason
Jason
Use a HttpWebRequest or a WebClient to download the HTML source into a string variable.

[php]
Private Function GetSauce(ByVal URL As String) As String
Dim pageSauce as string = String.Empty
Using wClient As New Net.WebClient With {.Encoding = System.Text.Encoding.UTF8}
pageSauce = wClient.DownloadString(URL)
End Using
Return pageSauce
End Function
[/php]

Or

[php]
Private Function GetSauce(ByVal URL As String) As String
Using sRead As New IO.StreamReader(CType(Net.WebRequest.Create(URL), Net.HttpWebRequest).GetResponse.GetResponseStream)
Return sRead.ReadToEnd
End Using
End Function
[/php]

The above is actually ugly as fuck so here's a neater one:
[php]
Private Function GetSauce(ByVal URL As String) As String
Dim WebReq As Net.HttpWebRequest = Ctype(Net.WebRequest.Create(URL), Net.HttpWebRequest)
Dim WebResp As Net.HttpWebResponse = Ctype(webReq.GetResponse, Net.HttpWebResponse)
Using sRead As New IO.StreamReader(WebResp.GetResponseStream)
Return sRead.ReadToEnd
End Using
End Function
[/php]

Now you just assign the value that is returned by "GetSauce("http://www,website.com/User=" & TextBox1.Text)" To a variable, then use string manipulation to get the values you need.
#9 · 15y ago
Sydney
Sydney
Quote Originally Posted by Jason View Post
Use a HttpWebRequest or a WebClient to download the HTML source into a string variable.

[php]
Private Function GetSauce(ByVal URL As String) As String
Dim pageSauce as string = String.Empty
Using wClient As New Net.WebClient With {.Encoding = System.Text.Encoding.UTF8}
pageSauce = wClient.DownloadString(URL)
End Using
Return pageSauce
End Function
[/php]

Or

[php]
Private Function GetSauce(ByVal URL As String) As String
Using sRead As New IO.StreamReader(CType(Net.WebRequest.Create(URL), Net.HttpWebRequest).GetResponse.GetResponseStream)
Return sRead.ReadToEnd
End Using
End Function
[/php]

The above is actually ugly as fuck so here's a neater one:
[php]
Private Function GetSauce(ByVal URL As String) As String
Dim WebReq As Net.HttpWebRequest = Ctype(Net.WebRequest.Create(URL), Net.HttpWebRequest)
Dim WebResp As Net.HttpWebResponse = Ctype(webReq.GetResponse, Net.HttpWebResponse)
Using sRead As New IO.StreamReader(WebResp.GetResponseStream)
Return sRead.ReadToEnd
End Using
End Function
[/php]

Now you just assign the value that is returned by "GetSauce("http://www,website.com/User=" & TextBox1.Text)" To a variable, then use string manipulation to get the values you need.
Thanks for your work, but what if my element (name) has no value ?
Theres just the element ID and no name tag.
#10 · 15y ago
Blubb1337
Blubb1337
Quote Originally Posted by Blubb1337 View Post
[php]Public Function Sb(ByVal text As String, ByVal startstring As String, ByVal endstring As String) 'string between
Dim part1() As String = Split(text, startstring)

If UBound(part1) > 0 Then
Dim part2() As String = Split(part1(1), endstring)

If UBound(part2) > 0 Then
Return part2(0)
Else
Return -2
End If
Else
Return -1
End If
End Function
[/php]
Are you completely ignoring me?

msgbox(SB(pagesource, "<bla>","</bla>"))
#11 · 15y ago
Jason
Jason
Well, you can PM me with the webpage in question and I'll try see whether the problem is that you don't have the correct ID's at the moment, if that's the problem none of our solutions will help you much as they'll likely rely on you putting in the elements ID at some point.
#12 · 15y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Tags for this Thread

None