Simple script to access password information in /etc/passwd
This script demonstrates how someone could create a simple script to potentially access your password information without your knowledge.
Initialization: After running init.py
, this script will generate a pickle file in the same directory as init.py
.
Platform Check: When executed, the script will check the platform. If it's not Linux, the script will delete itself to avoid any unintended consequences on incompatible systems.
Execution: When you run run.py
, the script will load the pickle file and modify itself.
Second Execution: If you execute run.py
for the second time the main script will attempt to access information stored in /etc/passwd
. It will then save this information in a file called .passwd
within the same directory as the script and once the code runs successfully, the script will change its own source code to a simple "Hello, World!" comment, effectively altering its functionality.
git clone https://github.com/Kourva/PicklePasswd
cd PicklePasswd
init.py
to create pickle scriptpython3 init.py
run.py
to load pickle scriptpython3 run.py
run.py
again to run scriptpython3 run.py