Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Captures screen and detects "You died" upon death in the video game Elden Ring (2022)
Requires Windows and Python 3.7+
Install with pip: pip install youdied
Make sure you have Python installed on you machine.
Go to your terminal and confirm that python is installed
by typing python -V
and press Enter.
It should say something like Python 3.10.4
or something similar.
It must be version 3.7.0 or higher.
If you don't, there are many ways to install Python. E.g. using one of these approaches:
After you have installed Python, open you terminal (or anaconda prompt when using miniconda).
Now, you should verify that you have Python installed,
which also lets you use the pip
-command to install new packages.
Go back to the step above and install using the pip
-command.
NOTE: Python is capable of running any arbitrary code on your machine. If you have no idea what strangers' code does, then you should not run it on your machine. Be skeptical, and critical. You could ask someone you trust to look over this code first if you're unable to verify yourself. The code is freely available in the repository for scrutiny, inspiration and education.
youdied
After installed, you can run the youdied
command from terminal
(in the same Python environment that you installed this package in).
How to stop the program from running? Press Ctrl + Z in the terminal
When program is running, it will notify you in the terminal on death detection. There is a 5 second cooldown, to ensure that a death is only counted once.
New character: youdied <name of character
Continue from last character: youdied
Print name of last character: youdied -p
or youdied --previous
Death count file: <your user folder> / .youdied / deathCounts / <character name>.txt
Show stats: youdied -l
or youdied --list
will output something like
Started last Character Death count
2022-04-20 12:00:00 Always Feet 69 4
2022-04-17 12:00:00 Cavelady Dida 4
2022-04-12 12:00:00 Elden Lard 8
2022-04-09 12:00:00 Maidenless Hero 4
In its simples form run youdied <character name>
,
for example youdied Maidenless Hero
if your want to store death counts
under the name "Maidenless Hero".
The next time, you only have to run the youdied
command without
any arguments if you want to use the same character name.
If you want to register deaths in another name, stop the script (Ctrl + Z) and give a new name.
E.g. youdied Cavelady Dida
Some players have more than one character, so therefore death counts are associated with a character name. The name is just a convenience to allow organizing the death counts.
(This name of course has nothing to do with what you call your character in the game. If you wish, you may call them "character 1", "character 2", "tarnished Bob" or whatever you want.)
When running for the first time a folder <your user folder> / .youdied
will be created.
This folder will keep track of death statistics and inspirational message use statistics
(to increase variety of messages shown)
Additionally, there is a folder called <your user folder> / .youdied / deathCount
that holds a file for each registered character.
E.g. with the four characters used above, there would be a file called "Always Feet 69.txt"
with content only being the number "4".
If you want to know the death statistics of all characters you have tracked,
run youdied -l
as mentioned above.
Run youdied -h
to get the help screen:
youdied -h
usage: youdied [-h] [-v] [-l] [-p] [character_name ...]
A motivational Elden Ring death counter. Uses screen capture to detect deaths.
Will output motivational quotes and proverbs on detection.
positional arguments:
character_name Name of character to register stats on. If omitted the last used character is used,
if any (default: None)
options:
-h, --help show this help message and exit
-v, --version Print version and exit. (default: False)
-l, --list List all characters and exit. (default: False)
-p, --previous Print out previous character, i.e. the last one used, and exit. (default: False)
Good luck, Tarnished!
Press Ctrl + Z in the terminal
Screen capturing is possible using Windows Duplication API,
and we use the fabulous D3DShot python package to do so.
Unfortunately, there is an issue with version of a dependecy package
pillow
, which is breaks the installation.
Any further development from the developers of D3DShot seems to be stalling.
We have therefore fixed the dependency and embedded their code inside this project because
PYPI doesn't allow direct URI dependencies.
So many open source tools and programs. Look at all the free (as in beer) code others have shared!
Imagine where we would be if they were not there.
Thanks!
FAQs
Captures screen and detect "you died"
We found that youdied demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.