-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
43 lines (37 loc) · 963 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* LOIC - Low Orbit Ion Cannon
* Released to the public domain
* Enjoy getting v&, kids.
*/
using System;
using System.Windows.Forms;
namespace LOIC
{
static class Program
{
[STAThread]
static void Main(string[] cmdLine)
{
bool hive = false, hide = false;
string ircserver = "", ircport = "", ircchannel = "";
int count = 0;
foreach(string s in cmdLine)
{
if(s.ToLowerInvariant() == "/hidden") {
hide = true;
}
// IRC
if(s.ToLowerInvariant() == "/hivemind") {
hive = true;
ircserver = cmdLine[count + 1]; //if no server entered let it crash
try {ircport = cmdLine[count + 2];}
catch(Exception) {ircport = "6667";} //default
try {ircchannel = cmdLine[count + 3];}
catch(Exception) {ircchannel = "#loic";} //default
}
count++;
}
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain(hive, hide, ircserver, ircport, ircchannel));
}
}
}