504 Gateway Timeout on WP Plugin Update

This site is running on Nginx with PHP-FPM, on vanilla Debian. I’m thinking of trying out OpenLiteSpeed and some other PHP alternative.

Anyways, I always get 504 errors when I update any plugin or WordPress itself.

504 Update Failure 2

This problem was bugging me for the past month or so. It would give that error while updating, instead of a success/failure message. The updates always succeeded though.

Unfortunately, this story will need to be cut short. By sheer luck, I found the problem. It was the DNS resolvers.

Simply changing /etc/resolv.conf was not an option for me since the system simply re-wrote the file. Marking it as immutable with chattr +i /etc/resolv.conf caused issues.

resolv.conf Bug
Bug caused by immutable resolv.conf. On every DHCP renew, a new resolv.conf appeared.

Here’s what I did:

  • Installed resolvconf using apt-get install resolvconf
  • After that, I edited /etc/resolvconf/resolv.conf.d/head
    • Added Google and OpenDNS nameservers:
      • nameserver 8.8.8.8
        nameserver 208.67.222.222
        nameserver 8.8.4.4
        nameserver 208.67.220.220
  • After editing the file, I updated the system resolver using resolvconf -u
  • I then verified if the proper nameservers were added in /etc/resolv.conf.
    • If correct, your added nameservers should be above the ones that DHCP gives you.
Success
Success

Yes, I know there may be better solutions out there like changing dhclient config files, but that usually didn’t work for me in the past.

Leaked BootROM / iBoot source code

Despite the title, most can’t compile this since there are missing build tools. This is just mostly source code.

However, you can use this for research purposes (e.g. finding vulnerabilities). New jailbreak methods are always pretty cool.

One thing I find interesting is the docs/ directory. It contains info that can be used as a starting point.

Source Code Link:

iBoot-master-7b9581e6c9e689354ec50d3c4ef9b10cf480c9cb

How severe was this leak?

It’s one of the biggest leaks in recent history for Apple, according to the Daily Mail.

Also, look at what happened to the Github pages that attempted to publish it:

https://github.com/h1x0rz3r0/iBoot
https://github.com/m57/iBoot

However, according to Apple, this isn’t that severe since most of the code is tied to iOS 9.

But in any case, having parts of your most protected software leaked is grave. I’m fairly sure most can see through Apple’s attempts to downplay the issue.

WooCommerce Booster Plus 3.3.0 – Nulling Procedure

For someone who is just starting an online business, some plugins that have the stuff I need are simply too expensive (for now).

Downloading a nulled copy of Booster Plus online from shady sites isn’t really the best option. There’s a lot of fakes that will infect your site (for example, VestaThemes will infect your site with wp-vcd).

What I then did was download a clean copy from a GPL site, and null it myself. Quite easy to be honest.

I do not support piracy. I’ll buy the full plugin once I’ve made enough. Always support the developers.

WooCommerce Booster Plus 3.3.0 – Nulling Procedure

1. Acquire clean copy of Booster Plus. Oh, I have one here: booster-plus-for-woocommerce.zip
——This is unmodified. I’ve already tested this on a test site, scanned with GravityScan. It’s clean.
2. Edit booster-plus-for-woocommerce/includes/plus/class-wcj-plus-site-key-manager.php
3. Find function is_site_key_valid(). Replace return statement with return true;

4. Go to wp-admin -> Plugins -> Booster Plus for WooCommerce
5. Click “Manage site key”
6. Enter any site key. I used 123456789. Save changes.
7. On top, it should say “Error: Wrong key”, but status should be green (left edge color). Dismiss the message.
—— If it’s red, you failed.

Booster Plus Nulled Success Status
Booster Plus Nulled Success Status

8. Profit.

 

This should get rid of that pesky warning message.

Emergency Arduino Crash Course – Software (Windows)

Introduction

So, you need program an Arduino NOW? In a hurry to get started? Not interested in boring lectures? You’re in the right place. The Emergency Arduino Crash Course series starts IMMEDIATELY.

I will assume you are using an Arduino Uno, but this series applies to any common Arduino/Genuino unit.

1. IDE (Integrated Development Environment)

AKA “Code Editor”. For most people, the standard Arduino IDE is enough. You can download it here: https://www.arduino.cc/en/Main/Software

If you don’t know what you’re doing, go ahead and select Windows Installer. I still don’t trust their online IDE since Philippine ISPs are known to be unreliable.

arduino-win-installer
Make sure to select “Windows Installer”, unless you’re a pro.

If you have already used the Arduino IDE before, you will see a warning about an existing installation. It’s safe unless you have modified your installation (e.g. added libraries in Program Files).

IDE Already Insalled
IDE Already Installed

Finally, you can go ahead with the installation.

After installation, start the Arduino IDE, and go to Tools -> Ports

Arduino IDE No Port
Arduino IDE – No Port

Wait, why can’t I select any port? Why is it gray? You may need drivers.

Continue reading if you have driver issues, or skip to Part 2 of this series – Arduino 101

2. Drivers

If the Arduino IDE cannot detect your device, you might need drivers. If you’re on Windows 10, it might be installed automatically. Check Device Manager.

Arduino Uno - Driver Not Installed
Detected, but no drivers

Not installed? Two choices:

  • 1. Download it here (most common ones):
  • 2. Use the built-in Windows online driver database (recommended). See below.
    • Some devices are not in the online database (e.g. CP2102)
Update Driver
Right Click -> Update Driver -> Search Automatically -> Close

 

Now that you’re done installing the Arduino IDE and your board’s drivers, it’s time to read the second part of the series: Arduino 101.