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

.NET 

[Solved] System.SR' is not accessible in this context because it is 'Friend'.

Solved thanks to Temploit


[Image: 6924c467cab00c13f7dc5ac4bc6bdcca.png]
Why not
PHP Code

<?php 
Dim NewestVersion 
As String =  System.Net.WebClient().DownloadString("<link>") 
?
[Image: IQE6i8G.png]

BlackCap Wrote:You're even more verbose than Java.
About using GoTo's in VB/C#:
Only3 Wrote:asm use it why u shouldnt
(Jun 14, 2013 06:23 AM)Temploit Wrote:  Why not
PHP Code

<?php 
Dim NewestVersion 
As String =  System.Net.WebClient().DownloadString("<link>") 
?

Heres the link I'll put to download the exe?
Try this

Code
Option Strict On
Imports System.Net

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  Dim Data As String

  Data = GetPage("http://www.google.rs/")
  If Data <> vbNullString Then
    If InStr(Data, Application.ProductVersion) <> 0 Then
    MessageBox.Show("You are up to date!")
    Else
    MessageBox.Show("New update is available!")
    End If
  End If
    End Sub

    Private Function GetPage(ByVal Url As String, Optional ByVal Proxy As String = Nothing, Optional ByVal TimeOut As Integer = 4000) As String
  Dim Request As HttpWebRequest

  Dim Response As HttpWebResponse

  Dim ProxySrv As New WebProxy(Proxy)

  Dim Reader As IO.StreamReader

  Try
    Request = DirectCast(WebRequest.Create(Url), HttpWebRequest)
    Request.Proxy = ProxySrv
    Request.Timeout = TimeOut

    Response = DirectCast(Request.GetResponse(), HttpWebResponse)

    Reader = New IO.StreamReader(Response.GetResponseStream())

    GetPage = Reader.ReadToEnd()

    Response.Close()
    Reader.Dispose()
  Catch ex As Exception
    GetPage = vbNullString

    MessageBox.Show(ex.Message)
  End Try
    End Function

End Class
I suggest you Ignore. that post from ignore.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by iRazorOct 15, 2021 12:35 PM 3 157 Oct 15, 2021 12:35 PM
Last Post: steel iron
[Shell] by Emre_May 30, 2020 05:19 AM 5 237 May 30, 2020 05:19 AM
Last Post: Emre_
[Shell] by Emre_May 28, 2020 09:36 PM 0 116 May 28, 2020 09:36 PM
Last Post: Emre_