Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572

    [Tutorial]Basic Spammer

    Create a new Project and call it "Basic Spammer"

    Add
    - 2 Buttons
    - 1 Textbox
    - 1 Timer
    .

    Name the two Buttons
    - Connect
    - Disconnect

    Double Click on "Connect"
    Type this in
    Code:
    Timer1.Enabled = True
    Double Click on "Disconnect"
    Code:
    Timer1.Enabled = False
    Double Click on your timer
    Code:
            SendKeys.Send(TextBox1.Text)
            SendKeys.Send("{Enter}")
    Set the Timers Setting to
    Enabled= True
    Interval= 1

    And your done!
    I'm back.

  2. The Following 12 Users Say Thank You to Spookerzz For This Useful Post:

    21sean21 (06-03-2010),Dakota (08-19-2011),DannyIzHere (11-13-2010),dudemil (06-02-2010),hgmf8124 (08-05-2010),ImpSplinter (09-15-2010),NextGen1 (03-27-2010),Obama (03-27-2010),Sketchy (08-31-2011),tempta43 (03-27-2010),VuLTuRE540 (07-21-2010),~Shadow (07-22-2010)

  3. #2
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Very basic. You should leave the focus from the application you are spamming so that it don't start spamming there. Coz if I had a textbox or anything that can take input then I have a problem.

    You can minimize this window, hide it or change the focus to any other known window. This will make it a bit better.

  4. #3
    tempta43's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    980
    Reputation
    23
    Thanks
    295
    My Mood
    Bored
    this is excellent for newbs, good tutorial.

  5. The Following User Says Thank You to tempta43 For This Useful Post:

    dudemil (06-01-2010)

  6. #4
    Obama's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    The Black house
    Posts
    22,195
    Reputation
    870
    Thanks
    6,076
    My Mood
    Cool
    Thank him if you like it

  7. #5
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Basic Indeed, But thanks for sharing

    Just as a more "advanced" approach to concept

    Add 2 Text boxes and one button

    Name Space
    - I notated everything

    [php]
    'Used to import COM and Invoke services , needed for DLL Import
    Imports System.Runtime.InteropServices
    [/php]

    Functions (just below public class formname

    [php]
    ' This function will allow us to get a window and find it, by window name
    ' You can use this anytime you need to find a window by window name for any reason
    <DllImport("USER32.DLL", CharSet:=CharSet.Unicode)> _
    Public Shared Function WindowName(ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
    End Function
    [/php]

    and below that

    [php]
    ' This function will allow us set the foreground window
    ' This will bring the window we need to send the keystrokes to upfront
    <DllImport("USER32.DLL")> _
    Public Shared Function UpFront(ByVal hWnd As IntPtr) As Boolean
    End Function
    [/php]

    On the button click event

    [php]
    ' when you use try, it litterly means "attempt the following code before catch, if the "code is unseccesful"
    ' then catch the exception and display it in a message box , you can use list boxes for storing errors in a database
    ' but that is a little more advaced
    Try
    ' (apph = name I have chosen for the declaration, you can choose any thing you wish)
    ' Declaring AppH as IntPtr which is used represent a pointer or a handle, in this case we are setting = to windowname
    ' which is a function I created above to set the window to sendkeys to, the format is
    ' (ByVal lpClassName As String, ByVal lpWindowName As String)
    ' I Use Nothing as the IPclassname, if you know the IPclassname you can use it.
    ' In textbox1 you can add the name of the window to check for
    'lets use notepad, the name of a unnamed notepad is Unitled - Notepad
    ' so if you were to open notepad without a given name, and put Unitled - Notepad in textbox1
    'this would continue and function, if not you will get an error
    Dim AppH As IntPtr = WindowName(Nothing, TextBox1.Text)
    'IntPtr is a set value so if the value is 0 [window name is wrong or not a open application, error])
    If AppH = IntPtr.Zero Then
    MsgBox("Chosen Application is not Running")
    Return
    End If
    ' If successful bring the window to the foreground
    UpFront(AppH)
    'sendkeys the content of textbox2
    SendKeys.SendWait(TextBox2.Text)
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    [/php]

    Remember, everything is very much notated, Your tutorial was well written, but as you are new to VB, i thought offering a more advanced sample may be beneficial.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  8. The Following 2 Users Say Thank You to NextGen1 For This Useful Post:

    hgmf8124 (08-05-2010),mrsmexy95 (06-05-2010)

  9. #6
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Thanks everyone...


    What will that spammer do or how would it function, Nextgen?
    I'm back.

  10. #7
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    It will work similar to your example, except it will allow you to decide what Opened windows application to spam to

    It will work in this process

    ---User Enters the Windows Name as it appears on the title bar (or in Task Manager Processes)

    Example: Google Chromes Windows Name is Chrome

    So user puts chrome in textbox1

    then in textbox2 the user types in what to spam.

    - User clicks button

    -- Chrome gets pulled to the foreground as the active window

    -- Then the keystrokes are sent to that specific window

    so you can use this one application to spam just about any application that won't require some form of hook or virtual key.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  11. #8
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Woah that cool.

    Do you have to had .exe or there file path?
    I'm back.

  12. #9
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Nope, just the application window name

    Notepad = Untitled - Notepad
    or saved name - notepad

    you can get the application name from running applications


     


     


     



    The Most complete application MPGH will ever offer - 68%




  13. #10
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Maybe you should make a thread with pictures for extra detail ::
    I'm back.

  14. #11
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Maybe I will


     


     


     



    The Most complete application MPGH will ever offer - 68%




  15. #12
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Better hurry or I will

    /Can you add this to your tutorials,resources and links sticky please?
    I'm back.

  16. #13
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Already have


     


     


     



    The Most complete application MPGH will ever offer - 68%




  17. #14
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    Darn your fast!

    And I believe my name only has the "g" as a capital :Hidesmile:

    Last edited by Spookerzz; 03-27-2010 at 09:58 PM.
    I'm back.

  18. The Following User Says Thank You to Spookerzz For This Useful Post:

    NextGen1 (03-27-2010)

  19. #15
    DayumKen's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Houston, Texas, USA.
    Posts
    130
    Reputation
    10
    Thanks
    46
    My Mood
    Inspired
    Hey uhh, I'm having trouble. When I do a test run, I click on the text box but then it starts spamming the "Enter" button. I mean, like, not like Enter a program, but like a new line. Help? Here is my code:

    Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Timer1.Enabled = True
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Timer1.Enabled = False
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    SendKeys.Send(TextBox1.Text)
    SendKeys.Send("{Enter}")
    End Sub
    End Class
    EDIT: Nevermind. You have to press the Disconnect button first. Thanks.
    Last edited by DayumKen; 05-31-2010 at 03:08 PM.

Page 1 of 3 123 LastLast

Similar Threads

  1. [Tutorial] Advanced Spammer Codes
    By Mr. Lex in forum Programming Tutorials
    Replies: 18
    Last Post: 06-07-2013, 06:22 PM
  2. [TUTORIAL] Simple Spammer
    By Venum66 in forum Visual Basic Programming
    Replies: 7
    Last Post: 04-15-2010, 10:02 AM
  3. [Tutorial]AntiMute Spammer [Leeched]
    By aLcohoL_95 in forum Visual Basic Programming
    Replies: 5
    Last Post: 03-24-2010, 10:31 PM
  4. [Tutorial] Basic C++ Console hack
    By Erinador in forum C++/C Programming
    Replies: 12
    Last Post: 02-27-2010, 01:44 AM
  5. [Tutorial] Basic user I/O
    By PlSlYlClHlO in forum C++/C Programming
    Replies: 6
    Last Post: 06-18-2009, 01:47 AM