-
Notifications
You must be signed in to change notification settings - Fork 18
/
Gopher.cs
executable file
·69 lines (62 loc) · 1.54 KB
/
Gopher.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using Gopher.Holes;
using System;
namespace Gopher
{
class Gopher
{
private static string Banner()
{
string banner = "";
banner += "\n o_\n";
banner += " / \"\n";
banner += " ,\" _-\"\n";
banner += " ,\" m m\n";
banner += " ..+ )\n";
banner += " `m..m\n";
return banner;
}
private static string DigLikeThereIsNoTomorrow()
{
bool isHighIntegrity = Utils.IsHighIntegrity();
string findings = "";
findings += McAfee.Dig(isHighIntegrity);
findings += GPP.Dig();
findings += Unattended.Dig();
findings += PSReadLine.Dig(isHighIntegrity);
findings += AWS.Dig(isHighIntegrity);
findings += Azure.Dig(isHighIntegrity);
findings += GCP.Dig(isHighIntegrity);
findings += RDP.Dig(isHighIntegrity);
findings += PuTTY.Dig(isHighIntegrity);
findings += SuperPuTTY.Dig(isHighIntegrity);
findings += WinSCP.Dig(isHighIntegrity);
findings += FileZilla.Dig(isHighIntegrity);
findings += VNC.Dig(isHighIntegrity);
findings += TeamViewer.Dig();
findings += PulseSecure.Dig();
if (string.IsNullOrEmpty(findings))
{
return "\nDid not find anything :(\n";
}
else
{
return findings;
}
}
public static void Main()
{
try
{
string banner = Banner();
string findings = DigLikeThereIsNoTomorrow();
Console.Write(banner + findings);
Console.WriteLine("Finished! Returning to my hole.");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
}
}
}