Dump PHP 8.1 OPCodes using Vulkan Logic Dumper with Bonus

Hits: 189

The VLD a.k.a Vulkan Logic Dumper extension must be installed, we can compiling if from source.

	git clone https://github.com/derickr/vld.git
	cd vld
	sudo make && sudo make install

with the sudo make && sudo make install command, our vld extension is compilied and copied directly to the php extensions folder. The next step is to active the plugin in the php.ini file

Let’s find our php.ini file.

kzorluoglu@kzorluoglu:~/projects/vld-0.18.0$ php -i | grep 'Loaded Configuration File '
Loaded Configuration File => /etc/php/8.1/cli/php.ini

we found our php.ini file, now let’s active our vld extension with a text editor

sudo vim /etc/php/8.1/cli/php.ini

at the bottom of file, find the ;extension= section. Let’s add extension=vld, and save it.. We are all set!.

and we can dump any php file with this vld.active=1 parameter.

kzorluoglu@kzorluoglu:~/projects/vld-0.18.0$ php -d vld.active=1 test.php
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /home/kzorluoglu/projects/vld-0.18.0/test.php
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
    3     0  E >   ASSIGN                                                   !0, 'test'
    4     1        NOP
          2        FAST_CONCAT                                      ~2      !0, '+ist+gut'
          3        ECHO                                                     ~2
    5     4        ECHO                                                     '%0A'
    6     5      > RETURN                                                   1

branch: #  0; line:     3-    6; sop:     0; eop:     5; out0:  -2
path #1: 0,
test ist gut

Bonus: The die() and exit() functions calling the same action thats means: both of them the exact same thing. 🙂

CNAME (alias) Check for Domain/-s via Bash Script

Hits: 255

#set -x

print_usage() {
  printf "Usage: aliastest.sh -a alis-domain.tld -d domain.tld domain2.tld" 

# Get the options
while getopts ":h:a:d:" option; do
   case $option in
      h) # display Help
      a) # The alias hostname for check
      d) # Domain or domains

for domain in $domains
        echo "Check for $domain:" 
        echo "-------------------" 
        CNAME=$(dig +short CNAME $domain)
        if [ "${CNAME}" == "${hostname}." ]; then
                echo "$domain is alias for $hostname" 
                echo "$domain is NOT alias for $hostname" 


Cert-Manager – Kubernetes NGINX Ingress with Cert-Manager

Hits: 282


Cert-manager is easy to install with Helm Package Manager. The first step is add Jetstack repository in our repository and becoming the package info with update

helm repo add jetstack https://charts.jetstack.io
helm repo update

Now we can install Cert-Manager with CRDs into our cluster:

helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true

Cert-manager have also a kubectl plugin to easily manage configs and resources

OS=$(go env GOOS); ARCH=$(go env GOARCH); curl -sSL -o kubectl-cert-manager.tar.gz https://github.com/cert-manager/cert-manager/releases/download/v1.7.2/kubectl-cert_manager-$OS-$ARCH.tar.gz
tar xzf kubectl-cert-manager.tar.gz
sudo mv kubectl-cert_manager /usr/local/bin

Configure for The Let’s Encrypt Certificate

Continue reading “Cert-Manager – Kubernetes NGINX Ingress with Cert-Manager”

Local Multi-Domain Kubernetes for Development with Kind + Ubuntu + WSL2 + Docker Desktop

Hits: 449


WSL2 installation on Windows

Install Ubuntu on WSL2 on Windows

Docker Desktop Download


After the Docker Desktop installation we need to enable the following WSL integrations at Docker Desktop:

  • Settings > General > check Use the WSL 2 based engine
  • Settings > Resources > check Enable integration with my default WSL distro
Continue reading “Local Multi-Domain Kubernetes for Development with Kind + Ubuntu + WSL2 + Docker Desktop”

PHP Profiler SPX – A Another Simple Profiling Tool

Hits: 334

SPX is a PHP Extension for Profiling, also open source, very simple, multimetric capable and with out-of-box web UI for listing, sorting and report details.

For installation, we need to build our extension. We can of course put the building phases directly into our Dockerfile, but I want to know, what things (extension file, webUI Files and configuration changes) need to come through the extension. For this reason, I make a seperate build process in my Dockerfile and copy everything this extension needs.

I follow the steps from official documentation (Timestamp: 20.05.2022), please check, if new or old steps were published, after this blog article)

Continue reading “PHP Profiler SPX – A Another Simple Profiling Tool”