HEX
Server: Apache
System: Linux server3230.server-vps.com 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: lzgqnjwu (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/root/proc/thread-self/root/bin/crypt
#!/bin/sh
# this script tries to emulate the unix crypt command using mcrypt

echo "Unix crypt(1) emulation program using mcrypt(1)." >&2
echo "" >&2

if [ "$1" = "-h" ] || [ "$1" = "--help" ]
then
        echo 'Usage: crypt password <file_in >file_out' >&2
        echo 'Usage: crypt <file_in >file_out' >&2
        exit 1
else
	echo "Use crypt -h for more help." >&2
fi

if [ -z "$1" ]
then
 mcrypt -a enigma -o scrypt -m stream --bare --force
else
 mcrypt -a enigma -o scrypt -m stream --bare --key $1 --force
fi