Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Program spamujący w C#


desher

Rekomendowane odpowiedzi

Opublikowano

Siema tak się bawiłem tym językiem programowania i zrobiłem programik który spamuje 15x

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Spamer
{
   public partial class Spamer : Spamer
   {
    public Form1()
    {
	    InitializeComponent();
    }
    private void button1_Click(object sender, EventArgs e)
    {
	    for (int i = 0; i < 15; i++)
	    MessageBox.Show("Hehe ..");
    }
   }
}

Taki hujowy programik , (mój pierwszy program) , a w następnym stworze program który was wszystkich rozpiepszy w drobny mak więc lepiej mi tutaj migiem piszcie ładne komentarze " och desher ty kociaku" , "uu desher zajebisty programik thx" itp.. jasne? no..

/zakaz handlu

Opublikowano

Coś średnio ci wierzę, program może być, ale dał byś chociaż możliwość wyboru jakim tekstem ma spamować i co ile lub przez jaki czas... Coś takiego w Basic jest bardzo łatwo zrobić, a więc po co się trudzić w C# ?? :P

 

 

PS. dał byś plik .exe a nie kod bo nie każdy tutaj ma np. visual studio C# haha. Ja mam, ale inni może nie :P

"Jesteśmy ludźmi, bo popełniamy błędy i na nich się uczymy."

Opublikowano

Coś średnio ci wierzę, program może być, ale dał byś chociaż możliwość wyboru jakim tekstem ma spamować i co ile lub przez jaki czas... Coś takiego w Basic jest bardzo łatwo zrobić, a więc po co się trudzić w C# ?? :P

 

 

PS. dał byś plik .exe a nie kod bo nie każdy tutaj ma np. visual studio C# haha. Ja mam, ale inni może nie :P

Ale w C# będzie to lepsze.

@topic nie używaj tylu niepotrzebnych przestrzeni nazw.

Opublikowano

Coś średnio ci wierzę, program może być, ale dał byś chociaż możliwość wyboru jakim tekstem ma spamować i co ile lub przez jaki czas... Coś takiego w Basic jest bardzo łatwo zrobić, a więc po co się trudzić w C# ?? :P

 

 

PS. dał byś plik .exe a nie kod bo nie każdy tutaj ma np. visual studio C# haha. Ja mam, ale inni może nie :P

C# to chyba dobry język ,

2) jak bede umiał to zrobie jak na razie i tak gówno umiem 3 dni nauki , na kursach z youtube ;p

/zakaz handlu

Opublikowano

C# to chyba dobry język ,

2) jak bede umiał to zrobie jak na razie i tak gówno umiem 3 dni nauki , na kursach z youtube ;p

Dodaj textBoxa i zmień linijkę pod pętlą for na

MessageBox.Show(textBox1.Text);

A jeżeli chcesz nieskończoność wiadomości

while (true)
MessageBox.Show("Yay");

Opublikowano

Zależy co chcesz robić :P Jak jakieś gówno typu komunikator, SpamBot, kalkulator i jakaś dupna gra to spoko, a jak coś poważniejszego, jakiś duży projekt jak gra 3D to C++ ;)

"Jesteśmy ludźmi, bo popełniamy błędy i na nich się uczymy."

Opublikowano

Jakby ktoś chciał w Javie ^^^^

 

import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class Main extends JPanel{
public static void main(String[] args)
{
String string="Spam, yo !";
int ilosc = 5;
for(int x = 1;x<ilosc;x++)
JOptionPane.showMessageDialog(null,string);

}

}

//gif w sygnie

Opublikowano

A co tam, pokuszę się o C++/CLI

 

#pragma once
using namespace System;
using namespace System::Windows::Forms;

public class Klasa : public System::Windows::Forms::Form
{
public:
Klasa(void)
{
for (int i = 0; i < 5; i++)
MessageBox::Show("Spam");
}
}

Opublikowano

Zależy co chcesz robić :P Jak jakieś gówno typu komunikator, SpamBot, kalkulator i jakaś dupna gra to spoko, a jak coś poważniejszego, jakiś duży projekt jak gra 3D to C++ ;)

 

Nie zapominajmy o javie ^^^^ Tam też można napisać grę 2d/3d i nie najgorsza wyjdzie. Mimo pozorom, nie "pożera" nie wiadomo ile więcej ramu od c++/c#, wszystko zależy od tego jak napiszemy.

//gif w sygnie

Opublikowano

@Upy na huj mi dajecie te pojebane kody ? -.- świry ja tu reprezentuje bota spamującego dla RP a wy mi tu wyjeżdzacie z jakimiś gownami , załóżcie własny temat..

zamknąć temat

/zakaz handlu

Opublikowano

Ha, zrobiłem lepszy, bo taki który spamuje 20(sic!) razy.

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Spamer
{
    public partial class Spamer : Spamer
    {
		    public Form1()
		    {
				    InitializeComponent();
		    }
		    private void button1_Click(object sender, EventArgs e)
		    {
				    for (int i = 0; i < 20; i++)
				    MessageBox.Show("Hehe ..");
		    }
    }
}

mjut.png
Opublikowano
Ha, zrobiłem lepszy, bo taki który spamuje 20(sic!) razy.
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Spamer{	 public partial class Spamer : Spamer	 {			 public Form1()			 {					 InitializeComponent();			 }			 private void button1_Click(object sender, EventArgs e)			 {					 for (int i = 0; i < 20; i++)					 MessageBox.Show("Hehe ..");			 }	 }}

 

Ha - tak hardcorowo lecisz, to mój spamuje 1000 razy !

 

import javax.swing.JOptionPane;
import javax.swing.JPanel;

public class Main extends JPanel{
public static void main(String[] args)
{
String string="Spam, yo !";
int ilosc = 1000;
for(int x = 1;x<ilosc;x++)
JOptionPane.showMessageDialog(null,string);

}

}

//gif w sygnie

Opublikowano

Idioci raporty poszły -.- , zamknąć temat!

 

Oh - sorry. Zapomniałem, że na tym forum nie wiedzą co to żarty i zabawa ;) Jak mamy się wyzywać od idiotów, to ten program co zrobiłeś jest idiotyczny, zrób coś lepszego i wrzuć.

//gif w sygnie

  • 4 tygodnie później...
Opublikowano

Oh - sorry. Zapomniałem, że na tym forum nie wiedzą co to żarty i zabawa ;) Jak mamy się wyzywać od idiotów, to ten program co zrobiłeś jest idiotyczny, zrób coś lepszego i wrzuć.

Ty huju głupi a ja ci kurwa opublikowałem program spamujący a ty mi tu wpieprzasz taki tekst? nie no tego to już za wiele..

zamknąć temat

/zakaz handlu

Opublikowano

Też dorzucam moje wyjebane kody w c# !

 

 

using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace Mischel.Collections
{
[serializable]
[ComVisible(false)]
public struct PriorityQueueItem<TValue, TPriority>
{
private TValue _value;
public TValue Value
{
get { return _value; }
}

private TPriority _priority;
public TPriority Priority
{
get { return _priority; }
}

internal PriorityQueueItem(TValue val, TPriority pri)
{
this._value = val;
this._priority = pri;
}
}

[serializable]
[ComVisible(false)]
public class PriorityQueue<TValue, TPriority> : ICollection,
IEnumerable<PriorityQueueItem<TValue, TPriority>>
{
private PriorityQueueItem<TValue, TPriority>[] items;

private const Int32 DefaultCapacity = 16;
private Int32 capacity;
private Int32 numItems;

private Comparison<TPriority> compareFunc;

/// <summary>
/// Initializes a new instance of the PriorityQueue class that is empty,
/// has the default initial capacity, and uses the default IComparer.
/// </summary>
public PriorityQueue()
: this(DefaultCapacity, Comparer<TPriority>.Default)
{
}

public PriorityQueue(Int32 initialCapacity)
: this(initialCapacity, Comparer<TPriority>.Default)
{
}

public PriorityQueue(IComparer<TPriority> comparer)
: this(DefaultCapacity, comparer)
{
}

public PriorityQueue(int initialCapacity, IComparer<TPriority> comparer)
{
Init(initialCapacity, new Comparison<TPriority>(comparer.Compare));
}

public PriorityQueue(Comparison<TPriority> comparison)
: this(DefaultCapacity, comparison)
{
}

public PriorityQueue(int initialCapacity, Comparison<TPriority> comparison)
{
Init(initialCapacity, comparison);
}

private void Init(int initialCapacity, Comparison<TPriority> comparison)
{
numItems = 0;
compareFunc = comparison;
SetCapacity(initialCapacity);
}

public int Count
{
get { return numItems; }
}

public int Capacity
{
get { return items.Length; }
set { SetCapacity(value); }
}

private void SetCapacity(int newCapacity)
{
int newCap = newCapacity;
if (newCap < DefaultCapacity)
newCap = DefaultCapacity;

// throw exception if newCapacity < NumItems
if (newCap < numItems)
throw new ArgumentOutOfRangeException("newCapacity", "New capacity is less than Count");

this.capacity = newCap;
if (items == null)
{
items = new PriorityQueueItem<TValue, TPriority>[newCap];
return;
}

// Resize the array.
Array.Resize<PriorityQueueItem<TValue, TPriority>>(ref items, newCap);
}

public void Enqueue(PriorityQueueItem<TValue, TPriority> newItem)
{
if (numItems == capacity)
{
// need to increase capacity
// grow by 50 percent
SetCapacity((3 * Capacity) / 2);
}

int i = numItems;
++numItems;
while ((i > 0) && (compareFunc(items[(i - 1) / 2].Priority, newItem.Priority) < 0))
{
items[i] = items[(i - 1) / 2];
i = (i - 1) / 2;
}
items[i] = newItem;
//if (!VerifyQueue())
//{
// Console.WriteLine("ERROR: Queue out of order!");
//}
}

public void Enqueue(TValue value, TPriority priority)
{
Enqueue(new PriorityQueueItem<TValue, TPriority>(value, priority));
}

private PriorityQueueItem<TValue, TPriority> RemoveAt(Int32 index)
{
PriorityQueueItem<TValue, TPriority> o = items[index];
--numItems;
// move the last item to fill the hole
PriorityQueueItem<TValue, TPriority> tmp = items[numItems];
// If you forget to clear this, you have a potential memory leak.
items[numItems] = default(PriorityQueueItem<TValue, TPriority>);
if (numItems > 0 && index != numItems)
{
// If the new item is greater than its parent, bubble up.
int i = index;
int parent = (i - 1) / 2;
while (compareFunc(tmp.Priority, items[parent].Priority) > 0)
{
items[i] = items[parent];
i = parent;
parent = (i - 1) / 2;
}

// if i == index, then we didn't move the item up
if (i == index)
{
// bubble down ...
while (i < (numItems) / 2)
{
int j = (2 * i) + 1;
if ((j < numItems - 1) && (compareFunc(items[j].Priority, items[j + 1].Priority) < 0))
{
++j;
}
if (compareFunc(items[j].Priority, tmp.Priority) <= 0)
{
break;
}
items[i] = items[j];
i = j;
}
}
// Be sure to store the item in its place.
items[i] = tmp;
}
//if (!VerifyQueue())
//{
// Console.WriteLine("ERROR: Queue out of order!");
//}
return o;
}

// Function to check that the queue is coherent.
public bool VerifyQueue()
{
int i = 0;
while (i < numItems / 2)
{
int leftChild = (2 * i) + 1;
int rightChild = leftChild + 1;
if (compareFunc(items[i].Priority, items[leftChild].Priority) < 0)
{
return false;
}
if (rightChild < numItems && compareFunc(items[i].Priority, items[rightChild].Priority) < 0)
{
return false;
}
++i;
}
return true;
}

public PriorityQueueItem<TValue, TPriority> Dequeue()
{
if (Count == 0)
throw new InvalidOperationException("The queue is empty");
return RemoveAt(0);
}

/// <summary>
/// Removes the item with the specified value from the queue.
/// The passed equality comparison is used.
/// </summary>
/// <param name="item">The item to be removed.</param>
/// <param name="comp">An object that implements the IEqualityComparer interface
/// for the type of item in the collection.</param>
public void Remove(TValue item, IEqualityComparer comparer)
{
// need to find the PriorityQueueItem that has the Data value of o
for (int index = 0; index < numItems; ++index)
{
if (comparer.Equals(item, items[index].Value))
{
RemoveAt(index);
return;
}
}
throw new ApplicationException("The specified itemm is not in the queue.");
}

/// <summary>
/// Removes the item with the specified value from the queue.
/// The default type comparison function is used.
/// </summary>
/// <param name="item">The item to be removed.</param>
public void Remove(TValue item)
{
Remove(item, EqualityComparer<TValue>.Default);
}

public PriorityQueueItem<TValue, TPriority> Peek()
{
if (Count == 0)
throw new InvalidOperationException("The queue is empty");
return items[0];
}

// Clear
public void Clear()
{
for (int i = 0; i < numItems; ++i)
{
items[i] = default(PriorityQueueItem<TValue, TPriority>);
}
numItems = 0;
TrimExcess();
}

/// <summary>
/// Set the capacity to the actual number of items, if the current
/// number of items is less than 90 percent of the current capacity.
/// </summary>
public void TrimExcess()
{
if (numItems < (float)0.9 * capacity)
{
SetCapacity(numItems);
}
}

// Contains
public bool Contains(TValue o)
{
foreach (PriorityQueueItem<TValue, TPriority> x in items)
{
if (x.Value.Equals(o))
return true;
}
return false;
}

public void CopyTo(PriorityQueueItem<TValue, TPriority>[] array, int arrayIndex)
{
if (array == null)
throw new ArgumentNullException("array");
if (arrayIndex < 0)
throw new ArgumentOutOfRangeException("arrayIndex", "arrayIndex is less than 0.");
if (array.Rank > 1)
throw new ArgumentException("array is multidimensional.");
if (numItems == 0)
return;
if (arrayIndex >= array.Length)
throw new ArgumentException("arrayIndex is equal to or greater than the length of the array.");
if (numItems > (array.Length - arrayIndex))
throw new ArgumentException("The number of elements in the source ICollection is greater than the available space from arrayIndex to the end of the destination array.");

for (int i = 0; i < numItems; i++)
{
array[arrayIndex + i] = items[i];
}
}

#region ICollection Members

public void CopyTo(Array array, int index)
{
this.CopyTo((PriorityQueueItem<TValue, TPriority>[])array, index);
}

public bool IsSynchronized
{
get { return false; }
}

public object SyncRoot
{
get { return items.SyncRoot; }
}

#endregion

#region IEnumerable<PriorityQueueItem<TValue,TPriority>> Members

public IEnumerator<PriorityQueueItem<TValue, TPriority>> GetEnumerator()
{
for (int i = 0; i < numItems; i++)
{
yield return items[i];
}
}

#endregion

#region IEnumerable Members

IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}

#endregion
}
}

 

 

Opublikowano

Wy pojebane bachory zaspamowaliście mi temat , możecie kurwy liczyć na raporty pedały zajebane , już se kurwa nie popiszecie mam znajomości na forum to was wypieprzą na afrykę gonić pingwiny

/zakaz handlu

Opublikowano

to pingwiny nie rosną na Antarktydzie? Poza tym jak już musisz rzucać wulgaryzmami to chociaż poszanowanie dla słownika języka polskiego miej...

 

@topic

to i ja dorzuce od siebie w Au3 :D

For $i = 20 to 1 Step -1
MsgBox(0, "SPaaaam!", "SpPPPPppppaAAAAAAaaaaAAAAAaaaaMMmmmmmMMMM!)
Next

haha, jeszcze krócej od was :D

exKVR.png

c++, c++/cli, php, js, css3, lua, au3 and others...

 

Pomoc dla newbich w wymienionych wyżej językach, pisanie botów do Tibii - pisz na gg, może się dogadamy :)

Opublikowano

Popierdolone dzieci apokalipsy wypad z tematu "This is my topic!" .. Antix ped*** zamiast mnie warnować warnuj ich .. to oni mnie wkurwiają i spamują mi temat ..

/zakaz handlu

Opublikowano

Chłopie nie wściekaj się :D

Odź zrób kupe może ci opadną emocje a jak to nie pomoże to idź się przewietrzyć :) Dobrze ci zrobi ;]

Opublikowano

Wiesz co zaraz ide zrobić kupke bo przez 3 dni nie srałem , i mnie trochę ciśnie .

Temat zamknąć

/zakaz handlu

Opublikowano

Wy to macie problemy żaden ze mnie programista ale wystarczy otworzyć notatnik i wpisać :

 

start notepad.exe
start mspaint.exe
start notepad.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe
start notepad.exe
start mspaint.exe

 

 

I zapisać w rozszerzeniu .bat

 

I masz spamujący program.

udyr_signature_2_by_janitsu-d82aykp.png

Opublikowano

@up jak już jesteśmy przy .bat to lepiej zrobić:

 

start plik.bat

start plik.bat

start mspaint.exe

 

i zabisac jako plik.bat :)

krocej + zapetlenie

 

tyle ze to nie program a skrypt

exKVR.png

c++, c++/cli, php, js, css3, lua, au3 and others...

 

Pomoc dla newbich w wymienionych wyżej językach, pisanie botów do Tibii - pisz na gg, może się dogadamy :)

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...