Tag: WORDPRESS

Security, Tutorials, WordPress

Detecting and cleaning the DOLLY WordPress mu-plugin backdoor

Hooded figure with neon mask holding tablet displaying 'Uploading Virus' progress bar — visualizing the DOLLY WordPress mu-plugin backdoor exfiltrating credentials

Last week I cleaned a six-site WordPress compromise on one of my OpenLiteSpeed boxes. The most interesting payload was the “DOLLY” mu-plugin family — a credential-harvesting backdoor that hides itself with a few clever tricks and survives most casual cleanups …

Security, Tutorials, WordPress

Rotating WordPress salts as incident response: the step everyone skips

Close-up of a metal combination lock with rotating numeric dials — visual metaphor for rotating WordPress salts to a new secret combination (photo: Felix Moeller / Pexels)

You’ve cleaned the malware files, deleted the backdoor admin accounts, rotated everyone’s password. The site is fine, you’re fine. Three weeks later someone logs in with a session cookie they grabbed during the compromise window and creates a fresh admin …

Sysadmin, Tutorials

Per-vhost PHP versions in OpenLiteSpeed: keep one site on 7.4 while everything else moves to 8.2

Close-up of PHP source code displaying version_compare("5.2", PHP_VERSION) check and require_once includes — typical PHP version handling code (photo: Pixabay / Pexels)

Modernizing the PHP runtime on a multi-tenant LSWS box is rarely an “all sites at once” affair. Some sites are on a custom theme that uses PHP 4-style class constructors. Some have a plugin still calling create_function(), removed in …

apps

import-from-woocommerce-to-fortnox-cron-v1

v1.js

Cron to perform multiple imports from woocommerce to fortnox. Imports orders to fortox.
Should be run with command line arguments.

Example:
node import-from-woocommerce-to-fortnox-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
type=order

apps

import-from-woocommerce-to-fortnox-v1

v1.js

Imports from woocommerce to fortnox. Imports orders to fortnox. You can also import a single order by specifying wc-order-number.
Should be run with command line arguments.

Example:
node import-from-woocommerce-to-fortnox-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=order \
fn-api-url=

apps

import-from-airtable-to-woocommerce-cron-v1

v1.js

Cron to perform multiple imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.

Example:
node import-from-airtable-to-woocommerce-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
cron-airtable-base-name=

apps

import-from-airtable-to-woocommerce-v1

v1.js

Imports from airtable to woocommerce. Imports products to woocommerce.
Should be run with command line arguments.

Example:
node import-from-airtable-to-woocommerce-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=product \
airtable-base-name= \
airtable-table-name=Pricelist \
airtable-view-name=wordpress \
airtable-table-key=Model \
airtable-key-name=wp \
airtable-key-value=publish

modules

ac-apps-minimal-api-woo

api/woo.js

Makes it easy to work with the WooCommerce API and perform tasks such as fetching and updating products. Fetches all records/products if page number not provided.

Example:
app.api.woo.getProducts(options);
app.api.woo.updateProduct(options, product);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal…

Blog

How to create a WordPress blog post using WP CLI (remote too)

We can create a WordPress blog post using WordPress CLI (Command line interface) tool: wp-cli
Please follow the installation instructions for your system on this page: https://wp-cli.org/

After we have installed, we can use the wp command now.
We can …

Blog

How to escape comma when importing WooCommerce products?

After spending some time on searching on Google and reading some WooCommerce forums I found out that it was much easier than expected.

Do not use quotes or %2C.

Just escape the comma using a backslash like \,

That’s all! …