Giter Site home page Giter Site logo

tarcisio-marinho / gonnacry Goto Github PK

View Code? Open in Web Editor NEW
645.0 42.0 398.0 125.92 MB

A Linux Ransomware

Home Page: https://medium.com/@tarcisioma/ransomware-encryption-techniques-696531d07bb9

License: GNU General Public License v2.0

Python 99.81% C 0.16% Shell 0.01% C++ 0.01% Makefile 0.01% C# 0.02%
ransomware ransomware-prevention ransom-worm malware malware-development malware-analysis linux-ransomware linux c python

gonnacry's Introduction

gonnacry's People

Contributors

tarcisio-marinho avatar vaibhawvipul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gonnacry's Issues

GonnaCry Older Version C Issue [warning: assignment makes integer from pointer without a cast ]

I am trying to compile C (Older version) version of GonnaCry but I am running into a problem. I understand this is an older version but would like to request for your help.

lib/struct.c: In function ‘destroy’:
lib/struct.c:61:27: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
             *aux->info[i] = "random_string";
                           ^
gcc -c lib/func.c -o lib/func.o
gcc lib/gonnacry.o lib/crypto.o lib/struct.o lib/func.o -o bin/gonnacry -lcrypto  

create python3 compatibility

mostly no problem with using python3 except for few packages being deprecated in some way or another. Probably create a new branch with compatible with the packages?

gcc version

I got segmentation fault when I run C version,can you tell me your environment?

Cannot execute the ransomeware

I am having difficulty in executing this ransomware. I have installed all the dependencies and have built binaries. After that, I am unable to understand what to do. I ran main.py and got this error
Traceback (most recent call last):

   File "main.py", line 148, in <module>
	menu()
   File "main.py", line 110, in menu 
	aes_keys_and_base64_path= start_encryption(files)
   File "main.py", line 69, in start_encryption
	base64_new_file_name = base64.b64encode(new_file_name)
   File "/usr/lib/python3.6/base64.py" , line 58, in b64encode
	encoded = binascii.b2a_base64(s, newline=False )
TypeError: a bytes-like object is required, not 'str'

Can someone provide step by step procedure to execute this ransomware correctly?
Thanks in advance

Executing in Python 3.10 Error

Error running under Python 3.10
./GonnaCry

generated = Crypto.Random.OSRNG.posix.DevURandomRNG()

AttributeError: module 'Crypto.Random' has no attribute 'OSRNG'


The function is deprecated. Can you suggest what I should replace with here.

`import base64
import Crypto.Random

def generate_key(bits, encode=False):
generated = Crypto.Random.OSRNG.posix.DevURandomRNG()
content = generated.read(bits)

#generated = Crypto.Random.urandom(7675675676)
#content = generated
#content = ''.join(format(ord(i), '08b') for i in generated)

if(encode):
    return base64.b64encode(content)

return content

if name == "main":
print(generate_key(32))`

How to set up the server

Hi Tarcisio, I am reproducing this awesome project for my summer course. However, I am stuck at decrypting all my files. How should I set up the localhost:8000 to communicate the keys with decryptor? Thanks!
Screenshot (4)

Add Desktop-Wallpaper in the Code

These are my ways of dealing with such problems

  1. Solution:
    Add the Picture as an Resource in the Binary and Extracting it in the Process.

  2. Solution:
    Convert the Picture into C and including it in the solution as an HeaderFile (.h), then using [CreateFile] and [WriteFile] to write the Picture into a Directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.