hoor1992

Deader.vb

Feb 14th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.73 KB | None | 0 0
  1. Imports agsXMPP
  2. Imports agsXMPP.Xml.Dom
  3. Imports agsXMPP.protocol.client
  4. Imports agsXMPP.Collections
  5. Imports System.Timers
  6. Public Class Deader
  7.     Public id, pw, res, send, room As String
  8.     Public Shared metiox As New agsXMPP.XmppClientConnection()
  9.     Public timer1 As System.Timers.Timer = New System.Timers.Timer(220000.0)
  10.     Public ehem As String()
  11.     Public Sub LoginDead(Username As String, Password As String, Resource As String, RoomName As String, Sender As String)
  12.         id = Username
  13.         pw = Password
  14.         res = Resource
  15.         send = Sender
  16.         room = RoomName
  17.         Form1.meti.Send(New agsXMPP.protocol.client.Message(send + "@nimbuzz.com", MessageType.chat, "Please Wait ..."))
  18.         Dim rnd As New Random
  19.         With metiox
  20.             .Server = "nimbuzz.com"
  21.             .ConnectServer = "o.nimbuzz.com"
  22.             .Username = id
  23.             .Password = pw
  24.             .Resource = res + "_Goodzila_Pv_Bot" + Convert.ToString(rnd.Next(0, 10000))
  25.             .Open()
  26.             AddHandler .OnLogin, AddressOf login
  27.             AddHandler .OnAuthError, AddressOf wrong
  28.         End With
  29.     End Sub
  30.     Private Sub login(ByVal sender As Object)
  31.         Form1.meti.Send("<message to='" + send + "@nimbuzz.com' type='chat'><body>" + id + " Loginned Successfully</body></message>")
  32.         metiox.Send("<presence to='" + room + "@conference.nimbuzz.com/" + id + "' xml:lang='en'><x xmlns='http://jabber.org/protocol/muc'><password></password></x></presence>")
  33.         timer1 = New System.Timers.Timer(90000.0)
  34.         AddHandler timer1.Elapsed, AddressOf tick
  35.         timer1.Start()
  36.     End Sub
  37.     Private Sub wrong(ByVal sender As Object, e As Element)
  38.         Form1.meti.Send("<message to='" + send + "@nimbuzz.com' type='chat'><body>Username Or Password Is Incorrect !</body></message>")
  39.     End Sub
  40.     Private Sub tick()
  41.         Dim m As String = "joon bokhoramet :* fkre bad? #hava chetore unja :o?#ridi ba r rahbari :d#khkhkhkh :d#alo salam nemitunam az fkret dar aam :( #man soal taein mikonam :D man tu dahane in admin mizanam#yki nis biad pv ma ? :|#che sokoote gooshkharashi :|#:|#:D#:P#:(#:)#I-)#(f)#(u)#<3#shenidi chi shode? :O#ehem :|#fuck u :| :d#8 pv :p :$#:$#*YAHOO*#dahanet service :|#net ride :(#irancell fuck u :(#hoy :@ to uni nisti tu ye room fosham dad? :@#az tarafe meti saltanat ye boos mikonam azat :D#8-)#ki goozid? :o#no add :D :$#mano didi tazegia? :(#Firebuzz.iR  REG NOW#Code nevisi tavasote saltanat@nimbuzz.com"
  42.         Dim rnd As New Random
  43.         ehem = m.Split("#")
  44.         Dim ms As String = ehem(rnd.Next(ehem.Length))
  45.         metiox.Send(New agsXMPP.protocol.client.Message(New Jid(room + "@conference." + metiox.Server), MessageType.groupchat, ms))
  46.     End Sub
  47. End Class
Add Comment
Please, Sign In to add comment