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 …
Tag: WORDPRESS
Rotating WordPress salts as incident response: the step everyone skips
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 …
Per-vhost PHP versions in OpenLiteSpeed: keep one site on 7.4 while everything else moves to 8.2
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 …
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 …
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= …
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= …
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 …
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…
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 …
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! …