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

.NET 

| TeachMeFNG | A Simple FakeNameGenerator App | Source Included! |

Maybe you could share some pictures of the application?
I don't really wanna download something I haven't seen.
Dude.. I don't see why you would use a webbrowser? Getting the source from a webbrowser is just as hard/easy as it is to do it with a webclient?

PHP Code

<?php 
Dim WC 
As New Net.WebClient
Dim src 
As String = WC.DownloadString("fakenameshittyshit.com")
'Apply regex here 
(Feb 8, 2013 02:00 AM)deiski Wrote:  Not really, even my SkypeAttack got over 90 downloads.

Well, copy pasta the code I provided and replace it with the Webbrowser GetDocumentText code.
(Feb 8, 2013 02:30 AM)Cyan Wrote:  If people want to they will, I'm not going to update this as 'twas just an example, I may use webclients or HTTPWEBREQUESTS when I come up with a new idea though. :)

Meh, before you said you where in the middle of adding it? If it's becouse of the "403 Access Denied" error I applyed a fix to my code.

PHP Code

<?php 
Dim request 
As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://www.fakenamegenerator.com")
  
request.Method = "GET"
  
request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko)"
  
request.Accept = "text/html"
  
Dim response As System.Net.HttpWebResponse = request.GetResponse()
  
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
  
Dim src As String = sr.ReadToEnd() 

Also, theres a fine line between learning RegEx and copy pasting, just FYI.
(Feb 8, 2013 03:27 AM)Cyan Wrote:  Was trying to state I was in the middle of adding it into a different project, I have a shit load on my computer lol.

Well.. enjoy I guess! Now you won't get the access denied exception thrown at you.
(Feb 8, 2013 03:34 AM)Cyan Wrote:  I never did get access denied? But thank you.

Really? Try this:

PHP Code

<?php 
Dim src 
As String = New Net.WebClient().DownloadString("fakenamegenerator.com") 

Does it not throw an exception?
(Feb 8, 2013 03:58 AM)Cyan Wrote:  I thought you were talking about my application that I posted, my appologies.

Ahh, well - if you wan't help improving your application just PM me. If not, look back at my posts and you'll find a way to improve it.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by WntdArtMar 2, 2024 01:39 AM 2 444 Mar 2, 2024 01:39 AM
Last Post: lology
[Python] by WntdArtAug 20, 2023 01:51 AM 10 834 Aug 20, 2023 01:51 AM
Last Post: Lucky4L
[.NET] by SIM-63814Mar 5, 2023 02:14 PM 12 390 Mar 5, 2023 02:14 PM
Last Post: Swizzi00