deadpix3l / cryptsky Goto Github PK
View Code? Open in Web Editor NEWA simple, fully python ransomware PoC
License: The Unlicense
A simple, fully python ransomware PoC
License: The Unlicense
It seems that: "with open(filename, 'rw+b') as f:" in modify.py doesn't works in Windows.
I tried a number of solutions without success. How can we get around this?
I guess there is some issue with open file and seek() method on windows..
Thx Daniele
Good evening,
Please could someone run through how exactly to execute (encrypt/decrypt functions) the script?
Kind regards,
Alex.
This is a reference to the comments made on #7. The windows implementation on python seems to struggle with reading and writing to a file without seeks and flushes separating them. While I was seeking between the read() and write(), I did not between the write() and the next blocks read(). One hacky way to solve this is a seek. Any seek, even if it does nothing, like f.seek(f.tell())
will fix it. Or the more proper way (which will come in a commit fixing this issue soon) is f.flush()
. I just wanted to document it.
.
Is it possible to add some explanation in the README about the structure of the code and the algorithm?
It would not only make this project more educational but it would also make it easier for people to understand the code better and thus to make contributions.
Thanks.
I am trying to run this, I'm making a demo for small comapnies about the risks and dangers of Ransomware, So we want to demonstrate in a Virtualbox Win7 machine what could happen.
Now when I run the software at first it gave a permission error (set start folder as: "C:\Users"). So I tried the active user by doing the following:
# change this to fit your needs.
startdirs = [os.getenv('USERPROFILE')]
I've confirmed that this works with a print function inserted.
Buuut.. I run the script now by opening an Administrative CMD and running
python C:\python27\Ransom\main.py
But it just takes soooo damned long without any noticable actions happening..
Just let it run for an hour, nothing happened.
It's a clean Win7 image with Python2.7 and PyCrypto installed I didn't have much files on here so I used "C:\Users\user\Pictures" as start dir and put some sample pics in there..
Eventually I would like to use pyinstaller to compile it to an executable (for believability and relating to the bussinessmanagers)
So is there anything I'm missing?
Also is there a way to just run this against C:\ without permission errors?
Thanks in advance!
EDIT: Forgot to mention actual porblem.. Oops..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.