In order to vote, comment or post rants, you need to confirm your email address.
You should have received a welcome email with a confirm link when you signed up. If you can't find the email, click the button below.

Was doing testing on my programs & sometime some programs would run but sometime it get segmentation fault. Seemed random first but then saw a pattern... everytime I get segmentation fault and I run again it would be fine. Checked alias... nothing, /etc/crontab, env, ps -ef... nothing seemed off, cksum of my binary... correct. Fuck! "What my boss did?" asked myself. Finally .5hrs later I saw entry in my id's crontab but then 1min later it's gone from my crontab

From there figured out how boss did it:
1) He replaced ntpd with his C program that runs in background creating an entry in my crontab every few mins
2) The entry in my crontab set to run /foobar/ulittleprick.sh every 2mins
3) ulittleprick.sh picks random binary owned by me, rename binary.name to .binary.name.nitwit and create a script named binary.name
4) Then ulittleprick.sh will remove itself from cron

What the generated binary.name script does? Sleep for 2 secs, echo "Segmentation fault", then rename back .binary.name.nitwit to binary.name. It even exits with status 139! I want to cry! Worst part is comment in 2nd line of ulittleprick.sh... kill me now

Me - *a bit surprised that such questions were being asked on a sde-3 level*
this is the 4th or 5th question from geeksforgeeks, isn't it? I know the answer to this. Do u still want me to solve it?

Interviewer - *not believing me* Yes

Me - okay. Well this *writing down the original solution mentioned on the site* is the verbatim code mentioned on the website, with complexity O(n^2).
However I feel this is not the optimal solution. Let me write a better solution.
*I provide a better solution*
This has a complexity of O(n log n) . What do you think?

Interviewer - Nope. This could be a lot better.

Me - okay. Let me see. Did some minor changes, added some caching (obviously this will have no effect on the base algorithm) etc
How about now?

Interviewer - nope. Still not good.

Me - okay. Can you tell me how to improve it?

Interviewer - no we are not allowed to solve problems for you. It is not our interview, it is yours.

Me - that makes no sense. Interviews are a two way street. I'd very much like to know the optimal answer to this.

Interviewer - okay
*copies down the answer from geeksforgeeks*
This is good

Me - *at first I thought this was a prank or something. *
I just mentioned this answer here.
Then I spent the next 10 minutes providing a BETTER solution.
May I know how yours is better?

Interviewer - this solution has 2-3 loops. Yours has a function calling itself.

Me - that's called divide and conquer using recursion mf!
Anyways let's take an example and do a dry run.

Interviewer - okay

*we do dry run*

Interviewer - oh yes. Yours ran faster. But it will run fast only sometimes.

Me - yes. Each time the algorithm rolls a dice to decide if it should run fast or slow. You have one goddamn awesome weed dealer man.
I got to go. Thank you for meeting me.

Disclaimer: Do not use or modify neither the program or the source code to make software violating the law.

### How do I use it?

1. Head to https://github.com/cozyplanes/teest and download the latest release `EXE` file.
1. Windows may warn you with the missing signature. The file is a DEBUG file, so there isn't a publisher signature. You can proceed downloading anyway since it has been virus checked by the developer.
2. Type the message you want to display in the textbox.
3. Click `Save text` button.
5. To check the file, click `Cancel` button in the opened popup dialog.

### What happens?

When an MS Excel file (`.xlsx`) has been opened, by using TEEST, two files gets opened.

1. The original file user opened
2. Excel file named `message.txt` with the custom message you have written.

`message.txt` excel file will open every single time a person opens a excel file.

*In some older versions of Excel, the message may overlap with the user opened file.*

### Why does this happen?

When MS Excel program is executed, it is programmed to check the files in the following 2 folders.

In normal conditions, there is no file in those folders (or the folders doesn't exist at all) but when you use TEEST and click `Save text` button, it saves `message.txt` file in the folders above. From MS Excel is executed again, it will find out there is a file in the folders above, so it will show those text files in Excel.

### Where is this technique used?

There should be a lot of software using this trick, but it is widely known for ransomwares such as `GandCrab` and `TeslaCrypt` displaying decryption methods in MS Excel by this trick.

### How can I disable it?

1. Open TEEST again.
2. Click `Save text` button and click `Cancel` in the following popup.
3. Delete `message.txt` file in the opened explorer.

### LICENSE

This software is under the MIT License. Refer to the `LICENSE` file for more information.

### Contact

<cozyplanes@tuta.io>

Spam/Ads not allowed. Please only send questions or concerns about the software. It may take up to 48 hours to get a reply.