Posts

Recover Your Files From A Ransomware Attack Without Paying Anybody

Image
Don't Pay The Ransom No More Ransomware https://www.nomoreransom.org/en/index.html Crypto Sheriff https://www.nomoreransom.org/crypto-sheriff.php?lang=en Watchpoint Data https://www.watchpointdata.com/ransomware-decryptors/ Scan A Suspicious File https://www.virustotal.com/#/home/upload Decrypting Excel Files https://www.blackhillsinfosec.com/crack-passwords-password-protected-ms-office-documents/?fbclid=IwAR1IU2RXzvcGZuX-ji8dg2-5nvNorTLCNH1bPUzGIt0lVfZfrfwpz3XJfMM Cracking Microsoft Office (97-03, 2007, 2010, 2013) password hashes with Hashcat http://pentestcorner.com/cracking-microsoft-office-97-03-2007-2010-2013-password-hashes-with-hashcat/ Exploit Database https://www.exploit-db.com/exploits/37977 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 = 'http://example.com/api/JSON/create' ; //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:<Joe_Johnson_1234@gmail.com><?> CLEAN:joe_johnson_1234@gmail.com 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="http://www.getavirus.com">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 href-httpwww.getavirus.com-free virusa you gotta -trust- -me

How it works: The PFC8574T I2C 8 Bit Adapter with the Vishay 20x4 LCD

Image
Using the I2C 4 line LCD https://www.rhydolabz.com/wiki/?p=16424 There is a section on the I2C LCD Backpack. The PFC8574T I2C to 8 bit IO adapter backpack onto Vishay LCD-020N004L PFD8574  ------------------->    20x4 LCD Header Strip   (4)  D0                          4  Rs   H/L Register Select (5)  D1                          5  R/W  H/L Read/write  (6)  D2                          6  E    H/L Enable      (7)  D3                                    --NC--        (9)  D4                          11 ...

Center image in HTML DIV horizontally

Image
First Part is the CSS Somebody once said "I have an  img  in a div and I want this image to be exactly in the middle of the div but nothing I try works..." Suppose you want to place 2 images side by side and centered in their div elements. you need to edit your style sheets to have an outer div, and 2 inner divs, and an image element inside the inner divs. You need to set your margin sides to auto, and your width to 50% div.column-2-block { position:relative; float: left; display:inline-block; border: 0px red solid; margin-top:25px; } div.column-inside { position:relative; float: left; display:inline-block; border: 0px green solid; width:50%; } div.image-holder { position:relative; display:block; } // THIS CSS WILL MAKE IT CENTERED img.centered { margin:0 auto; width:50%; } Then the HTML code <div class="column-2-block"> <div class="column-inside"> <img class="centered" src="https://c...

Configure Shoretel Voicemail Notifications to your email inbox using a free SMTP relay

Image
Configure Your Shoretel Voicemail Server to Send Voicemails As Wave Files to your inbox How Can SocketLabs Help You Setup a Free SMTP Relay Socketlabs is a free and paid service that can allow you to send 2000 free SMTP message relays every month from your verified domain. But first you need a real domain with it's own email accounts and a professional looking website on top of that, plus you need to look like a legitimate business with contact numbers and email addresses. It is not for spammers, hackers, phreakers, or junk mail junkies. Once you are ready, you create a free account at SocketLabs.com then allow the admins to verify your email and your web presence.  Once that's done, you get your credentials for their free SMTP relay that you can use in your IIS SMTP gateway to send free emails from your voicemail appliances, and your other IOT things that need to send email out, but cannot authenticate.  Many devices cannot authenticate to SMTP servers such as Shoretel...

Rasberry Pi i2c as a /dev/ device in ANSI C

I2C Is Just like SMBus You can always use WiringPI code library from GIT. git clone https://github.com/WiringPi/WiringPi.git Which will make the whole thing easier. #include <fcntl.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <stdint.h> #include <time.h> #include <sys/ioctl.h> #include "linux/i2c-dev.h" int main(int argc, char *argv[]) { int fd; struct timespec _500ms; _500ms.tv_sec = 0; _500ms.tv_nsec = 5000000L; fd = open("/dev/i2c-1", O_RDWR); if(fd < 0) { fprintf(stderr, "Error opening device\n"); exit(EXIT_FAILURE); } if(ioctl(fd, I2C_SLAVE, 0x20) < 0) { fprintf(stderr, "Error setting slave address\n"); close(fd); exit(EXIT_FAILURE); } char buf[10]; buf[0] = 0x07; // IODIR PORT1 buf[1] = 0x00; // all output if(write(fd, buf, 2) != 2) { ...

Raspberry Pi I2C Connectors and Pinout

Image
I2C - Inter Integrated Circuit I2C pins in BCM mode are: 2, 3 I2C pins in WiringPi are: 8, 9 The UART pins are 14 and 15, TXD, RXD. /dev/serial0 The Raspberry Pi's I2C pins are an extremely useful way to talk to many different types of external peripheral; from the MCP23017 digital IO expander, to a connected ATmega. The I2C pins include a fixed 1.8 kohms pull-up resistor to 3.3v. This means they are not suitable for use as general purpose IO where a pull-up is not required. You can verify the address of connected I2C peripherals with a simple one-liner: sudo apt - get install i2c - tools sudo i2cdetect - y 1 You can then access I2C from Python using the smbus library: import smbus DEVICE_BUS = 1 DEVICE_ADDR = 0x15 bus = smbus . SMBus ( DEVICE_BUS ) bus . write_byte_data ( DEVICE_ADDR , 0x00 , 0x01 ) Example with a pimoroni scrollphathd pi@raspberrypi:/usr/lib/python3/dist-packages/scrollphathd $ sudo i2cdetect -y 1 0 1 2 3 4 5 ...

Search the Outlook Inbox using Windows Indexing Service

Start Menu, then search for "Indexing" , then find "Indexing Options" in Advanced Options, choose Rebuild Many Thanks To This Tech Tidbit was brought to you by your friends at Eleven Dimensions Computer Technologies. See our new 11D website at: http://www.elevendimensions.com Our Partner Websites: Bare Wire Networks:      http://www.barewirenetworks.com CTI Solutions:    http://www.cti-solutions.com Many Thanks to Our Partner companies

How to Stop Domain Email Spoofing

How to Stop Domain Email Spoofing see this link: https://organicweb.com.au/marketing/fix-email-spoofing/ Summary: Use SPF, DKIM and DEMARK to monitor and stop spoofing Add SPF records to your DNS for those servers you use for sending email messages. I use  Google G Suite  for everyday messages,  Mailchimp  for email marketing and  Mailgun  for transactional sending. I therefore need to add SPF records for these three services. Add DKIM records for the services where you added SPF records. Sign up for, and activate, the  free DMARC reports  by Postmark. You’ll need to add a TXT record to your domain specifying the DMARC requirements. The TXT record will look something like the below (Postmark will give you the exact syntax to add): v=DMARC1; p=none; pct=100; rua=mailto:12345example@dmarc.postmarkapp.com; sp=none; aspf=r; Stop others sending email messages from your domain The DMARC record that Postmark provides is very good for ide...

Magento: Completely Disabling Frontend Customer Registration

Image
Completely Disable Customer Registration on Magento Front End Russian hackers have found your Magento store, and are registering fake user accounts, and bypassing captcha, and are doing it repeatedly every day. This is annoying the people who are getting spammed by your store.  Despite having CAPTCHA, the Russians have figured out how to automate the registration processing. You can easily disable customer registration, yet still allow the administrator to manually register customers. I have done all of these other tricks in the admin GUI, however still adding  customer/account/create/  to the end of the webstore still persists with a create account page. Any ideas what I can do here? I have a webstore in which we manually create each account, however it appears someone has found the loophole and persists in creating an account. Too many fake Russian and Soviet user accounts keep on being registered on my Magento, and they are using my Magento to SPAM other people. ...
RedOxygen Outlook Add-in Fails to Startup or is Disabled You have Outlook 2013 or Outlook 2016 and you have RedOxygen Outlook Add-in and it fails to startup or starts up in the list of disabled add-ins. Here's how you fix it. You Can force it start everytime. Open your registry editor. To do this, open your Windows Start menu and type "regedit". Go to HKEY_CURRENT_USER > Software > Microsoft > Office> Outlook > Addins >Red Oxygen.OfficeSMS. Note what the LoadBehavior is set to. It will be a number like 0 or 1 or 3. Close Word (or Excel or Outlook). Make sure the "winword.exe" process is not running in the Windows Task Manager. Open the registry editor again. Double-click the registry key to edit it. Change the Load Behavior to "3". Close the registry editor. Re-open the registry editor to ensure "3" is still there. Start up Outlook now. Many Thanks To This Tech Tidbit was brought to you your friends a...