Showing posts from March, 2019

Recover Your Files From A Ransomware Attack Without Paying Anybody

Don't Pay The Ransom No More Ransomware Crypto Sheriff Watchpoint Data Scan A Suspicious File Decrypting Excel Files Cracking Microsoft Office (97-03, 2007, 2010, 2013) password hashes with Hashcat Exploit Database Muhstik Ransomware Passwords Blog Post A victim fights back and hacks the hackers back, and produces recovery keys for all of the victims. Read more here . The STOP Ransomware Decryptor is now Free Get the Emsisoft Decryptor for STOP Djvu her

Sending JSON via POST in PHP and CURL usage

Sometimes, you’ll come across web services and APIs that will require you to send JSON via a POST request. The php code that you need: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 <?php //API Url $url = '' ; //Initiate cURL. $ch = curl_init ( $url ); //The JSON data. $jsonData = array ( 'username' => 'MyUsername' , 'password' => 'MyPassword' ); //Encode the array into JSON. $jsonDataEncoded = json_encode ( $jsonData ); //Tell cURL that we want to send a POST request. curl_setopt ( $ch , CURLOPT_POST, 1 ); //Attach our encoded JSON string to the POST fields. curl_setopt ( $ch , CURLOPT_POSTFIELDS, $jsonDataEncoded ); //Set the content type to application/json curl_setopt ( $ch , CURLOPT_HTTPHEADER, array ( 'Content-Type: application/json' )); //Execute the request $result = curl_exec ( $ch ); Step by step explanation of t

Remove and Replace non-alphanumeric Characters from Form Inputs with regex

Remove and Clean up Form inputs on POST and GET For your contact us forms, you do not want bad people to inject malware into your email, so you need to scrub and slug the posts with regex to remove any html code, and non-alphas that can be used to do nasty things to end users. Shared on GIST Example: (on ssh console) $ php slug.php <HELLO@HELLO.COM> DIRTY:<><?> DIRTY:Hello Mr. O'Leary, I am calling to ask your help with releasing $10000<br/> in lost cash from nigeria. Click Here: <a href="">Free Virus</a> You gotta "trust" \'me\' CLEAN:hello mr. o-leary, i am calling to ask your help with releasing $10000br in lost cash from nigeria. click here a virusa you gotta -trust- -me